Online-selenium-trainings.webs.com
Selenium Tutorial : IDE
| |
[pic]
3. Selenium IDE
3.1. Overview
Figure 1. Selenium IDE
[pic]
Selenium IDE features:
• record/play mechanism: create/edit tests by recording the user actions on the page
• Debugging feature with step-by-step and breakpoints
• Page abstraction capabilities
• Automatic assertions for the page title
• An extensibility feature allowing the use of plugins or user extensions that extend the capabilities of Selenium IDE
3.2. Presentation
At startup, Selenium IDE looks like this:
Figure 2. Selenium IDE
[pic]
The interface features the following elements:
• An action bar to control the test (1)
Figure 3. Selenium IDE test control
[pic]
1. The base url of the application
2. Test speed
3. Run test-suite
4. Run the selected test case only
5. Pause the test
6. Next step (while paused only)
7. Open Selenium TestRunner
8. Apply rollups (see Section 9.5, “Rollups”)
9. Start/Stop recording
• A test-suite tool (2)
Shows the tests in the current test-suite along with the results.
• A test editor (3)
Figure 4. Selenium IDE test editor area
[pic]
1. The test steps
2. The command of the current step
3. The locator argument
4. ‘Find’ button highlights the target of the locator on the page
5. The value argument
• A tool panel (4)
Figure 5. Selenium IDE tool panel
[pic]
1. Log: shows the execution log of the current tests and displays errors
2. Reference: displays the documentation of the command actually selected
3. UI-Element: diplays the ui-element mappings actually in use
4. Rollup: shows rollup rules
5. Stored-vars (plugin, see Section 13.2, “Selenium helper tools” ): displays current stored variables
6. Log level (only with log panel): customize the verbosity of the log
7. Clear log (only with log panel): clears the log
3.3. Export Features
A most interesting feature of Selenium IDE: export to Selenium RC. Selenium IDE is able to export test cases in the following formats:
• Java (Junit 3/4 and TestNG)
• Groovy (Junit)
• C#
• Perl
• Python
• PHP
• Ruby (RSpec and Test/Unit)
You can export test-cases or the entire test-suite.
3.4. Installation
Selenium IDE is distributed as Firefox extension:
1. Go to the Selenium website () or the Firefox add-ons website ()
2. Download the latest release (1.0.8 at the time of writing)
3. Follow the instructions and restart Firefox
4. Selenium IDE is accessible from the ‘Tools’ Menu of Firefox
3.5. Lab 1
1. Open Firefox, go to . Then, open Selenium IDE (‘Tools’ → ‘Selenium IDE’)
[pic]
2. Make sure the record button is activated, then type in the search field pizza.
[pic]
3. Click anywhere on the page or press tab to validate the entry. The Selenium IDE window now looks like this:
[pic]
4. Click the Google Search button. You can see the click command appear in the IDE.
• On the result page, do a right-click and select the assertTitle command:
[pic]
5. The command appears in the IDE window!
[pic]
3.6. Discussion
• What problems and limitations do you foresee when using this tool?
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related searches
- early childhood trainings and workshops
- naeyc trainings workshops for teachers
- early head start trainings conferences
- trainings for preschool teachers
- free online trainings for teachers
- free online trainings for preschool teachers
- trainings for early childhood educators
- head start trainings 2020
- mental health trainings for professionals
- stock charts webs best
- webs free website builder
- mental health ceu trainings massachusetts