Monday, January 9, 2017

SOAP UI: Dynamically Change the Reponse/method in the Test Step

Dynamically Change the Response/Method in the Test Step

To Dynamically change the  response / method in the Test step , user needs to replace the URL in the scratch pad itself with the variables .

In the below example , I'm grabbing the id value from properties file(counter) in the response.For that I have first modified the scratch pad Resource ,this gets reflected in the test step and can be used further.


SOAP UI : Property Transfer

Property Transfer


Property Transfer : Used to search values from any test step and transfer it to another step.
Note : widely used to transfer value from Request to Property step (Ref example below)

In the below example :
  1. Create_product (Rest Request) - Contains the id value of the product created.
  2. Property Transfer - Tries to grab the id from above step (select the file to be searched using drop down and use JSON path finder http://jsonpath.com/ to traverse to the required string.
  3. Click on play in the Property transfer to validate the result
  4.  Select the target file in the drop down below
  5. Again play to evaluate the same