[英]How to find Test suite.xml execution status in Testng
I want to find the execution status of TestNG.xml whether the suite is completed or not. 无论套件是否完成,我都想查找TestNG.xml的执行状态。
I am executing multiple xml suites like: 我正在执行多个xml套件,例如:
testng.setSuites(suite1);
testng.run();
Now after all the thread hits testng.run();
现在所有线程都击中了
testng.run();
, I want to get the execution status of every single xml suite. ,我想获取每个xml套件的执行状态。
I am confused of testng.getStatus(), because what it returns is an int value and what does that value mean exactly. 我对testng.getStatus()感到困惑,因为它返回的是一个int值,而该值的确切含义是什么。
Please let me know how to do this. 请让我知道该怎么做。
1)单击您的项目2)按F5 3)打开项目4)在项目结束时,您将看到TESTNG输出
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.