Forum Discussion
SiKing
12 years agoCommunity Expert
Now it starts to get complicated. I have two test cases in a test suite, mode=PARALLEL.
TestCase 1.
1. SOAP call to a service
2. Transfer step to retrieve a value from #1 to a TestSuite property "startingValue". This property has value "empty" at the start of test.
TestCase 2.
1. Groovy Script
2. SOAP call to a service that uses ${#TestSuite#startingValue}
In my last step above, I always see the value "empty" when I look at the Raw Request of the SOAP call, however I see the value updated in the testSuite property when the test is finished running. Also, the info message never gets logged.
I also tried hasRunningTestCase() instead of hasRunningTest(); is there a difference?
I did not use hasRunningTests(), because in my situation as described here that seems like it is going to be asking: am I running while I am running?
What am I doing wrong?
TestCase 1.
1. SOAP call to a service
2. Transfer step to retrieve a value from #1 to a TestSuite property "startingValue". This property has value "empty" at the start of test.
TestCase 2.
1. Groovy Script
import com.eviware.soapui.monitor.TestMonitor
def monitor = new com.eviware.soapui.monitor.TestMonitor()
while(monitor.hasRunningTest("TestCase 1.")) {
log.info "I wuz here!"
Thread.sleep(100)
}
2. SOAP call to a service that uses ${#TestSuite#startingValue}
In my last step above, I always see the value "empty" when I look at the Raw Request of the SOAP call, however I see the value updated in the testSuite property when the test is finished running. Also, the info message never gets logged.
I also tried hasRunningTestCase() instead of hasRunningTest(); is there a difference?
I did not use hasRunningTests(), because in my situation as described here that seems like it is going to be asking: am I running while I am running?
What am I doing wrong?
Related Content
Recent Discussions
- 22 days ago