Forum Discussion

ranujn's avatar
ranujn
Contributor
6 years ago
Solved

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.

  • 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.ie.InternetExplorerDriver;
    import org.openqa.selenium.chrome.ChromeDriver;
    import org.openqa.selenium.WebElement;
    import org.openqa.selenium.By;
    import org.openqa.selenium.*
    
    //System.setProperty("webdriver.ie.driver", "C:\\Program Files (x86)\\SmartBear\\SoapUI-5.4.0\\bin\\ext\\IEDriverServer.exe")
    System.setProperty("webdriver.chrome.driver", "C:\\Program Files (x86)\\SmartBear\\SoapUI-5.4.0\\bin\\ext\\chromedriver.exe")
    //def driver = new InternetExplorerDriver()
    def driver = new ChromeDriver()
    driver.get("https://google.co.in")

    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. :)

     

    Thanks,

    avidCoder

17 Replies

  • avidCoder's avatar
    avidCoder
    Super Contributor

    It's really possible with ReadyAPI tool. You can use Selenium jar to automate this. Download selenium server and add that jar file to home/soapui/ext folder. And then try this code:-

     

    import org.openqa.selenium.firefox.FirefoxDriver;
    import org.openqa.selenium.WebElement;
    import org.openqa.selenium.By;
    
    def driver = new FirefoxDriver();
    driver.get("YOUR URL")
    //Similarly write the xpath for the next step. And you are done.
    • ranujn's avatar
      ranujn
      Contributor

      Thanks for the quick response.

       

      I never work on Selenium before. However, I can explore and try something new. Is there any proper blog or something which I can follow to do stating setup for selenium

  • TanyaYatskovska's avatar
    TanyaYatskovska
    SmartBear Alumni (Retired)

    Thanks everyone for your awesome suggestions!

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