CodedUI数据驱动断言失败时停止所有测试 [英] CodedUI Data Driven Stop all testing upon Assert.Fail

查看:109
本文介绍了CodedUI数据驱动断言失败时停止所有测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个数据驱动的TestMethod.该过程的一部分是验证该站点可用于测试.如果该网站不可见,我将其设置为Assert.Fail.当前测试失败,但是数据驱动表中的下一条记录开始 运行.我想在出现Assert.Fail事件时退出,而不要遍历其余记录.我找不到任何使之成为可能的参考.


LEHayes

I have a data driven TestMethod.  Part of the process is to verify that site is available for the testing.  I placed an Assert.Fail if the site isn't visible.  The current test fails, but the next record in the data driven table starts to run.  I want to exit in the event of an Assert.Fail and not loop through the rest of the records.  I cannot find any reference to making this possible.


LEHayes

推荐答案

LEHayes,
 
谢谢你的帖子.

Hi LEHayes,
 
Thank you for your post.

移至编码的UI"测试论坛以获得更好的支持.

Move to Coded UI test forum for better support.

感谢您的理解和支持.

此致


这篇关于CodedUI数据驱动断言失败时停止所有测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