How to call Java main method from Groovy Script in SoapUI
Can someone please advice me how to call java main method along with argument from Groovy script.
Below are the steps which I have done
1) Write the code and eclipse under the main method
2) Taking 4 parameters as input from the main method.
3) Run the class in eclipse and it's working fine.
4) Created the Jar file
5) Place in the bin/ext folder of ReadyAPI
6) Restart ReadyAPI
now the question is how can I call the main method from the groovy script. I try creating an object of the class and call method as same we call another method but it's not working. Is there any way to call the main method of the class.
You also need to pay attention to versions of the guava and gson libraries which you use.
I've found the following articles with a similar issues:
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️