Forum Discussion
SmartBear_Suppo
12 years agoSmartBear Alumni (Retired)
I wouldn't do this in a tearDown, but use a Groovy script and the TestMonitor class. I think this would work well for you:
import com.eviware.soapui.monitor.TestMonitor
def maxSecondsToWait = 10 // or whatever value of your choosing
while (TestMonitor.hasRunningTests(testSuite.project) && retries <= maxSecondsToWait) {
try { Thread.sleep(1000) } catch (InterruptedException e) {}
}
// verify!
import com.eviware.soapui.monitor.TestMonitor
def maxSecondsToWait = 10 // or whatever value of your choosing
while (TestMonitor.hasRunningTests(testSuite.project) && retries <= maxSecondsToWait) {
try { Thread.sleep(1000) } catch (InterruptedException e) {}
}
// verify!
Related Content
Recent Discussions
- 8 days ago