I want to define a class in a groovy script so that I can reuse another groovy script inside the SoapUI.
I alredy tried to define my class inside the TestSuite property, but it does not work. I would like to avoid class definition in the JAR , because we work in a team, and each of them will have to import the JAR into its SoapUI to run my tests. I am using SoapUI 3.6.1
This is how my TestSuite works:
TestSuite
TestCase
TestSteps
Init (Groovy Script)
GetResponse1 (Test Request)
Test1 (Groovy Script)
GetResponse2 (Test Request)
Test2 (Groovy Script)
To simplify the tests, I defined the class in 'Test1', and I would like to reuse this class in 'Test2'. Therefore, ideally, I would define this class in "Init", and it would be available for any other groovy script.
How can i achieve this?