We are building a new experience for our SmartBear Community.
This site is now read-only. You can still browse and search as usual. Learn More
This site is now read-only. You can still browse and search as usual. Learn More
Hi Jan,
You should use
testRunner.getResults()
For instance, in a TestCase Teardown script:
Map resultOf = testRunner.getResults()
.collectEntries { result -> [ (result.testStep): result.status ] }
def mystep = context.getTestCase().getTestStepByName("Some step")
log.info resultOf[myStep]
In the attached project is another TestCase Teardown example, and an example of how to get the results from a TestSuite Teardown script.
Hi Jan,
You should use
testRunner.getResults()
For instance, in a TestCase Teardown script:
Map resultOf = testRunner.getResults()
.collectEntries { result -> [ (result.testStep): result.status ] }
def mystep = context.getTestCase().getTestStepByName("Some step")
log.info resultOf[myStep]
In the attached project is another TestCase Teardown example, and an example of how to get the results from a TestSuite Teardown script.
It worked exactly the same way which i was expecting. Thanks for writing this.