Forum Discussion

pascalSoap's avatar
pascalSoap
Occasional Contributor
12 years ago

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
  • nmrao's avatar
    nmrao
    Icon for Champion Level 2 rankChampion Level 2
    Assuming that you have a Test case say tc1 which has multiple steps and one of the test step is run test case where you call tcx. Clarify details otherwise.
    Isn't is possible to have a xpath assertion / script assertion (which i think could be applicable as well) in called TestCase(tcx) itself ?