Selenium HP Web Test Tool Training

Slides:



Advertisements
Similar presentations
Test Automation with Selenium
Advertisements

Selenium Tutorial. What is Selenium? Javascript framework that runs in your web- browser Works anywhere Javascript is supported Hooks for many other languages.
Selenium Automation Testing Suite of Tools
Pubman and Selenium tests. What is Selenium Selenium is a suite of Web application test automation tools for any browser on any operating system –Firefox,
Automating with Open Source Testing Tools Corey McGarrahan rSmart 01-July-08.
Test Automation Framework Ashesh Jain 2007EE50403 Manager Amit Maheshwari.
NetAcumen ActiveX Download Instructions
Web based testing: Chucklist and Selenium
Selenium – Testing Tool. What is Selenium? Selenium is a robust set of tools that supports rapid development of test automation for web-based applications.
Selenium Automation Testing Suite of Tools. What is Selenium? Selenium is a robust set of tools that supports rapid development of test automation for.
Selenium Web Test Tool Training Using Ruby Language Discover the automating power of Selenium Kavin School Kavin School Presents: Presented by: Kangeyan.
Automation using Selenium Authored & Presented by : Chinmay Sathe & Amit Prabhu Cybage Software Pvt. Ltd.
A detailed guide on how to set-up your printing storefront. Please Note: Storefronts are compatible with all browsers, however for optimal use of the admin.
Panorama High School E.G.P./ Training to Put Students’ Grades on the Website Wednesday, September 29,
Sikuli Ivailo Dinkov QA Engineer PhoneX Team Telerik QA Academy.
Val Kravets, Luis Sanchez, Allen Chung, Phillip Anderson, Leyla Norooz, Brian Ramnarian, Todd Watson.
Selenium Web Test Tool Training Using Ruby Language Discover the automating power of Selenium Kavin School Kavin School Presents: Presented by: Kangeyan.
Selenium Web Test Tool Training Using Ruby Language Discover the automating power of Selenium Kavin School Kavin School Presents: Presented by: Kangeyan.
What is QTP ► QTP stands QuickTest Professional ► It is an automated testing tool provided by HP/Mercury Interactive ► QTP integrates with other Mercury.
1 Test Automation For Web-Based Applications Selenium HP Web Test Tool Training Portnov Computer School.
Selenium Web Test Tool Training Using Ruby Language Discover the automating power of Selenium Kavin School Kavin School Presents: Presented by: Kangeyan.
© 2012 LogiGear Corporation. All Rights Reserved Robot framework.
Introduction to Android. Android as a system, is a java based operating system that runs on the Linux kernel. The system is very lightweight and full.
Capture and Replay Often used for regression test development –Tool used to capture interactions with the system under test. –Inputs must be captured;
10/5/2015CS346 PHP1 Module 1 Introduction to PHP.
Selenium Web Test Tool Training Using Ruby Language Discover the automating power of Selenium Kavin School Kavin School Presents: Presented by: Kangeyan.
Open Source Server Side Scripting ECA 236 Open Source Server Side Scripting Installation and Testing.
Playing Back Scripts In HP LoadRunner >>>>>>>>>>>>>>>>>>>>>>
Just as there are many human languages, there are many computer programming languages that can be used to develop software. Some are named after people,
Session Objectives • Login to PeopleSoft Test Framework(PTF)
IFORM ACCOUNT MAINTENANCE ICT4D SESSION 4. IFORMBUILDER WEBSITE REQUIREMENTS To access the iFormBuilder website, you need the following items: -Reliable.
Selenium Web Test Tool Training Discover The Automating Power Of Selenium Author : Girija Prasad Panda Alcatel-Lucent.
Creating a Web Site Using 000webhost.com The 000webhost.com Site You will be required to create an account in order to use their host computer 000webhost.com.
Selenium Web Test Tool Training Using Ruby Language Discover the automating power of Selenium Kavin School Kavin School Presents: Presented by: Kangeyan.
Web Automation Testing With Selenium By Rajesh Kanade.
Pubman and Selenium tests. What is Selenium Selenium is a suite of Web application test automation tools for any browser on any operating system –Firefox,
Test Automation For Web-Based Applications Portnov Computer School Presenter: Ellie Skobel.
Test Automation For Web-Based Applications Portnov Computer School Presenter: Ellie Skobel.
Test Automation For Web-Based Applications Portnov Computer School Presenter: Ellie Skobel.
Selenium January Selenium course content  Introduction (Session-1)Session-  Automation  What is automation testing  When to go for automation.
Introduction Selenium IDE is a Firefox extension that allows you to record, edit, and debug tests for HTML Easy record and playback Intelligent field selection.
Test Automation For Web-Based Applications Portnov Computer School Presenter: Ellie Skobel.
Automated Web Page Testing with Selenium IDE: An Overview Mary Ann May-Pumphrey 11/20/08.
PART 2 INTRODUCTION TO DYNAMIC WEB CONTENT AND PHP.
Test Automation For Web-Based Applications Portnov Computer School 1 Selenium HP Web Test Tool Training.
Selenium Date:06/10/2009. May 13, Agenda Testing – Test Automation Selenium – Introduction – Features – Supported platforms Selenium Commands –
SELENIUM By- Vivek Singh Jeena, Inderpreet Singh, Ankusha Saxena, Bhanupriya D.P, Shubham Yadav, Madhavi Aminigadda.
Selenium server By, Kartikeya Rastogi Mayur Sapre Mosheca. R
Test Automation Using Selenium Presented by: Shambo Ghosh Ankit Sachan Samapti Sinhamahapatra Akshay Kotawala.
Text Selenium server 31 – October By, Vivek Singh Jeena Inderpreet Singh Ankusha Saxena Bhanupriya D.P Shubham Yadav Madhavi Aminigadda.
1 Using an Integrated Development Environment. Integrated Development Environments An Integrated Development Environment, or IDE, permits you to edit,
Arklio Studija 2007 File: / / Page 1 Automated web application testing using Selenium
Introduction of Selenium Eli Lu 2016/10/13. Outline What is selenium ? Selenium Projects Selenium Sponsors Easy to use Useful Feature & Tools Useful Links.
Automated Testing Saving Time & Money
Leverage your Business with Selenium Automation Testing
Selenium HP Web Test Tool Training
Selenium HP Web Test Tool Training
JRA2: Acceptance Testing senarious
Testing with Selenium IDE
Selenium HP Web Test Tool Training
Introduction of Selenium Webdriver Using Java
Testing With Selenium - Open source Test Automation Tool
RemoteLaunch - Overview
What is selenium? Selenium is a portable software-testing framework for web applications. Selenium provides a playback (formerly also recording) tool.
Selenium HP Web Test Tool Training
Selenium Web Test Tool Training Using Ruby Language
Login For Excellence Selenium Training In Chennai.
Selenium Tutorials Cheyat Training.
Selenium Web Test Tool Training Using Ruby Language
Selenium IDE Installation and Use.
Presentation transcript:

