nagoorkj
6 years agoContributor
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.