MTM2015中的测试用例失败时如何停止TestSuite [英] How to stop a TestSuite when a test case fails in MTM2015

查看:98
本文介绍了MTM2015中的测试用例失败时如何停止TestSuite的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在1个测试套件中有10个测试用例.如果前5个测试用例成功运行,而第6个测试用例失败.我不想运行第7个和其余的测试用例.我想停止执行测试套件.我在MTM 2015中有没有选择做的任何选择.谢谢


Mak

I have 10 Test cases in 1 Test suite. If First 5 test cases run successfully and 6th test case fails. I don't want the 7th and remaining test cases to run. I want to stop executing the test suite. Is there any option i choose in MTM 2015 to do it. thanks


Mak

推荐答案

麦高,

>>我想停止执行测试套件.我在MTM 2015中有选择吗?

否,MTM中没有这样的选项可以实现.

但是我认为您可以通过以下方法解决此问题:

But I think you can workaround this issue by this:

创建一个orderedtest并将您的10个测试添加到orderedtest文件中.然后,您只能运行最有序的测试,一旦其中一项测试失败,该测试将失败.

Create a orderedtest and add your 10 tests into the orderedtest file. Then you can only run the orderestest, it will failed once one of the tests fails.

有关更多信息,请参考以下主题:

For more information, please refer to the thread below:

http://stackoverflow.com /questions/11410062/如果给定测试案例失败,则终止整个测试套件

最好的问候,

肖湖


这篇关于MTM2015中的测试用例失败时如何停止TestSuite的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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