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<

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

被折叠的 条评论
为什么被折叠?



