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.
Here, I gave you solution to use correct versions of ready API and selnium drivers. And finally it worked for you. Here, it is the same thing. You need to figure out. Else you can share the jars you are using in eclipse.
I use my code with 2 chromedriver, one is suggested by you(2.26) and another one is 2.38.it is working fine with 2.38 but I think Ready API did not support 2.38 chrome version. As I use the same selenium jar in eclipse and ready api. It works in eclipse but not in readyapi.
When I use the above selenium jar files with chromedriver 2.26, it just opens the chrome browser and does not do anything further - maybe the chrome version I am using is higher (I executed this on eclipse as well as ReadyAPI both). However, when I use chromedriver 2.38 with the same selenium jar files, it does work on eclipse but not on readyapi.