在visual studio中自定义顺序执行测试用例

本文介绍了如何在 Visual Studio 中创建并执行有序测试。首先,通过右键选择测试项目并添加有序测试,然后选择并排列测试用例。接着,在 Test List Editor 中调度运行。执行过程中,如果某个测试失败,可通过 'Continue after failure' 选项让其余测试继续执行。测试结果会显示在 VS 中,方便查看每个测试的状态和详细信息。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1. Select the test project from Solution Explorer, right-click and select Add Ordered Test.


2. Select the cases and put them in the order that you want. Also check “Continue afterfailure”, then Save the ordered test by choosing the File | Save option.


3. Select the orderedtest in Test List Editor and schedule to run.

4. Check the results inVS or website.



Note:

The Select test list to view dropdown has the option to choose the display of tests in the available Test Lists. Thisdropdown has the default All Loaded Tests, which displays all available tests under the project. The other options in the dropdown are Lists of Tests and Tests Not in a List. The List of Tests will display the test lists created using the Test List Editor<

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值