Forum Discussion

dvjensen17's avatar
dvjensen17
Occasional Contributor
10 years ago

Groovy Test Step not running while integrated into Jenkins.

I developed my test suites on Windows Ready API! 1.4.1 and use SVN to place those test suites in a repository. I configured the pom.xml so that the test suite is running but there are Groovy Test Ste...
  • nmrao's avatar
    nmrao
    10 years ago

    I mean try with the changes as modifed in below script (earlier suggested to use context in place of testRunner, not sure though why Jenkins unable to determine context while soapUI can work fine)

     

    //Get existing value
    def count = testRunner.testCase.testSuite.project.properties['createAccountCount'].value as int
    //Set the next value and put it back to project property
    testRunner.testCase.testSuite.project.properties['createAccountCount'].value = (count+1).toString()