Forum Discussion

SoapUser2012's avatar
SoapUser2012
Occasional Contributor
14 years ago

[RES] calling .groovy function from tear down script

Hi ,

I have a groovy script step in the same test suite as other test cases .This groovy script runs all the test cases in the test suite in a loop. It then calls one user defined groovy method to update the results( this is a groovy method defined in grovy class and the package is added to the default path of the SOAP UI) .This method is invoked thro the object of the class containing this method ) . In Groovy step ,in order to call this method ,we need to specify this package.

Could I be able to call this method from tear down script, same way its done in groovy step by specifying the package name there?

Thanks

2 Replies

  • Hi,

    you can do a regular

    import <package>

    ...

    at the start of your script..

    regards,

    /Ole
    SmartBear Software
  • SoapUser2012's avatar
    SoapUser2012
    Occasional Contributor
    Thank you ,its working . Hence , this thread can be closed .

    Thanks