pascalSoap
12 years agoOccasional Contributor
Testing Result Of Run TestCase Step in Goto Step (not pro)
Hello,
Is it possible to place a Goto Step after a Run TestCase (which runs a Request Soap) or is it obligatory to place a Goto Step immediately after a Soap Request Step ?
If it is possible , how can I and how must I write the XPath condition testing that the return code of the resquest equals zero ,
I have already done some tests and :
This XPathCode of a Goto Step placed immediately after the request verifyUser of the Web Service security works well :
declare namespace soap='http://(...)';
declare namespace ns1='http://(.../security)';
//ns1:VerifyUserResponse/code[1] = 0
When I put it in a Goto Step placed immediatly after the Run TestCase of the same request, it doesnt work any more with the message :
"missing previous request step"
If necessary I know how to transfer the value of code from the Run TestCase to a local property placed between the Run TestCase and the Goto Step ; but then which is the XPath syntax to access and compare to 0 the value of code ? I have tried several things and systematically had the message "missing previous request step"
Thank you by advance for your answer,
Pascal
Is it possible to place a Goto Step after a Run TestCase (which runs a Request Soap) or is it obligatory to place a Goto Step immediately after a Soap Request Step ?
If it is possible , how can I and how must I write the XPath condition testing that the return code of the resquest equals zero ,
I have already done some tests and :
This XPathCode of a Goto Step placed immediately after the request verifyUser of the Web Service security works well :
declare namespace soap='http://(...)';
declare namespace ns1='http://(.../security)';
//ns1:VerifyUserResponse/code[1] = 0
When I put it in a Goto Step placed immediatly after the Run TestCase of the same request, it doesnt work any more with the message :
"missing previous request step"
If necessary I know how to transfer the value of code from the Run TestCase to a local property placed between the Run TestCase and the Goto Step ; but then which is the XPath syntax to access and compare to 0 the value of code ? I have tried several things and systematically had the message "missing previous request step"
Thank you by advance for your answer,
Pascal