Forum Discussion

SmartBear217's avatar
SmartBear217
Contributor
5 years ago
Solved

How do I make SOAPUI save the custom properties after the run?

I have custom properties that are updated during the test run via groovy scripts.


Those values are used during the run. The run works fine. But after is passed, all the custom values that were used during the run are reverted back to old ones.

 

How do I make it keep the custom properties that are saved and not overwrite them back to a previous runs values?

 

Or is this a bug? It does seem like a bug but maybe there's an option somewhere.

  • sonya_m's avatar
    sonya_m
    5 years ago

    SmartBear217 it is really sad to hear that you faced these issues. It seems to me like this properties behavior requires deeper investigation. The best next step at this point would be contacting our Customer Care Team. 

     

     

  • The solution smartbear pointed out is to go to the project level and set "Save properties between sessions" to true. I'm not sure why that option isn't available in the preferences section but at least it's not a bug.

9 Replies

  • The solution smartbear pointed out is to go to the project level and set "Save properties between sessions" to true. I'm not sure why that option isn't available in the preferences section but at least it's not a bug.

  • nmrao's avatar
    nmrao
    Champion Level 3
    How are you running? From the tool? or from the command line using testrunner?

    Can you provide a sample project to reproduce the issue?
    • SmartBear217's avatar
      SmartBear217
      Contributor

      I'm running from ReadyAPI/SOAPUI Pro.

       

      I don't think I can provide a sample project. But basically the issue is if a test has some values in the custom properties, and I execute a test run where those values are updated, after the run is complete the custom properties are populated with that values that were previous to the test run, and not the values from the test run. I.e it's reverted back to older values for some reason. 

      • nmrao's avatar
        nmrao
        Champion Level 3
        Have you tried saving the project after the run?