문제
I'm trying to write parallel tests in soapui and need to transfer properties between the test steps
I currently have 3 tests steps:
- Execute legacy request
- Execute new request
- XML diff the two responses in a groovy script
I've found a lot of blogs about picking values out with xpaths, but nothing about passing the full response through.
My questions is how do I fill out the source and target boxes in the property transfer editor?
해결책
- Add a "Properties" test step.
- Add properties for each response.
- Define a "Property transfer" after each request
- Set the source to the response of the test step
- Set the target to the property defined in step 3
Access them in groovy like so:
def props = testRunner.testCase.getTestStepByName("Properties")
def response1 = props.getPropertyValue("response1")
def response2 = props.getPropertyValue("response2")
println response1
println response2
제휴하지 않습니다 StackOverflow