Forum Discussion
SmartBear_Suppo
12 years agoSmartBear Alumni (Retired)
Hi,
So as I replied you on the mail, sharing this in the forum also. You have to setup the monitor on the test suite setup since, if you run the test cases parallelly there is no gurantee which test case will run first. So, can't have the monitor setup code inside the test case. There was some minor problem with the code snippet that was shared in earlier reply, probably that is why you were unable to use it on the setup. Try the following one
And on your "verify and cleanup" test step have the wait for completion check as usual before verification step. Hope this works.
Regards,
Shadid
SmartBear Sweden
So as I replied you on the mail, sharing this in the forum also. You have to setup the monitor on the test suite setup since, if you run the test cases parallelly there is no gurantee which test case will run first. So, can't have the monitor setup code inside the test case. There was some minor problem with the code snippet that was shared in earlier reply, probably that is why you were unable to use it on the setup. Try the following one
def monitor = new com.eviware.soapui.monitor.TestMonitor()
testSuite.testCases.each {
testCase = it.value
if ( testCase.label != "verify and cleanup") {
log.info("monitoring $testCase.label")
monitor.monitorTestCase(testCase)
}
}
runner.runContext.testMonitor = monitor
And on your "verify and cleanup" test step have the wait for completion check as usual before verification step. Hope this works.
Regards,
Shadid
SmartBear Sweden
Related Content
Recent Discussions
- 8 days ago