Forum Discussion

chary_chelloji's avatar
chary_chelloji
Occasional Contributor
15 years ago

Changing Parameterized response in the another requerst

Hello,
Could you please help us with the directions for the below scenario automation,

Scenario:
We have a test case, comprises of 4 test steps of soap request type.
Step 1
Step 2
Step 3 - It accepts 2 inputs. 1 input filed is taking the response of Step 2 as one of the input argument in step 3.
Step 4

This flow automation is working fine. but at step 3, I need to change (Ex: adding of dynamic value to one of the data field in the parametrized response) the response coming from step2 before submission of Step 3. We are unable to alter the request since it is coming from step 2.

Regards
Chary Chelloji

1 Reply

  • I would create a Groovy test step between Step 2 and Step 3. The Groovy code would access the response of Step2 and parse the data you are interested in, modify it as you need, then store that value in a property somewhere (teststep or testcase level). Then Step3 would access the stored property value for input.