问题描述
我正在使用VSTS 2008,
i am using VSTS 2008,
我的问题是,如果我的验证规则失败,如何停止Web测试.
my question is how can i stop web test if my validation rule is fail.
下面是代码
//验证规则:检查点
if((this.Context.ValidationLevel> = Microsoft.VisualStudio.TestTools.WebTesting.ValidationLevel.High))
if ((this.Context.ValidationLevel >= Microsoft.VisualStudio.TestTools.WebTesting.ValidationLevel.High))
{
{
ValidationRuleFindTextvalidationRule72 = new ValidationRuleFindText();
ValidationRuleFindText validationRule72 = new ValidationRuleFindText();
validationRule72.FindText =其他常规信息";
validationRule72.FindText = "Miscellaneous General Information";
validationRule72.IgnoreCase = false;
validationRule72.IgnoreCase = false;
validationRule72.UseRegularExpression = false;
validationRule72.UseRegularExpression = false;
validationRule72.PassIfTextFound = true;
validationRule72.PassIfTextFound = true;
}
}
推荐答案
>
谢谢您的发帖!我建议将您的问题发布到其中之一 Microsoft开发人员网络 > Visual Studio Team System论坛 跨度>> Visual Studio Team System-测试
Thank you for your post! I would suggest posting your question in one of theMicrosoft Developer Network >Visual Studio Team System Forums> Visual Studio Team System - Testing
位于此处: ; b ; http://social.msdn.microsoft.com/Forums/en-US/vststest/threads
located here: http://social.msdn.microsoft.com/Forums/en-US/vststest/threads
希望有帮助!
祝您有美好的一天!
这篇关于如果验证规则失败,如何停止Web测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!