How to call Java main method from Groovy Script in SoapUI
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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:
- https://github.com/citrusframework/citrus/issues/294
- https://github.com/SeleniumHQ/selenium/issues/5223
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️

- « Previous
-
- 1
- 2
- Next »
- « Previous
-
- 1
- 2
- Next »