Forum Discussion

jay_patel's avatar
17 years ago

Running TestCase with steps depending on each other

Writing my first JUnit test integrating with soapUI.
Here's where I'm stuck -
I want to run a testcase with two steps where second step depends on first one's response (For example a claim number from first response)!

How do I inject this information (ex. claim number) in to second step?

Or how do I get handle of particular tag (23423) from the step or any other Object that I can get from TestCase object?

I'm excited if I can finally replace some QTP scripts (that I don't really know) with JUnit integration tests!! Thanks in advance.

Jay
  • omatzura's avatar
    omatzura
    Super Contributor
    Hi Jay,

    you need to use a property-transfer step between your two requests that transfers the value from the first response to the following request. The actual source and target nodes are specified using XPath, have a look at http://www.soapui.org/userguide/functio ... sfers.html for more info..

    Hope this helps!

    regards,

    /Ole
    eviware.com