Selenium HP Web Test Tool Training IDE Overview Portnov Computer School 1

Selenium IDE Introduction Selenium Overview Selenium IDE Introduction 2 2

What is Test Automation? A process of writing a computer program to do testing that would otherwise need to be done manually Use of software to control the execution of tests Two types of test automation: Code-driven testing Graphical user interface testing 3

Advantages of Automation Reliable: Tests perform precisely the same operations each time they are run, thereby eliminating human error. Repeatable: You can test how the software reacts under repeated execution of the same operations. Reusable: You can reuse tests on different versions of an application, even if the user interface changes. Speed: Run tests significantly faster than human users. Cost Reduction: As the number of resources for regression test are reduced. Better Quality Software: Rapid feedback to developers during the development process as a result of frequent regression testing. 4

Disadvantages of Automation Proficiency is required to write the automation test script. Debugging the test script is major issue. If any error is present in the test script, sometimes it may lead to dadly consequences. Test maintenance is costly in case of playback methods. Even though a minor changes occurs in the GUI, the test script has to be rewritten. Maintenance of test data files is difficult, if the test script tests more screens or web-pages. Short iteration or very tight deadline, there is not enough time to build test automation.

What is Selenium? A set of tools that supports rapid development of test automation for web-based applications. Can be recorded and written as HTML Support for a number of programming languages: Java, C#, Perl, PHP, Python, Ruby Cross browsers support: IE, Firefox, Opera, Safari and Google Chrome Cross platform support: Windows, Linux, and Macintosh. 6 6

Selenium Background Invented in 2004 by Jason R. Huggins and team. Originally named JavaScript Functional Tester [JSFT] 100% Javascript and HTML Designed to make test writing easy Open source browser based integration test framework built originally by ThoughtWorks Selenium is open source software, released under the Apache 2.0 license and can be downloaded and used without charge.

Selenium Trivia Selenium is a chemical element with the atomic number 34, represented by the chemical symbol Se. Selenium Mercury Selenium is used for treating Mercury poisoning Products: QTP, WinRunner, LoadRunner and TestDirector 8 8

Selenium Components Selenium IDE Selenium RC < < Selenium Core Selenium Grid Selenium2 aka Webdriver < < Selenium Core 9 9

Selenium IDE Selenium IDE (SIDE) is a complete Integrated Development Environment (IDE) for building Selenium test case. Firefox add-on that makes it easy to record, edit, and debug tests. Provides an easy-to-use interface for developing and running individual test cases or entire test suites. Can be used to generate code to run the tests with Selenium Remote Control (RC). 10

Selenium IDE Features Record, playback, edit Intelligent component identification will use object IDs, names, or XPath as needed Auto complete for all common Selenium commands Walk through test cases and test suites. Debug and set breakpoints Save tests as HTML, or export as other supported programming languages Support for Selenium user extensions 11 11

Installing Selenium IDE 12 12

Installing Selenium IDE Two step process: Step 1. Check if Firefox is installed 1a. If Firefox is not installed on your machine then Install Firefox (There is NO IE Version of Selenium) Step 2. Check if Selenium IDE is installed) 2a. If Selenium IDE is not installed on your machine then Install Selenium IDE Plug In 13 13

