Loop with groovy to execute a TestCase in soapui -


I run a test case 5 times in soap using groovy. I found the following code in Stackoverflow and added the loop part but it executes randomly Sometimes it is executed 2 times and sometimes 4 times.

Here's the code:

  def a = 5; While (A & gt; 0) {a--; Def testCase = testRunner.testCase.testSuite.testcases ["Testss"]; Def attribute = new com.eviware.soapui.support.types.StringToObjectMap (); Def async = false; Testcase.run (Properties, async); }  

Println 'Foo Bar'} 5.times {doSomething ()}

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -