Download presentation
Presentation is loading. Please wait.
1
Selenium HP Web Test Tool Training
Portnov Computer School Selenium HP Web Test Tool Training Test Automation For Web-Based Applications Presenter: Ellie Skobel
2
Day 1 Recording and Running Selenium Tests
3
Recording An Automated Test
Open Firefox browser Navigate to (*1) Go to Tools Selenium IDE (*2) *1 *2 The Record button is ON by default
4
The Record button is ON by default
Demo Test The Record button is ON by default Make sure Record button is ON! Go to the Browser window Login using (*2): Login Name: admin Password: Password Click Login button *1 *2 Login: admin Password: Password Then click Login
5
Demo Test (part 2) Hold your mouse over “Welcome Admin” text
Right-click and select assertText Click logout link *2 Mouse over “Welcome Admin” *1 NOT assertTextPresent Select assertText
6
Click here to Stop recording
Go to Selenium IDE Click the red button to STOP recording All your actions are recorded and displayed sequentially under Command Table Tab Click here to Stop recording
7
We created our first automated test script
What did we accomplish? Test-Case Objective Ensure Valid User Login Steps In the login textbox type demo. In the password textbox type demo. Click Submit button Verify that a correct user name is displayed Logout Expected Result OrangeHRM index page is loaded Correct username is displayed as part of the greeting. “Welcome demo” We created our first automated test script Manual Test-Case Automated Test-Case
8
Running Selenium Automated Test
Make sure the Firefox browser is still open Go to Selenium IDE and click “Play current test case” button Make the test case playback in slow mode Click to play the Test Case
9
Interpreting Colors If you see all the command line rows turn Green color, then the test has passed. Light Green means the code executed without problems. Dark Green means the test result of the command evaluated to true. If any part of the test failed it will be shown with Red color.
10
Debugging Examine the result of the script. What went WRONG???
Time is needed to validate the login information… The test must WAIT for the next web page to load before proceeding.
11
Select clickAndWait command
Editing Click the 3rd to last row Modify the command field Replace “click” with “clickAndWait” command Re-play the test… Click this row Select clickAndWait command
12
Helpful Notes: At least one Firefox browser window must be open
Play back every automated test to ensure expected behavior. Keep playback in slow mode when you begin debugging. Then playback in fast mode to finish debugging. Placing Browser window and Selenium IDE windows side by side is a convenient way of tracking test execution step by step.
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.