Forum Discussion
SmartBear_Suppo
12 years agoSmartBear Alumni (Retired)
You can achieve this but not out-of-the-box, unfortunately.
Here's how I would proceed:
Let me know if this has solved the problem.
Regards,
Renato
SmartBear Software
Here's how I would proceed:
- Create a TestCase-level property which will hold the hash value, say "request_hash".
- In your XML request, let the value of your hash field be ${#TestCase#request_hash}. For example:
<pxor:hash>${#TestCase#request_hash}</pxor:hash>
- Add a Groovy test step to your testCase. It must be located before the actual request testStep as we will modify the value of the Test-Case property we've created in the previous step before sending it.
- In the Groovy test step's editor, in SoapUI Pro, you can just right-click and select on "Get Data..." to get the value of any property, including properties in the request.... so give it a go and find all the data you need easily.
- Hash the values using a Groovy function like this one: http://128bitstudios.com/2011/02/17/md5 ... nd-groovy/
- Now, your script (in the Groovy Test Step) should just set the testCase property as follows:
testRunner.testCase.setPropertyValue( "request_hash", hashValue )
Let me know if this has solved the problem.
Regards,
Renato
SmartBear Software
Related Content
- 5 years ago
- 2 years ago
Recent Discussions
- 22 days ago