Selenium RC Using Java with Eclipse

Open Firefox , From Tools menu select  Selenium IDE. Do some action in your favorite web sites. Note all your actions being recorded by selenium ide. Click the red button on right top corner to stop recording and click the Green button to run the last recorded action. Fine this is Simple Record and play back. I think i don't need to explain more about it.
Now think of the following

  • How we can connect the SQL Server or Spread sheet to get the values and give as input.
  • How we can implement the conditional statements
  • How we can run this from multiple browsers like ie,safari,opera,chrome etc...
For the above things we need selenium Remote Control.
Download Selenium RC and back to selenium IDE select File --->Export Test Case As --> JUnit4 (Remote Control) and save the file as FirstCase.java.
Setup Eclipse
1.Download  Eclipse IDE for Java Developers from http://www.eclipse.org/downloads/.
2.Open Eclipse and create new java project.
3.Right click on the project and click Build Path--> Configure Build path. -->Library tab -->Add External Jars.
5.Select selenium-java-client-driver.jar from Downloaded Selenium RC selenium-java-client-driver-1.0.1Folder.
6. Right Click on the project again Select Build Path --> Add Library-->JUnit-->Next -->JUnit4-->Finish.
Run the selenium Server by Command prompt as java -jar selenium-server.jar or Start Sauce RC by download as executable file.from http://saucelabs.com/downloads.
Back to Eclipse and Create a New Java Class. Paste the content from FirstCase.java.
Right click on the Project and select Run As --> JUnit Test.

Thats IT!

14 comments:

  1. How we can connect the Spread sheet to get the values and give as input.

    ReplyDelete
  2. You can use HSSFWorkbook library in Java to connect and read the spread sheets

    ReplyDelete
  3. Thanks for the great information in your blog Selenium

    ReplyDelete
  4. Interest to learn Selenium Training by Real Time Software Testing Professional Trainer having 10+ Years of Expert.
    Selenium Online Training

    ReplyDelete
  5. Looking for best training in SELENIUM, take a glance at http://thecreatingexperts.com/selenium-training-in-chennai/

    ReplyDelete
  6. I was looking for Selenium and Appium training in Chennai and got a link,it was the CREATING EXPERTS.

    If you are looking for one click the link below and contact 8122241286.

    http://thecreatingexperts.com/appium-training-in-chennai/
    http://thecreatingexperts.com/selenium-training-in-chennai/

    ReplyDelete
  7. THE CREATING EXPERTS is one of the leading training provider in SELENIUM they provide hands on training with real time scenario

    http://thecreatingexperts.com/selenium-training-in-chennai/

    contact +91-08122241286

    ReplyDelete
  8. Thanks a lot! You made a new blog entry to answer my question; I really appreciate your time and effort.
    java training in velachery |
    best java training institute in chennai

    ReplyDelete
  9. The Creating Experts provides training in SELENIUM

    http://thecreatingexperts.com/selenium-training-in-chennai/

    contact +91-08122241286

    ReplyDelete
  10. Nice blog...

    Selenium training institute which provides Real Time Hands on Training…THE CREATING EXPERTS

    http://thecreatingexperts.com/selenium-training-in-chennai/


    contact-8122241286

    ReplyDelete
  11. SELENIUM training in Chennai by TE CREATING EXPERTS ,they provide you hands on training with real time scenarios

    http://thecreatingexperts.com/selenium-training-in-chennai/

    contact 8122241286

    ReplyDelete
  12. Hi, all nice blog for a long time i was searching for a real time trainer and landed with my trainer in selenium
    SELENIUM training is provided by THE CREATING EXPERTS in CHENNAI

    http://thecreatingexperts.com/selenium-training-in-chennai/

    Contact 8122241286 for more info

    ReplyDelete
  13. nice blog. thanks for sharing valuable information. It’s really good.Any one looking software courses nareshit is the best offline and online software training institute in Hyderabad and Chennai.

    ReplyDelete
  14. Australia Best Tutor is one of the best Online Assignment Help providers at an affordable price. Here All Learners or Students are getting best quality assignment help with reference and styles formatting.

    Visit us for more Information

    Australia Best Tutor
    Sydney, NSW, Australia
    Call @ +61-730-407-305
    Live Chat @ https://www.australiabesttutor.com




    Our Services

    Online assignment help Australia
    my assignment help Australia
    assignment help
    help with assignment
    Online instant assignment help
    Online Assignment help Services

    ReplyDelete