Forum Discussion

vhTesting01's avatar
vhTesting01
New Contributor
4 years ago

[SoapUI] Groovy script calling evaluate(File) function has problems with my project's package

Hello, just briefly explaining the concept: I have git repo, mvn project with structure: [ Spoiler ]     My soapUI is using script step alongside with groovy function evaluate(File) -> to run th...
  • KarelHusa's avatar
    4 years ago

    Hi vhTesting01 ,

    if you want to use your own Groovy/Java library in SoapUI, just do the following:

    1. build your library into a JAR file
    2. put it into SoapUI/bin/ext directory

    Then you can use your library from different places of SoapUI, including calling evaluate for an external Groovy script.

    The same works for any other Java libraries.

     

    Plese don't forget to include import statement where appropriate.

     

    Best regards,

    Karel