Forum Discussion

goutham777's avatar
goutham777
Occasional Contributor
13 years ago

Groovy in soapui

Hi All,

Can anyone please tell me how to run groovy script in soapui i am new to this tool.Should we import any packages in script. Thanks in advance

Thanks,
Goutham

5 Replies

  • Can someone update me how to resolve this problem? I got same error try to run the script.
    Thanks,
    Shibin
  • goutham777's avatar
    goutham777
    Occasional Contributor
    Hi,

    I am getting the following alert when tried to run test case using groovy

    ERROR:org.mozilla.javascript.EvaluatorException: missing ; before statement

    Code:
    def testCase1 = testRunner.testCase.testSuite.project.getTestSuiteByName("mytest").getTestCaseByName("TestCase 1")
    def properties = new com.eviware.soapui.support.types.StringToObjectMap ()
    def async = false
    testCase1.run (properties, async)

    Can anyone please help me out

    Thanks,
    Goutham
  • Aaronliu's avatar
    Aaronliu
    Frequent Contributor
    goutham777 wrote:
    Hi,

    I am getting the following alert when tried to run test case using groovy

    ERROR:org.mozilla.javascript.EvaluatorException: missing ; before statement

    Code:
    def testCase1 = testRunner.testCase.testSuite.project.getTestSuiteByName("mytest").getTestCaseByName("TestCase 1")
    def properties = new com.eviware.soapui.support.types.StringToObjectMap (context)
    def async = false
    testCase1.run (properties, async)

    Can anyone please help me out

    Thanks,
    Goutham



    try that again
  • PaulDonny's avatar
    PaulDonny
    Regular Contributor
    Is your groovy script causing the error or is it possibly something on the client side. Where is the error occurring and what is happening?

    That script in itself should not be causing that error message.