<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://training-course-material.com/index.php?action=history&amp;feed=atom&amp;title=Selenium_HP_Web_Test_Tool_Training</id>
	<title>Selenium HP Web Test Tool Training - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://training-course-material.com/index.php?action=history&amp;feed=atom&amp;title=Selenium_HP_Web_Test_Tool_Training"/>
	<link rel="alternate" type="text/html" href="https://training-course-material.com/index.php?title=Selenium_HP_Web_Test_Tool_Training&amp;action=history"/>
	<updated>2026-05-13T01:44:55Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://training-course-material.com/index.php?title=Selenium_HP_Web_Test_Tool_Training&amp;diff=20260&amp;oldid=prev</id>
		<title>Mirza Baig at 00:00, 8 July 2014</title>
		<link rel="alternate" type="text/html" href="https://training-course-material.com/index.php?title=Selenium_HP_Web_Test_Tool_Training&amp;diff=20260&amp;oldid=prev"/>
		<updated>2014-07-08T00:00:30Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Cat|Selenium}}&lt;br /&gt;
{{Selenium Links}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;slideshow style=&amp;quot;nobleprog&amp;quot; headingmark=&amp;quot;⌘&amp;quot; incmark=&amp;quot;…&amp;quot; scaled=&amp;quot;false&amp;quot; font=&amp;quot;Trebuchet MS&amp;quot; &amp;gt;&lt;br /&gt;
;Title: Selenium HP Web Test Tool&lt;br /&gt;
;Author: Mirza Baig&lt;br /&gt;
&amp;lt;/slideshow&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Selenium Overview,Selenium IDE Introduction⌘==&lt;br /&gt;
&lt;br /&gt;
==What is Test Automation?⌘==&lt;br /&gt;
&lt;br /&gt;
* A process of writing a computer program to do testing that would otherwise need to be done manually&lt;br /&gt;
* Use of software to control the execution of tests&lt;br /&gt;
&amp;#039;&amp;#039;Two types of test automation:&amp;#039;&amp;#039;&lt;br /&gt;
* Code-driven testing&lt;br /&gt;
* Graphical user interface testing&lt;br /&gt;
&lt;br /&gt;
==Advantages of Automation⌘==&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;Reliable&amp;#039;&amp;#039;: Tests perform precisely the same operations each time they are run, thereby eliminating human error. &lt;br /&gt;
* &amp;#039;&amp;#039;Repeatable&amp;#039;&amp;#039;: You can test how the software reacts under repeated execution of the same operations. &lt;br /&gt;
* &amp;#039;&amp;#039;Reusable&amp;#039;&amp;#039;: You can reuse tests on different versions of an application, even if the user interface changes. &lt;br /&gt;
* &amp;#039;&amp;#039;Speed&amp;#039;&amp;#039;: Run tests significantly faster than human users. &lt;br /&gt;
* &amp;#039;&amp;#039;Cost Reduction&amp;#039;&amp;#039;: As the number of resources for regression test are reduced. &lt;br /&gt;
* &amp;#039;&amp;#039;Better Quality Software&amp;#039;&amp;#039;: Rapid feedback to developers during the development process as a result of frequent regression testing.&lt;br /&gt;
&lt;br /&gt;
==Disadvantages of Automation⌘==&lt;br /&gt;
&lt;br /&gt;
* Proficiency is required to write the automation test script. &lt;br /&gt;
* Debugging the test script is major issue. If any error is present in the test script, sometimes it may lead to dadly consequences. &lt;br /&gt;
* 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. &lt;br /&gt;
* Maintenance of test data files is difficult, if the test script tests more screens or web-pages. &lt;br /&gt;
* Short iteration or very tight deadline, there is not enough time to build test automation.&lt;br /&gt;
&lt;br /&gt;
==What is Selenium?⌘==&lt;br /&gt;
&lt;br /&gt;
A set of tools that supports rapid development of test automation for web-based applications.&lt;br /&gt;
&lt;br /&gt;
* Can be recorded and written as HTML&lt;br /&gt;
* Support for a number of programming languages: Java, C#, Perl, PHP, Python, Ruby&lt;br /&gt;
* Cross browsers support: IE, Firefox, Opera, Safari and Google Chrome&lt;br /&gt;
* Cross platform support: Windows, Linux, and Macintosh.&lt;br /&gt;
&lt;br /&gt;
==Selenium Background⌘==&lt;br /&gt;
&lt;br /&gt;
* Invented in 2004 by Jason R. Huggins and team.&lt;br /&gt;
* Originally named JavaScript Functional Tester [JSFT]&lt;br /&gt;
* 100% Javascript and HTML&lt;br /&gt;
* Designed to make test writing easy&lt;br /&gt;
* Open source browser based integration test framework built originally by ThoughtWorks&lt;br /&gt;
* Selenium is open source software, released under the Apache 2.0 license and can be downloaded and used without charge.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Selenium Trivia⌘==&lt;br /&gt;
&lt;br /&gt;
Selenium is a chemical element with the atomic number 34, represented by the chemical symbol Se.&lt;br /&gt;
[[File:8.png]]&lt;br /&gt;
&lt;br /&gt;
Selenium is used for treating Mercury poisoning&lt;br /&gt;
&lt;br /&gt;
Products: QTP, WinRunner, LoadRunner and TestDirector&lt;br /&gt;
&lt;br /&gt;
==Selenium Components⌘==&lt;br /&gt;
&lt;br /&gt;
* Selenium IDE [[File:Sel1.png]]&lt;br /&gt;
* Selenium RC 	[[File:Sel2.png]] &amp;lt;&amp;lt; Selenium Core [[File:Sel.png]]&lt;br /&gt;
* Selenium Grid  [[File:Sel3.png]]&lt;br /&gt;
* Selenium2 aka Webdriver&lt;br /&gt;
&lt;br /&gt;
==Selenium IDE⌘==&lt;br /&gt;
&lt;br /&gt;
* Selenium IDE (SIDE) is a complete Integrated Development Environment (IDE) for building Selenium test case. &lt;br /&gt;
* Firefox add-on that makes it easy to record, edit, and debug tests.  &lt;br /&gt;
* Provides an easy-to-use interface for developing and running individual test cases or entire test suites. &lt;br /&gt;
* Can be used to generate code to run the tests with Selenium Remote Control (RC).&lt;br /&gt;
&lt;br /&gt;
==Selenium IDE Features⌘==&lt;br /&gt;
&lt;br /&gt;
* Record, playback, edit&lt;br /&gt;
* Intelligent component identification will use object IDs, names, or XPath as needed&lt;br /&gt;
* Auto complete for all common Selenium commands&lt;br /&gt;
* Walk through test cases and test suites.&lt;br /&gt;
* Debug and set breakpoints&lt;br /&gt;
* Save tests as HTML, or export as other supported programming languages&lt;br /&gt;
* Support for Selenium user extensions&lt;br /&gt;
&lt;br /&gt;
==Installing Selenium IDE⌘==&lt;br /&gt;
&lt;br /&gt;
==Installing Selenium IDE⌘==&lt;br /&gt;
&lt;br /&gt;
Two step process:&lt;br /&gt;
* Step 1.  Check if Firefox is installed &lt;br /&gt;
: 1a. If Firefox is not installed on your machine then Install Firefox&lt;br /&gt;
(There is NO IE Version of Selenium)&lt;br /&gt;
* Step 2. Check if Selenium IDE is installed)&lt;br /&gt;
: 2a. If Selenium IDE is not installed on your machine then Install Selenium IDE Plug In&lt;br /&gt;
&lt;br /&gt;
==Step 1: Is Firefox Installed?⌘==&lt;br /&gt;
&lt;br /&gt;
* Check whether your machine already has a version of Firefox installed.&lt;br /&gt;
* Go to Start -&amp;gt; Programs -&amp;gt; Mozilla Firefox&lt;br /&gt;
[[File:Firefox.png]]&lt;br /&gt;
&lt;br /&gt;
==Step 1: Check Firefox Version⌘==&lt;br /&gt;
&lt;br /&gt;
* Click on the Mozilla Firefox&lt;br /&gt;
* Go to Help -&amp;gt; About &lt;br /&gt;
* Check the version name&lt;br /&gt;
* What is your version?&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Must be Firefox version 3.x.x.xx  not 4.x.x.xx&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
[[File:Firefox1.png|200px]]&lt;br /&gt;
&lt;br /&gt;
==Step 1a: Firefox Installation⌘==&lt;br /&gt;
&lt;br /&gt;
* Open your IE browser (or any other browser)&lt;br /&gt;
* Navigate to Firefox 3.6 download link.&lt;br /&gt;
http://www.oldapps.com/firefox.php?old_firefox=109?download&lt;br /&gt;
[[File:Fire3.png|150px]]&lt;br /&gt;
&lt;br /&gt;
WARNING!!!!!&lt;br /&gt;
&lt;br /&gt;
* Mozilla website will not have Firefox 3.6 download link.&lt;br /&gt;
&lt;br /&gt;
The most current browser version will be presented.&lt;br /&gt;
(FF 4.0)&lt;br /&gt;
&lt;br /&gt;
==Step 1a: Firefox Installation⌘==&lt;br /&gt;
[[File:Ww.png|700px]]&lt;br /&gt;
&lt;br /&gt;
[[File:Ttt.png|400px]]&lt;br /&gt;
&lt;br /&gt;
==Step 1a: Firefox Installation⌘==&lt;br /&gt;
&lt;br /&gt;
* Follow the steps and run the program (*1) (Saving into local machine then running is recommended)&lt;br /&gt;
* If prompted with Security warning, press “Run” button (*2 &amp;amp; *3)&lt;br /&gt;
[[File:Z1.png|300px]] [[File:Z2.png|300px]] [[File:Z3.png|300px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;small&amp;gt;Save into your local machine. (C:\Downloads)&lt;br /&gt;
&lt;br /&gt;
Run (double click Firefox Setup 3.x.x) from the location where you downloaded&lt;br /&gt;
&lt;br /&gt;
Ignore Security warning and press “Run” button&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Step 1a: Firefox Installation⌘==&lt;br /&gt;
&lt;br /&gt;
* Press Next (*1) [[File:Y1.png|200px]]&lt;br /&gt;
* Check the “I Accept” then Press Next (*2) [[File:Y2.png|200px]]&lt;br /&gt;
&lt;br /&gt;
==⌘==&lt;br /&gt;
* Select Standard, Remove check from “Use Firefox as my default browser” (*3) [[File:Y3.png|200px]]&lt;br /&gt;
* Press Install button (*4) [[File:Y4.png|200px]]&lt;br /&gt;
* Press Finish button (*5) [[File:Y5.png|200px]]&lt;br /&gt;
&lt;br /&gt;
==Step 2: Is Selenium IDE Installed?⌘==&lt;br /&gt;
&lt;br /&gt;
* Open the Firefox browser window (*1)&lt;br /&gt;
[[File:T1.png]]&lt;br /&gt;
* Go to Tools -&amp;gt; Check whether Selenium IDE already exist there (*2)&lt;br /&gt;
[[File:T3.png]]&lt;br /&gt;
* If you see “Selenium IDE” then you already having Selenium IDE plug-in installed in Firefox browser.&lt;br /&gt;
* If not installed then follow the instruction on the next slide&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Check whether Selenium IDE is already installed&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
==Step 2a: Installing Selenium IDE⌘==&lt;br /&gt;
&lt;br /&gt;
* Open the Firefox browser window&lt;br /&gt;
* In the navigation tool bar type the below URL:&lt;br /&gt;
http://seleniumhq.org/download/&lt;br /&gt;
* Click the Download link next to Selenium IDE project name.&lt;br /&gt;
[[File:Tttttt.png|700px]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Don’t do this in IE&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
==Step 2a: Installing Selenium IDE⌘==&lt;br /&gt;
&lt;br /&gt;
Or you can find Selenium IDE downloads in Previous Releases directory:&lt;br /&gt;
[[File:SelHQ.png|500]] [[...]] [[File:SelIndex.png|300]]&lt;br /&gt;
&lt;br /&gt;
==Step 2a: Installing Selenium IDE⌘==&lt;br /&gt;
&lt;br /&gt;
* When the Software Installation Window opens select “selenium-ide” (*1)&lt;br /&gt;
[[File:InstalIDEa.png]]&lt;br /&gt;
* Click Install Now button&lt;br /&gt;
==⌘==&lt;br /&gt;
* “Selenium IDE” add-on is installed (*2)&lt;br /&gt;
[[File:InstalIDEb.png]]&lt;br /&gt;
* Click on “Restart Firefox” button&lt;br /&gt;
&lt;br /&gt;
==Step 2a: Installing Selenium IDE⌘==&lt;br /&gt;
&lt;br /&gt;
In the Firefox browser go to Tools and verify whether “Selenium IDE” is displayed.&lt;br /&gt;
Congratulation! &lt;br /&gt;
Selenium IDE installation is completed.&lt;br /&gt;
[[File:24.png]]&lt;br /&gt;
&lt;br /&gt;
==Recording and Running Selenium Tests⌘==&lt;br /&gt;
&lt;br /&gt;
==Test Case #1: Login⌘==&lt;br /&gt;
&lt;br /&gt;
Test-Case Objective: &lt;br /&gt;
&lt;br /&gt;
Ensure Valid User Login&lt;br /&gt;
&lt;br /&gt;
Expected Result:&lt;br /&gt;
# OrangeHRM index page is loaded&lt;br /&gt;
# Correct username is displayed as part of the greeting.&lt;br /&gt;
“Welcome Admin”&lt;br /&gt;
&lt;br /&gt;
Steps :&lt;br /&gt;
# In the login textbox type “admin”. &lt;br /&gt;
# In the password textbox type “password”. &lt;br /&gt;
# Click “Submit” button&lt;br /&gt;
# Verify that a correct user name is displayed&lt;br /&gt;
# Log out&lt;br /&gt;
&lt;br /&gt;
==Test Script #1: Login⌘==&lt;br /&gt;
&lt;br /&gt;
Test Script Steps:&lt;br /&gt;
Open OrangeHRM application in Firefox&lt;br /&gt;
http://hrm.portnov.com&lt;br /&gt;
* Login using :&lt;br /&gt;
Login Name: admin&lt;br /&gt;
&lt;br /&gt;
Password: password&lt;br /&gt;
* Click Login button&lt;br /&gt;
* Highlight “Welcome Admin” text &lt;br /&gt;
* Right-click and select VerifyTextPresent &lt;br /&gt;
* Click logout link&lt;br /&gt;
&lt;br /&gt;
==Recording An Automated Test⌘==&lt;br /&gt;
&lt;br /&gt;
# Open OrangeHRM application in Firefox http://hrm.portnov.com (*1)&lt;br /&gt;
[[File:Orangehrm.png]]&lt;br /&gt;
==⌘==&lt;br /&gt;
# Open Selenium IDE in Firefox Go to Tools -&amp;gt; Selenium IDE (*2)&lt;br /&gt;
[[File:28b.png]]&lt;br /&gt;
&lt;br /&gt;
==Login Test⌘==&lt;br /&gt;
&lt;br /&gt;
* Make sure Record button is ON!&lt;br /&gt;
[[File:29a.png]]&lt;br /&gt;
* Go to the Browser window&lt;br /&gt;
Login using:&lt;br /&gt;
&lt;br /&gt;
 Login Name: admin&lt;br /&gt;
 Password: password&lt;br /&gt;
[[File:29b.png]]&lt;br /&gt;
* Click Login button&lt;br /&gt;
&lt;br /&gt;
==Login Test⌘==&lt;br /&gt;
&lt;br /&gt;
* Highlight “Welcome Admin” text (*1) [[File:30a.png]]&lt;br /&gt;
* Right-click and select VerifyTextPresent (*2) [[File:30b.png]]&lt;br /&gt;
* Click logout link&lt;br /&gt;
&lt;br /&gt;
==Stop Recording⌘==&lt;br /&gt;
&lt;br /&gt;
Go to Selenium IDE&lt;br /&gt;
&lt;br /&gt;
Click the red button to STOP recording&lt;br /&gt;
&lt;br /&gt;
All your actions are recorded and displayed sequentially under Command Table Tab&lt;br /&gt;
&lt;br /&gt;
[[File:31.png]]&lt;br /&gt;
&lt;br /&gt;
==What did we accomplish?⌘==&lt;br /&gt;
&lt;br /&gt;
Test-Case Objective &lt;br /&gt;
&lt;br /&gt;
Ensure Valid User Login&lt;br /&gt;
&lt;br /&gt;
Steps &lt;br /&gt;
* In the login textbox type admin. &lt;br /&gt;
* In the password textbox type password. &lt;br /&gt;
* Click Submit button&lt;br /&gt;
* Verify that a correct user name is displayed&lt;br /&gt;
* Logout&lt;br /&gt;
&lt;br /&gt;
Expected Result&lt;br /&gt;
&lt;br /&gt;
# OrangeHRM index page is loaded&lt;br /&gt;
# Correct username is displayed as part of the greeting.&lt;br /&gt;
“Welcome Admin”&lt;br /&gt;
&lt;br /&gt;
==Running Selenium Automated Test⌘==&lt;br /&gt;
&lt;br /&gt;
Make sure the Firefox browser is still open&lt;br /&gt;
&lt;br /&gt;
Go to Selenium IDE and click “&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Play current test case&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;” button&lt;br /&gt;
&lt;br /&gt;
[[File:33a.png]]  [[File:33b.png]]&lt;br /&gt;
&lt;br /&gt;
==Interpreting Colors⌘==&lt;br /&gt;
&lt;br /&gt;
* If you see all the command line rows turn &amp;#039;&amp;#039;Green color&amp;#039;&amp;#039;, then the test has passed. &lt;br /&gt;
* &amp;#039;&amp;#039;Light Green&amp;#039;&amp;#039; means the code executed without problems.&lt;br /&gt;
* Dark Green means the test result of the command evaluated to true.&lt;br /&gt;
* If any part of the test failed it will be shown with &amp;#039;&amp;#039;Red color&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
==Debugging⌘==&lt;br /&gt;
&lt;br /&gt;
Examine the result of the script.&lt;br /&gt;
&lt;br /&gt;
[[File:Debugging.png]]&lt;br /&gt;
&lt;br /&gt;
Time is needed to validate the login information…&lt;br /&gt;
&lt;br /&gt;
The test must WAIT for the next web page to load before proceeding.&lt;br /&gt;
&lt;br /&gt;
==Debugging Tips⌘==&lt;br /&gt;
&lt;br /&gt;
* Open Selenium IDE through Tools menu, otherwise the IDE may freeze and act unpredictably.&lt;br /&gt;
* Make sure you substitute click command with clickAndWait command wherever needed.&lt;br /&gt;
&lt;br /&gt;
==Editing⌘==&lt;br /&gt;
&lt;br /&gt;
Editing &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;to add wait time&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039; to the script&lt;br /&gt;
&lt;br /&gt;
# Click the 3rd to last row where &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;ClickA&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039; command is located&lt;br /&gt;
# Modify the command field * Replace “click” with “&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;clickAndWait&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;” command&lt;br /&gt;
# Re-play the test… [[File:37.png]]&lt;br /&gt;
&lt;br /&gt;
==Helpful Notes:⌘==&lt;br /&gt;
&lt;br /&gt;
* One Firefox browser window must be open.&lt;br /&gt;
* Multiple browser windows will confuse Selenium.&lt;br /&gt;
* Play back every automated test to ensure expected behavior.&lt;br /&gt;
* Keep playback in &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;slow&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;  mode when debugging.&lt;br /&gt;
* Placing Browser window and Selenium IDE windows side by side is a convenient way of tracking test execution step by step.&lt;/div&gt;</summary>
		<author><name>Mirza Baig</name></author>
	</entry>
</feed>