es
16 years agoOccasional Contributor
[SOLVED]Teststep dependencies
Hi,
I have a testcase with the following steps:
1. SOAP request: sends a guid to a loginscript and receives an encrypted sessionid
2. Groovy script: decrypts the sessionid and returns it
3. SOAP request: grabs the return value of the Groovy script and uses it as a parameter:
This works well when I run it from TestRunner, but when I create a loadtest from these steps, the Groovy script fails, seemingly because it wasn't able to grab the response from the first SOAP request, which is done this way:
Is there a way to set dependencies between the teststeps, so that step 2 waits for the response from step 1 before it starts? Or am I doing something else wrong?
Thanks in advance for any help or pointers!
I have a testcase with the following steps:
1. SOAP request: sends a guid to a loginscript and receives an encrypted sessionid
2. Groovy script: decrypts the sessionid and returns it
3. SOAP request: grabs the return value of the Groovy script and uses it as a parameter:
${DecryptSID#result}
This works well when I run it from TestRunner, but when I create a loadtest from these steps, the Groovy script fails, seemingly because it wasn't able to grab the response from the first SOAP request, which is done this way:
context.expand( '${Login#Response#//ns2:LoginResponse[1]/SessionId[1]}' )
Is there a way to set dependencies between the teststeps, so that step 2 waits for the response from step 1 before it starts? Or am I doing something else wrong?

Thanks in advance for any help or pointers!