Ask a Question

Simple Functional Web Testing


Simple Functional Web Testing

I wanna to try simple functional web testing like

1) Open the specific URL

2) Enter some value 

3) press the button

4) get the response and press the next button

5) press button again to save and come back to ready api and perform another API


I am not aware if it possible to do this with Ready API


FYI:- I dont want to use any other paid tool to achieve this.


Please suggest if any blog and free tool available to do this with Soap UI Pro.


Thanks in Advance.

Super Contributor

Did you remove this line from the code?


import java.util.concurrent.TimeUnit

Please remove this code and then rerun it.


SmartBear Alumni (Retired)

Thanks everyone for your awesome suggestions!

@ranujn, did you find the solution? Please share it with us.

Tanya Yatskovskaya
SmartBear Community and Education Manager

@avidCoder , Yes I removed this one - import java.util.concurrent.TimeUnit


Now my code looks like this


import org.openqa.selenium.*

//Initiate WebDriver
System.setProperty("", "C:/chromedriver_win32 2.42/chromedriver.exe");""));

WebDriver driver=new ChromeDriver();


Still getting the same error 

Tue Jan 29 09:43:16 AEDT 2019:ERROR:java.lang.NoSuchMethodError:;)Lcom/google/common/util/concurrent/SimpleTimeLimiter;

Super Contributor

Hi @ranujn 


  1. First of all the selenium-standalone-server version you are using is not at all compatible with the chromedriver verison.
  2. The soapui version should also be compatible with the selenium-standalone-server version.

Please follow below steps:-

  1. Download selenium-server-standalone-2.41.0 jar - selenium-standalone-server+IEDriver
  2. Download IEDriverServer_x64_2.41.0 
  3. Download chromedriver_win32_2.26 - chromedriver
  4. Download soapui_5.4.0
  5. Download httpClient_4.3.4 - httpclint

Put all the jar file inside bin/ext folder and restart your soapui.


Then please try below code:-


import org.openqa.selenium.WebElement;
import org.openqa.selenium.By;
import org.openqa.selenium.*

//System.setProperty("", "C:\\Program Files (x86)\\SmartBear\\SoapUI-5.4.0\\bin\\ext\\IEDriverServer.exe")
System.setProperty("", "C:\\Program Files (x86)\\SmartBear\\SoapUI-5.4.0\\bin\\ext\\chromedriver.exe")
//def driver = new InternetExplorerDriver()
def driver = new ChromeDriver()

I have tested it for IE and Chrome. and it is working fine. Please try all the steps from your side.

And, Let me know, for any issues.


Hope this solution helps you out. Please accept as solution and don't forget to give kudos. 🙂




@avidCoder Finally, 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. 🙂

Super Contributor

I didn't understand the whole context. What value you want to pass and get it retrieved in ReadyAPI? Please be more clear. So that I can be more helpful.

@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.

Super Contributor

It's quite easy. I can give you a suggestion and you can search the solution step by step.


1. Get the response from API - I have already answered this earlier, How to fetch the response from the API.

def response = context.expand('${API_NAME#Response}')

2. Start Chrome Connection - Use selenium code, which I have already given to you.

3. Visit a Particular page -  Already answered, How to navigate to (Google Page)

4. Enter the response in one of the field and click on submit - Here, Please inspect the element(Where you want to enter the response) by pressing F12 and also inspect Submit button element. Here is sample code:-

WebElement responseField =  driver.findElement("Write the locator value")).sendKeys("Enter the response which you fetched from API");
WebElement submitButton = driver.findElement("Write the locator value")).click();

5. Use if else to check whether response is correct or not.

6. Use Thread.sleep(No. of milliseconds) to wait.

7. Again wait Until the new button is enabled. Once it is enabled (use if else and selenium functionality) click on that button.


Please go through some of the selenium pages which I have already shared. You will get an idea. Try to learn it. 

Showing results for 
Search instead for 
Did you mean: