为什么在Windows cmd中运行testng.xml时会随机跳过硒测试用例

我尝试使用带有多个案例的testng.xml文件运行硒自动化测试案例,但是跳过了一些案例。 TestNG也不显示跳过的测试用例计数,但显示总数和失败计数。找不到原因并解决此问题。

所以我需要使用testng.xml运行tescase的解决方案,而不必使用cmd行中的以下命令在Windows cmd中跳过;

    java org.testng.TestNG %project_location%\sample_testng.xml

您能否请任何人在这个问题上帮助我?

为什么在Windows cmd中运行testng.xml时会随机跳过硒测试用例

gongchen10 回答:为什么在Windows cmd中运行testng.xml时会随机跳过硒测试用例

您的测试没有被跳过。他们成功了。

Tests run: 19 = Total test count.
Failures: 15 = Failed tests.
Skips: 0 = Skipped tests.
Total test count - Failed tests - Skipped tests = Successful tests.

19-15-0 = 4个成功的测试

本文链接:https://www.f2er.com/2791248.html

大家都在问