Forum Discussion
Did you import the class name where "idea" is package and "Execute" is class name:-
import com.idea.Execute
OR
import com.idea.* //To import all the classes
Then try this:-
Execute ex = new Execute(); //Add parameters based on requirements. ex.call() //where call() is method of Execute class
If it solved you problem. Please accept as solution and don't forget to give kudos.
- ranujn6 years agoContributor
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;
- avidCoder6 years agoSuper Contributor
Ok, Then this Java compatibility issue. What is your soapui version and the Java version?
- nmrao6 years agoChampion Level 3Why don't post exactly what you are using.
There is no way one gets the above error with mentioned code snippet.
Any ways, you can't call the main method on the object because that is static one.- ranujn6 years agoContributor
nmrao Below is the configuration I am using it.
Selenium jars
httpclient-4.3.4.jar
selenium-server-standalone-2.41.0.jar
Ready API
2.3.0
Chrome Driver
2.26
2.38
Chrome version
Version 65.0.3325.181 (Official Build) (64-bit)
Eclipse IDE
Version: Photon Release (4.8.0)
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.
Related Content
- 2 years ago
- 4 years ago
- 2 years ago
Recent Discussions
- 3 hours ago
- 17 days ago