Quick starting to Selenium

Selenium IDE

Selenium IDE is an open source test automation tool, actually a plug-in for firefox. Basically, it enables user to record a test case and replay it on firefox. However with the other features of selenium, more sophisticated works can be done by selenium.

Following instructions can be followed for the installation and the use of Selenium IDE:
         1. Install the latest version of Selenium IDE
              > http://release.seleniumhq.org/selenium-ide/

         2.  Open Selenium IDE
              > Firefox > Tools >Selenium IDE

        


Selenium Remote Controller

With the remote controller, written test scripts can be run on the different browsers. Test script can also be written in  C#, Java, PHP, Python ot Ruby so complex test cases can be written by desired programming language. Remote controller is a server prepared by Java so every time virtual apache server runs on the computer with the default port 4444.

Following instructors can be followed for the installation and the use of Selenium RC:
         1. Install the latest version of Selenium IDE
             > http://release.seleniumhq.org/selenium-ide/

         2.  download the latest version of selenium server
             >  http://www.nuget.org/packages/Selenium.RC

         3.  Check the Java version
             > java -version
                    

          If it gives an error, update the Java JRE with the latest version
           > http://www.oracle.com/technetwork/java/javase/downloads/jre-7u1-download-513652.html

         4. Test your selenium server by the following command where the selenium server is located at step 3
            > java -jar selenium-server-standalone-2.13.0.jar
           

         You can stop the server by the following commads:
            > CTR + C
            >  wmic path win32_process Where "CommandLine Like '%selenium-server.jar%'"  Call Terminate

         5. After all, you need a test suite to run by the following commands:
           > java -jar <..\..\selenium_server.jar> -htmlSuite *browser <target website> <absolute\path\to\htmlsuite.html> <absolute\path\to\result.html>

           > java -jar d:\selenium\selenium-server-standalone-2.13.0.jar -htmlSuite *firefox http://www.google.com d:\selenium\login.py d:\selenium\result.py


Supported browsers include followings:
  •   *firefox
  •   *mock
  •   *firefoxproxy
  •   *pifirefox
  •   *chrome
  •   *iexploreproxy
  •   *iexplore
  •   *firefox3
  •   *safariproxy
  •   *googlechrome
  •   *konqueror
  •   *firefox2
  •   *safari
  •   *piiexplore
  •   *firefoxchrome
  •   *opera
  •   *iehta
  •   *custom

You can also run selenium server on a different port by adding the port option after the server name like as: java -jar <..\..\selenium_server.jar> -port 5555 ....





  




       



Comments

Popular posts from this blog

Selenium Error "Element is not currently interactable and may not be manipulated"

Change Default Timeout and Wait Time of Capybara

Page-Object Pattern for Selenium Test Automation with Python

Performance Testing on CI: Locust is running on Jenkins

How to Set Shared Preferences in Espresso Test for Kotlin and Java