Forum Discussion

VJ1's avatar
VJ1
Occasional Contributor
7 years ago

SoapUI tests fails intermittently

Hello, I am facing an issue where my tests run fine for some time, but start failing after a while. I haven't seen a pattern yet, but they seem to pass more often if I restart the virtual machine after the tests are run for the next run. Is there any settings I can make in the tool to clear cache or something after every run. Any help on this is appreciated as this is very annoying not to have deterministic tests. Thanks! VJ

9 Replies

  • nmrao's avatar
    nmrao
    Champion Level 3
    Instead SOAPUI_HOME/bin/testrunner(.bat/.sh) utility can be used to execute the soapui project in command line.

    Do you see outofmemory?
    • VJ1's avatar
      VJ1
      Occasional Contributor

      Thanks Rao for taking the time. I am executing the test from the TestRunner batch file when I see the issue. Also see the same issue when I run it from UI. Sometimes I noticed that switching the environments makes a difference & the tests pass. This is again intermittent. 

       

      I am not seeing any out of memory.

       

      Thanks!

      Vijay

      • groovyguy's avatar
        groovyguy
        Champion Level 1

        You can try setting up a groovy test step that simply runs:

         

        System.gc();

         

        This will force ReadyAPI to garbage collect and has solved many similar problems for me. Hope that helps!