Automated test environment Construction [Selenium-ide installation and verification]

Source: Internet
Author: User

[Selenium-ide installation and verification]
1. Install Firefox
2. Download Selenium-ide The version i downloaded is SELENIUM-IDE-2.8.0.XPI
Selenium-ide Install: Download selenium-ide-2.8.0.xpi drag to open Firefox, click Install, restart Firefox browser as prompted
After rebooting, you can see the Selenium IDE in the menu bar (not seen in the custom inside drag and drop out)
3. Installation of Selenium server
Download Selenium-server-standalone-2.45.0.jar
Put it in a convenient folder
4. Start Selenium Server service
Cmd
Java-jar Selenium-server-standalone-2.24.1.jar
5, Selenium-ide Installation
Firefox window, menu open Selenium IDE
Confirm that table has no data, Selenium the upper right corner of the IDE with the red button pressed (default is pressed)
Return to the browser input "Test IDE", click "Search"
Back to the Selenium IDE, click the red button in the upper right corner to stop recording
Click on "Play entire test suite" in the top left corner to see the page and repeat the operation you just searched.
Note: Value of type is the key value of the search, and modifying value can modify the values entered in the retrieval
6. Running in eclipse
To export files from the Selenium IDE
Export Test Case as ... ->junit3 (Remote Control), exported as a Java file (e.g. Test.java)
Eclipse new test Project, introducing the newly exported Test.java file
Project references related library files, add jar packages, and JUnit
Right-click on the Java file to run As->junit Test
You can see the Eclipse Run test, open the Firefox playback recording Script —————— > Environment Installation Success


In operation: Java.lang.RuntimeException:Could not the contact Selenium Server; Started it on ' localhost:4444 '?

Cause: Selenium server is not started
Solution: Start Selenium Server:java-jar Selenium-server-standalone-2.24.1.jar

Automated test environment Construction [Selenium-ide installation and verification]

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.