Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在为 .NET webtest 创建自定义 ValidationRules。
是否有一些简单的方法可以为这些验证规则创建单元测试?
创建一个用于保存 webtest 值的数据库+表,创建一个从表中加载的 webtest,并使用表中的值填充表单。您还可以添加“预期结果”列。然后,webtest 可以自动遍历表中的行并根据“预期结果”报告成功。编码的 webtest 将更容易创建您的自定义验证规则。