Step 1: Is Firefox Installed? Check whether your machine already has a version of Firefox installed. Go to Start  Programs  Mozilla Firefox 14 14

Step 1: Check Firefox Version Click on the Mozilla Firefox Go to Help  About as shown below: Check the version name What is your version? Must be Firefox version 3.x.x.xx not 4.x.x.xx 15 15

Step 1a: Firefox Installation Open your IE browser (or any other browser) Navigate to Firefox 3.6 download link. http://www.oldapps.com/firefox.php?old_firefox=109?download WARNING!!!!! Mozilla website will not have Firefox 3.6 download link. The most current browser version will be presented. (FF 4.0) 16 16

Step 1a: Firefox Installation 17

Step 1a: Firefox Installation Follow the steps and run the program (*1) (Saving into local machine then running is recommended) If prompted with Security warning, press “Run” button (*2 & *3) *1 Save into your local machine. (C:\Downloads) Run (double click Firefox Setup 3.x.x) from the location where you downloaded Ignore Security warning and press “Run” button *2 *3 18 18

Step 1a: Firefox Installation Press Next (*1) Check the “I Accept” then Press Next (*2) Select Standard, Remove check from “Use Firefox as my default browser” (*3) Press Install button (*4) Press Finish button (*5) *4 *1 *2 *3 *5 19 19

Check whether Selenium IDE is already installed Step 2: Is Selenium IDE Installed? Open the Firefox browser window (*1) Go to Tools  Check whether Selenium IDE already exist there (*2) If you see “Selenium IDE” then you already having Selenium IDE plug-in installed in Firefox browser. If not installed then follow the instruction on the next slide Check whether Selenium IDE is already installed *1 *2 20 20

Step 2a: Installing Selenium IDE Open the Firefox browser window In the navigation tool bar type the below URL: http://seleniumhq.org/download/ Click the Download link next to Selenium IDE project name. Click Download Don’t do this in IE 21 21

Step 2a: Installing Selenium IDE Or you can find Selenium IDE downloads in Previous Releases directory: 1. Previous Releases 2. Selenium IDE 3. Version 1.0.10 22

Step 2a: Installing Selenium IDE When the Software Installation Window opens select “selenium-ide” (*1) Click Install Now button “Selenium IDE” add-on is installed (*2) Click on “Restart Firefox” button Restart Firefox for Selenium Plug-in to take effect *1 *2 23 23

Step 2a: Installing Selenium IDE In the Firefox browser go to Tools and verify whether “Selenium IDE” is displayed. Congratulation! Selenium IDE installation is completed. Selenium IDE is successfully installed 24 24

Recording and Running Selenium Tests 25 25

Test Case #1: Login Test-Case Objective: Ensure Valid User Login Expected Result: OrangeHRM index page is loaded Correct username is displayed as part of the greeting. “Welcome Admin” Steps : In the login textbox type “admin”. In the password textbox type “password”. Click “Submit” button Verify that a correct user name is displayed Log out 26

Test Script #1: Login Test Script Steps: Open OrangeHRM application in Firefox http://hrm.portnov.com Login using : Login Name: admin Password: password Click Login button Highlight “Welcome Admin” text Right-click and select VerifyTextPresent Click logout link 27

The Record button is ON by default Recording An Automated Test 1. Open OrangeHRM application in Firefox http://hrm.portnov.com (*1) 2. Open Selenium IDE in Firefox Go to Tools  Selenium IDE (*2) *1 *2 The Record button is ON by default 28 28

Login Test Make sure Record button is ON! Go to the Browser window Login using (*2): Login Name: admin Password: password Click Login button The Record button is ON by default *1 *2 Login Name: admin Password: password Then click Login button 29 29

Login Test Highlight “Welcome Admin” text (*1) Right-click and select VerifyTextPresent (*2) Click logout link *2 *1 Highlight “Welcome demo” Select VerifyTextPresent 30 30

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 31 31

What did we accomplish? Manual Test-Case Automated Test-Case Test-Case Objective Ensure Valid User Login Steps In the login textbox type admin. In the password textbox type password. 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 Admin” We created our first automated test script Manual Test-Case Automated Test-Case 32

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 *1 *2 Click to play the Test Case 33 33

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. 34 34

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. 35

Debugging Tips Open Selenium IDE through Tools menu, otherwise the IDE may freeze and act unpredictably. Make sure you substitute click command with clickAndWait command wherever needed. 36 36

Select clickAndWait command Editing Editing to add wait time to the script Click the 3rd to last row where ClickA command is located Modify the command field Replace “click” with “clickAndWait” command Re-play the test… Click this row Select clickAndWait command 37

Helpful Notes: One Firefox browser window must be open. Multiple browser windows will confuse Selenium. Play back every automated test to ensure expected behavior. Keep playback in slow mode when debugging. Placing Browser window and Selenium IDE windows side by side is a convenient way of tracking test execution step by step. 38 38