Forum Discussion

bm103's avatar
bm103
New Contributor
2 years ago

Testrunner.bat not updating custom properties

Hi,

 

I have a test case that has the following structure:

1) Groovy script (updates TestSuite level Custom property & sets SOAP XML element in step 3)

2) Groovy script (updates TestSuite level Custom property & sets SOAP XML element in step 3)

3) Send Soap request to endpoint

4) Delay [60000]

5) Validate DB after Soap Request

 

The Issue: When I run this TC via the Soap UI GUI, I can see my TestSuite level properties being updated as expected, but when I run this TC via cmd.exe using 'testrunner.bat' the custom properties at the test suite level do not get updated. This causes an issue the next time I go to run my tests, as the properties are not being incremented as expected by testrunner.bat. I am validating by re-opening the project in SoapUI GUI after running testrunner and I do not see the custom properties getting updated even though the execution is successful via testrunner. 

 

Anyone have any advice for how I can make sure my custom property updates are being saved correctly so that when I reopen SoapUI GUI after running the testrunner, I can see the updated custom property values?

 

Thank you!