Contributions
Re: How to call Java main method from Groovy Script in SoapUI
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 Chromeversion 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.6 years agoPlace ReadyAPI QuestionsReadyAPI Questions6.3KViews0likes1CommentRe: How to call Java main method from Groovy Script in SoapUI
avidCoder, Yes, I think its same issue. Can you please let me know how to find compatibility between ready api, chromedriver version, andselenium 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 mycode 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.6 years agoPlace ReadyAPI QuestionsReadyAPI Questions6.3KViews0likes0CommentsRe: How to call Java main method from Groovy Script in SoapUI
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;6 years agoPlace ReadyAPI QuestionsReadyAPI Questions6.4KViews0likes8CommentsHow to call Java main method from Groovy Script in SoapUI
Can someone please advice me how to call javamain 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) Createdthe 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.6 years agoPlace ReadyAPI QuestionsReadyAPI Questions6.8KViews0likes10CommentsSoup UI integration/connection with BrowserStack
Is there any way that we can integrate Soup UI with Browserstack. Below is the step that I need to follow. Steps 1) Run the API 2) Get the response from the API and save it in a file 3) Send it on email 4) open on mobile (iPhone) (Here I need browser stack connectivity) 5) Verify contentonce the file added6 years agoPlace ReadyAPI QuestionsReadyAPI Questions947Views0likes1CommentRe: Simple Functional Web Testing
avidCoder Below are the steps that I need to follow 1) Get the response from the API 2) Start Chrome connection 3) Visit a particular page 4) Enter the response in one of the field and click on submit. 5) check if the response code is correct then 5) Wait for a sec (It will generate another button) 6) Click on the new generated button and so on.6 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.7KViews0likes1CommentRe: Simple Functional Web Testing
avidCoderFinally, It worked for me. Thank you so much for your help. :-) Could you please guide me with some materials/blogs from where I can understand how to pass the value and get the response back to the ready API. It will be helpful for me. Thanks once again. :-)6 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.7KViews0likes3CommentsRe: How to get Endpoint from the Request
I tried below code //Conside API_Name is name of the testStep. def response = context.expand('${API_Name#Response}') def token = response.data.token but it is also throwing an error message:- Thu Jan 31 14:46:44 AEDT 2019:ERROR:groovy.lang.MissingPropertyException: No such property: data for class: java.lang.String This error message is coming for the last line def token = response.data.token6 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.7KViews0likes1CommentRe: Simple Functional Web Testing
avidCoder, Yes I removed this one -import java.util.concurrent.TimeUnit Now my code looks like this import org.openqa.selenium.* import org.openqa.selenium.chrome.ChromeDriver //Initiate WebDriver System.setProperty("webdriver.chrome.driver", "C:/chromedriver_win32 2.42/chromedriver.exe"); log.info(System.getProperty("webdriver.chrome.driver")); WebDriver driver=new ChromeDriver(); Still getting the same error Tue Jan 29 09:43:16 AEDT 2019:ERROR:java.lang.NoSuchMethodError: com.google.common.util.concurrent.SimpleTimeLimiter.create(Ljava/util/concurrent/ExecutorService;)Lcom/google/common/util/concurrent/SimpleTimeLimiter;6 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.7KViews0likes5Comments