Forum Discussion
avidCoder, I do not have any method in the class. It's the only main method I have in the class. I try doing this but it did not work
My java code looks like this
package project;
public class MyClass{
public static void main(String[] args) {
// performing some functionality here
}
}
Groovy script :
import project.MyClass;
MyClass sample = new MyClass();
sample.main(".abcd","Test","tom","pass");
It throws below error and I am not sure, Is this error coming because I am calling main method or any other issue
ERROR:java.lang.NoSuchMethodError: com.google.common.util.concurrent.SimpleTimeLimiter.create(Ljava/util/concurrent/ExecutorService;)Lcom/google/common/util/concurrent/SimpleTimeLimiter;
Ok, Then this Java compatibility issue. What is your soapui version and the Java version?
- avidCoder6 years agoSuper Contributor
Also, the jar files you are using to execute the program in eclipse? Its problem with the extenal jars which you are using in eclipse. That jars may not be compatible with the ready API version.
- avidCoder6 years agoSuper Contributor
You remember, I had resolved the same error issue you were facing 1 month back related to running selenium code in Ready API -
https://community.smartbear.com/t5/SoapUI-Pro/Simple-Functional-Web-Testing/td-p/177519
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.
- ranujn6 years agoContributor
avidCoder, Yes, I think its same issue. Can you please let me know how to find compatibility between ready api, chromedriver version, and selenium as it is working fine in eclipse.
The chrome version you have suggested before in here (https://community.smartbear.com/t5/SoapUI-Pro/Simple-Functional-Web-Testing/td-p/177519), it just launches the chrome but it won't do anything further like searching for the particulate field and place the values etc..
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.
Related Content
- 2 years ago
- 4 years ago
- 2 years ago
Recent Discussions
- 19 hours ago
- 17 days ago