ili
3 years agoOccasional Contributor
Share report instance
Hi,
I am using external lib for reporting. When I execute whole project or suite I would like to pass shared report object to each testCase so that I save all results in one report file.
Something that I wanted to use is
//////////// REPORT setup script
if(!testRunner.hasProperty('report')){
//pseudo code
//reporter = ...
testRunner.metaClass.report = reporter
}
in TestRunListener.beforeRun event. However, I have noticed that the testRunner instance is not shared between the test cases (e.g. when I run whole suite). I believe for each testCase new testRunner is created.
I am using 3.40.2 version of ReadyAPI
Any help on this?