Wednesday, 13 February 2013

Selenium Installation in Windows with PHPUnit Support

To Install Selenium in windows with PHPUnit support, we have to follow below listed steps.

Step1: Install Selenium:

  1. Download Selenium Standalone Jar from http://selenium.googlecode.com/files/selenium-server-standalone-2.28.0.jar
  2. Paste that downloaded Jar file in C:\Program Files\Java\jdk1.6.0_31\bin\ folder.
  3. Run java -jar selenium-server-standalone-2.9.0.jar command from CMD Prompt [C:\Program Files\Java\jdk1.6.0_31\bin\]
  4. Now the Selenium Server has started.

Step2: PHPUnit_Selenium package, necessary for accessing the Selenium Server from PHPUnit
  1. Run pear install phpunit/PHPUnit_Selenium command from CMD Prompt and in PHP Location [Example: C:\wamp\bin\php\php5.3.8\]

NOTE: Before running the test cases, we have to start Selenium Server by executing Step1 - 3rd point.

No comments:

Post a Comment

Thank you so much for providing your valuable feedback. I will will look into them and update my skills & technologies accordingly.