Forum Discussion

nagoorkj's avatar
nagoorkj
Contributor
6 years ago

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.
No RepliesBe the first to reply