Forum Discussion
SmartBear_Suppo
Alumni
15 years agoHi Vijay!
JUnitReport.addTestCase(...) is not a static method, but you try to access it in a static fashion. You need to instantiate JUnitReport first, like this:
Regards
/Henrik
JUnitReport.addTestCase(...) is not a static method, but you try to access it in a static fashion. You need to instantiate JUnitReport first, like this:
import com.eviware.soapui.report.JUnitReport
def testCaseName = testRunner.testCase.name
double time = testRunner.timeTaken
new JUnitReport()
JUnitReport.addTestCase(testCaseName, time)
Regards
/Henrik