Forum Discussion

lcordy's avatar
lcordy
Occasional Contributor
7 years ago
Solved

Groovy script library

Hi, I am creating a central library of Groovy Classes, however I run into errors when trying to invoke the classes. The reason is because when we run a normal Groovy Script step from within ReadyAPI,...
  • StevenColon's avatar
    7 years ago

    Thank you for posting to our Community Forum. 

     

     

    Here is our documentation on the groovy script library that includes an example external script. In this example they use a static method and import the log object from a groovy script TestStep. In that case you don't need to know the library with the log object.

     

    https://support.smartbear.com/readyapi/docs/testing/scripts/library.html

     

    I do not know where the log object is stored. In a groovy TestStep, I ran the script log.class and it returned "org.apache.log4j.Logger". Maybe that can help you.

     

    Here is also our site with all available methods: http://www.soapui.org/apidocs/overview-summary.

     

    Have a great day!