简体   繁体   中英

Selenium test execution order chnges when debugging in Visual Studio

In Visual Studio 2017, I have a Unit test project. In that project, I have 2 tests in Test Explorer.

When I run these tests the execution order is (Test1, Test2), but when I debug the same tests the execution order is (Test2, Test1).

Why is the execution order changing when I debug the test runs? How can I fix that?

我通过使用OrderedTest找到了一个解决方案。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM