views:

81

answers:

0

Hi,

I have a request which I am changing using some groovy and property transfers. However after the test case has finished I would like to reset that request to its original code. I am guessing I do this using groovy but am not sure how.

The setup is as follows:

TestSuite1 has a property which is the request. TestCase1 has a number of test Steps the first of which is a property transfer step which sets the request to be the one in the suite property. Test Case 1 then does some other stuff which changes the values in that request.

Once its done I need to reset the request in test case 1 to the original value so that when the test is run again the initial property transfer is successful.

Any ideas?