简体   繁体   English

如何在Testng中查找Test suite.xml执行状态

[英]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.

相关问题 如何告诉Maven和TestNG运行特定的测试类或suite.xml文件? - How do I tell Maven and TestNG to run either a specific test class or a suite.xml file? 一旦将新的Scala类添加到suite.xml文件中,TestNG就无法在类路径中找到类 - TestNG Cannot find class in classpath once a new scala class is added to the suite.xml file 我们如何在testNg suite.xml中创建对多个测试的依赖 - How can we create dependency on several tests in testNg suite.xml TestNG 测试套件执行时间 - TestNG test suite execution time 在 TestNG xml 套件中以编程方式设置测试参数以进行并行执行 - Programmatically set test parameters in TestNG xml suite for parallel execution Testng Test Suite xml-停止执行并生成报告 - Testng Test Suite xml - Stop execution and generate report Maven surefire 插件无法选择正确的 testng suite.xml 文件 - Maven surefire plugin fails to pick correct testng suite.xml file 如何在等待一个测试用例执行完成时在TestNG测试套件中执行其他测试用例 - How to execute other test cases in a TestNG test suite while waiting for one test case execution to finish 如何执行 java class 并使用 POM.xml 文件运行所有套件。 - How to execute java class and the run all the suite.xml files using POM.xml 如何使用testng.xml从大型TestNG套件执行一个测试? - How to execute one test from large TestNG suite using testng.xml?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM