SELENIUM1 (EXT)

Source: Internet
Author: User

Selenium IDE Test Creation

Involves creating tests using IDE selenium, such as the following steps

    1. Logging and testing Add commands

    2. Save Test Records

    3. Save test program

    4. Execute Test record

Record and add commands in a test

For demonstration purposes, we will use www.ncalculators.com to understand the characteristics of selenium.

Step 1: Launch the Firefox browser and navigate to the website-http://www.ncalculators.com/

Step 2: Open the Selenium IDE from the Tools menu, press the Record button-that is, in the upper right corner.

Step 3: Navigate to "Math Calculator" >> "Percent Calculator >> Enter" 10 "as number1 and enter 50 as number2 and click" Calculate ".

Step 4: Then, the user can insert a checkpoint by right-clicking the Web element and selecting "Show all available Commands" >> Select "Assert text Css=b 5"

Step 4: The recorded script is generated and displayed in the following script as shown below.

Test for saving Records

1th Step: Save the test case by navigating to "file" >> "Save Test" and saving the file in the selected location. The file is saved as. HTML is the default value.

The test can also save the extension. Htm. sHTML and. XHTML.

Save Test suite

A test suite is a collection of tests that can be performed as a separate entity.

Step 1: Create a test suite by navigating to "File" >> "New test suite" as shown below:

Step 2: The test can be recorded by selecting options, one after another from the "File" menu of "New test Case".

Step 3: Personal tests use a separate name to save "Test Suite".

Perform a recorded test

The recorded script that executes any script can be done by clicking the button "Play entire Suite" or "Play current Test" in the toolbar.

1th Step: The running state can be seen in the pass and failed test number status pane that is displayed.

2nd step: Once the step is executed, the user can see the result in the "Log" pane.

3rd step: After each step, the background of the test step becomes "green" if it is passed if the failure is "red", as shown in.

SELENIUM1 (EXT)

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.