Forum Discussion
Dheepha
12 years agoContributor
Hi Paul,
Thanks for sharing the code. But when I tried to run the same , I have observed that the tests are not running actually.
I have added some log statements to check whether thread is executing and also tried to print the response in the soapui log to verify but I have seen that the code for thread is actually not executed.
Modified code:
def th = Thread.start {
Run them all and then rejoin the threads
log.info("thread")
TestRunner.runTestStepByName(testStep.getName());
def soapResponse = testRunner.getTestCase().getTestStepByName("Request").getProperty("response");
log.info(soapResponse)
th.join();
}
*These two log statements are not printed in my soapui logs*
Regards,
Dheepha B
Thanks for sharing the code. But when I tried to run the same , I have observed that the tests are not running actually.
I have added some log statements to check whether thread is executing and also tried to print the response in the soapui log to verify but I have seen that the code for thread is actually not executed.
Modified code:
def th = Thread.start {
Run them all and then rejoin the threads
log.info("thread")
TestRunner.runTestStepByName(testStep.getName());
def soapResponse = testRunner.getTestCase().getTestStepByName("Request").getProperty("response");
log.info(soapResponse)
th.join();
}
*These two log statements are not printed in my soapui logs*
Regards,
Dheepha B