Forum Discussion
sinnes_1
17 years agoOccasional Contributor
In my soap requests, I refer to a Properties step rather that using a property transfer (still not 100% what they do
). Then I use groovy scripts to change these properties when I need. If I had a Properties step call "Properties" with the property "ID" inside it, I'd refer to it in a test request like so:
Then you can have a groovy script on either side of the request that manipulates the value of "ID" whenever you like.
So you could have a groovy script underneath your test request that sets the properties back to whatever your defaults are.
Hope that helps!
). Then I use groovy scripts to change these properties when I need. If I had a Properties step call "Properties" with the property "ID" inside it, I'd refer to it in a test request like so:<someelement>${Propreties#ID}</someelement>Then you can have a groovy script on either side of the request that manipulates the value of "ID" whenever you like.
def properties = testRunner.testCase.getTestStepByName("Properties");
properties.setPropertyValue("ID", "7");So you could have a groovy script underneath your test request that sets the properties back to whatever your defaults are.
Hope that helps!