cancel
Showing results for 
Search instead for 
Did you mean: 

Can we read all Test cases result status and it counts from project tear down??

nagoorkj
Contributor

Can we read all Test cases result status and it counts from project tear down??

Hi Team i tried with below code but unfortunately it is not going inside loop nor printing the logs which i expected.

for( projectResult in runner.results) { log.info "Project name : " + projectResult.getProject().name log.info "Project status : " + projectResult.getStatus().toString() for ( testSuiteResult in projectResult.results ) { log.info "Test suite name : " + testSuiteResult.getTestSuite().name log.info "Test suite status : " + testSuiteResult.getStatus().toString() for ( testCaseResult in testSuiteResult.getResults() ) { log.info "Test case name : " + testCaseResult.getTestCase().name log.info "Test case status : " + testCaseResult.getStatus().toString() } } }

I want to print all test suite and test cases names along with the status.
New Here?
Join us and watch the welcome video:
Top Kudoed Authors