Selenium IDE Test Creation
Involves creating tests using IDE selenium, such as the following steps
-
Logging and testing Add commands
-
Save Test Records
-
Save test program
-
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)