SlideShare a Scribd company logo
Quality Assurance /
Software Testing Training
Page 2Classification: Restricted
Agenda
• Introduction to Selenium RC
• Installing Selenium RC
• Installing Eclipse
• Configuring Selenium RC
• Selenium RC Scripting
Page 3Classification: Restricted
• A solution to cross browser testing.
• A server, written in Java and so available on all the platforms.
• Acts as a proxy for web requests from them.
• Client libraries for many popular languages.
• It allows us to write automated web application UI tests with the help of
full power of programming languages such as Java, C#, Perl, Python and
PHP to create more complex tests such as reading and writing files,
querying a database, and emailing test results
Selenium RC
Page 4Classification: Restricted
Installing Selenium RC
• Installing Latest Java
http://www.oracle.com/technetwork/java/javase/downloads/index.html
• Download and Configure Eclipse http://www.eclipse.org/downloads/
• Installation Selenium RC http://www.seleniumhq.org/download/
• Selenium RC is simply a jar file and to run it we need java installed.
• Once the Java is installed just unzip the selenium-remote-control-2.44.0.
zip which was downloaded from the selenium site to a directory.
Page 5Classification: Restricted
Installing Eclipse
• The download would be in a Zipped format. Unzip the contents.
• Locate Eclipse.exe and double click on the file.
Page 6Classification: Restricted
• To configure the workspace, select the location where the development
has to take place.
• The Eclipse window opens as shown below.
Page 7Classification: Restricted
• After downloading, we need to start the Selenium Server.
• Open command prompt and navigate to the folder where the
downloaded JAR file is kept as shown below.
Configuring Selenium RC
Page 8Classification: Restricted
• To start the server, use the command 'java -jar selenium-server-standalone-
2.41.0.jar
• Note : if java JDK is installed properly, you would get a success message as
shown below.
Page 9Classification: Restricted
Selenium RC Scripting
• Start Selenium Remote Control (with the help of command prompt).
• After launching Selenium RC, open Eclipse and create a "New Project" as
shown below.
Page 10Classification: Restricted
• Enter the
project name
and click 'Next'
button.
Page 11Classification: Restricted
• Verify the Source,
Projects, Libraries,
and Output folder
and click 'Finish'
Page 12Classification: Restricted
• Right click on 'project' container and choose 'Configure Build Path'.
Page 13Classification: Restricted
• Properties for
‘RCDEMO'
opens up.
Navigate to
'Libraries' tab
and select 'Add
External JARs‘
• Choose the
Selenium RC
jar file that we
have
downloaded
and it would
appear as
shown below.
Page 14Classification: Restricted
• The referenced Libraries are shown as displayed below.
Page 15Classification: Restricted
• Create a new class file by performing a right click on 'src' folder and select
'New' >> 'class'.
Page 16Classification: Restricted
• Enter a
name of the
class file
and enable
'public
static void
main' as
shown
below.
Page 17Classification: Restricted
• The Created Class is created under the folder structure as shown below
Page 18Classification: Restricted
WebDriver is a tool for automating testing web applications. It is popularly
known as Selenium 2.0.
WebDriver interacts directly with the browser without any intermediary,
unlike Selenium RC that depends on a server. It is used in the following
context:
• Multi-browser testing including improved functionality for browsers
which is not well-supported by Selenium RC (Selenium 1.0).
• Handling multiple frames, multiple browser windows, popups, and alerts.
• Complex page navigation.
• Advanced user navigation such as drag-and-drop.
• AJAX-based UI elements.
Selenium WebDriver
Page 19Classification: Restricted
Configuring Selenium - Webdriver
• Navigate to the selenium downloads section
http://www.seleniumhq.org/download/
• Download Selenium WebDriver by clicking on its version number as shown
below.
Page 20Classification: Restricted
• The downloaded file is in Zipped format and one has to unzip the contents
to map it to the project folder.
• The Unzipped contents would be displayed as shown below.
Page 21Classification: Restricted
Scripting using WebDriver
Step 1: Launch "Eclipse" from the Extracted Eclipse folder.
Step 2: Now create a 'New Project' from 'File' menu.
Page 22Classification: Restricted
Step 3 :Enter the Project Name and
Click 'Next'.
Page 23Classification: Restricted
Step 4 : Go to Libraries Tab
and select all the JAR's that
we have downloaded. Add
reference to all the JAR's of
Selenium WebDriver Library
folder and also selenium-
java-2.44.0.jar and selenium-
java-2.44.0-srcs.jar.
Page 24Classification: Restricted
Step 5 : Now right-click
on the package and
select 'New' >> 'Class' to
create a 'class'.
Step 6 : Now name the
class and make it the
main function
Page 25Classification: Restricted
• The class outline is shown as below.
Page 26Classification: Restricted
Load Runner
• LoadRunner is a Performance Testing tool which was pioneered by Mercury in
1999. Loadrunner was later acquired by HP in 2009.
• LoadRunner supports various development tools, technologies and
communication protocols. In fact this is the only tool in market
which supports such large number of protocols to conduct performance
testing.
Page 27Classification: Restricted
Why do you need Performance Testing?
An estimated loss of 4.4 billion in revenue is recorded annually due to poor
web performance.
In today's age of Web 2.0, users click away if a website doesn't respond within
8 seconds. Imagine yourself waiting for 5 seconds when searching over
Google or making a friend request on Facebook.
•Increased number of records present in the database
•Increased number of simultaneous requests made to the system
•larger number of users accessing the system at a time as compared to the
past
Page 28Classification: Restricted
Components of Load Runner
Major components of LoadRunner
• Vugen
• Controller
• Load Generator
• Analysis
Page 29Classification: Restricted
Page 30Classification: Restricted
• Suppose you are assigned to check performance of Amazon.com for 5000 users
• In a real life situation, these all these 5000 users will not be at homepage but in
different section of the websites. How can we simulate different
Example for understanding the Architecture
Page 31Classification: Restricted
VUGen:
VUGen or Virtual User Generator is an IDE (Integrated Development Environment)
or a rich coding editor. VUGen is used to replicate System Under Load (SUL)
behaviour. VUGen provides a "recording" feature which records communication to
and from client and Server in form of a coded script - also called VUser script.
So considering the above example, VUGen can record to simulate following
business processes:
• Surfing the Products Page of Amazon.com
• Checkout
• Payment Processing
• Checking MyAccount Page
Page 32Classification: Restricted
Controller:
Once a VUser script is finalized, Controller is the main component which controls
the Load simulation by managing, for example:
How many VUsers to simulate against each business process or VUser Group
Behaviour of VUsers (ramp up, ramp down, simultaneous or concurrent nature etc.)
Nature of Load scenario e.g. Real Life or Goal Oriented or verifying SLA
Which injectors to use, how many VUsers against each injector
• Collate results periodically
• IP Spoofing
• Error reporting
• Transaction reporting etc.
Page 33Classification: Restricted
• Taking analogy from our example controller will add following parameter to
the VUGen Script
• 1) 3500 Users are Surfing the Products Page of Amazon.com
• 2) 750 Users are in Checkout
• 3) 500 Users are performing Payment Processing
• 4) 250 Users are Checking MyAccount Page ONLY after 500 users have done
Payment Processing
Page 34Classification: Restricted
• Agents Machine/Load Generators/Injectors
• LoadRunner Controller is responsible to simulate thousands of VUsers - these
VUsers consume hardware resources for example processor and memory -
hence putting a limit on the machine which is simulating them. Besides,
Controller simulates these VUsers from the same machine (where Controller
resides) & hence the results may not be precise. To address this concern, all
VUsers are spread across various machines, called Load Generators or Load
Injectors.
Agents
Page 35Classification: Restricted
• As a general practice, Controller resides on a different machine and load is
simulated from other machines. Depending upon the protocol of VUser
scripts and machine specifications, a number of Load Injectors may be
required for full simulation. For example, VUsers for an HTTP script will
require 2-4MB per VUser for simulation, hence 4 machines with 4 GB RAM
each will be required to simulate a load of 10,000 VUsers.
Page 36Classification: Restricted
Analysis
Once Load scenarios have been executed, the role of "Analysis"
component comes in.
During the execution, Controller creates a dump of results in raw form &
contains information like, which version of LoadRunner created this results
dump and what were configurations.
All the errors and exceptions are logged in a Microsoft access database,
named, output.mdb. The "Analysis" component reads this database file to
perform various types of analysis and generates graphs.
These graphs show various trends to understand the reasoning behind
errors and failure under load; thus help figuring whether optimization is
required in SUL, Server (e.g. JBoss, Oracle) or infrastructure.
Page 37Classification: Restricted
Below is an example where bandwidth could be creating bottleneck. Let's say
Web server has 1GBps capacity whereas the data traffic exceeds this capacity
causing subsequent users to suffer. To determine system caters to such needs,
Performance Engineer needs to analyse application behaviour with abnormal
load. Below is a graph LoadRunner generates to elicit bandwidth.
Example:
Page 38Classification: Restricted
Page 39Classification: Restricted
Below Steps for Installation:
1. Type in Google HP Runner free download
2. Click on the HP link on top
3. Register with you details and ID
4. Select download ‘HP LoadRunner Community Edition’
5. After download try to setup.exe install
6. Setup the destination folder
7. If .Net is not available install it
8. Accept the License terms and conditions
9. Select ‘Typical mode’ to complete the installation
Installation:
Page 40Classification: Restricted
Below
1.Start > all programs > HP LoadRunner > VUGen option
2. File > New Script and Solution
3. Enter Script name , location, solution name
4. Click on record button
5. Set ‘Action’ to record in, start recording window
6. Enter the local host as the Application URL
7. Perform the action
8. Stop and save the file
Recording:
Page 41Classification: Restricted
Thank You

More Related Content

What's hot

Testing Frameworks
Testing FrameworksTesting Frameworks
Testing Frameworks
Moataz Nabil
 
Test Automation Framework Designs
Test Automation Framework DesignsTest Automation Framework Designs
Test Automation Framework Designs
Sauce Labs
 
Automation testing
Automation testingAutomation testing
Automation testing
Biswajit Pratihari
 
Test automation process
Test automation processTest automation process
Test automation process
Bharathi Krishnamurthi
 
Final Automation Testing
Final Automation TestingFinal Automation Testing
Final Automation Testingpriya_trivedi
 
Test automation methodologies
Test automation methodologiesTest automation methodologies
Test automation methodologies
Mesut Günes
 
Automation Testing
Automation TestingAutomation Testing
Automation Testing
Sun Technlogies
 
Top ten software testing tools
Top ten software testing toolsTop ten software testing tools
Top ten software testing tools
JanBask Training
 
Types of test tools
Types of test toolsTypes of test tools
Types of test tools
Vaibhav Dash
 
Automation testing IBM RFT - Rational Functional Tester
Automation testing IBM RFT - Rational Functional TesterAutomation testing IBM RFT - Rational Functional Tester
Automation testing IBM RFT - Rational Functional TesterVijayChowthri Nagaprakasham
 
WSO2Con Asia 2014 - Effective Test Automation in an Agile Environment
WSO2Con Asia 2014 - Effective Test Automation in an Agile EnvironmentWSO2Con Asia 2014 - Effective Test Automation in an Agile Environment
WSO2Con Asia 2014 - Effective Test Automation in an Agile EnvironmentWSO2
 
Build your QA Pipeline using Serenity , Selenium WebDriver , Rest Assured and...
Build your QA Pipeline using Serenity , Selenium WebDriver , Rest Assured and...Build your QA Pipeline using Serenity , Selenium WebDriver , Rest Assured and...
Build your QA Pipeline using Serenity , Selenium WebDriver , Rest Assured and...
Moataz Nabil
 
Automated vs manual testing
Automated vs manual testingAutomated vs manual testing
Automated vs manual testing
Kanoah
 
Test Automation Framework Design | www.idexcel.com
Test Automation Framework Design | www.idexcel.comTest Automation Framework Design | www.idexcel.com
Test Automation Framework Design | www.idexcel.com
Idexcel Technologies
 
Programming skills for test automation
Programming skills for test automationProgramming skills for test automation
Programming skills for test automationRomania Testing
 
Testwarez 2009 Use Proper Tool
Testwarez 2009 Use Proper ToolTestwarez 2009 Use Proper Tool
Testwarez 2009 Use Proper Tool
Adam Sandman
 
Building Resilient Automated UI Tests for Cloud Applications using Scripless ...
Building Resilient Automated UI Tests for Cloud Applications using Scripless ...Building Resilient Automated UI Tests for Cloud Applications using Scripless ...
Building Resilient Automated UI Tests for Cloud Applications using Scripless ...
Adam Sandman
 
Selenium Test Automation
Selenium Test AutomationSelenium Test Automation
Selenium Test Automation
BabuDevanandam
 
Automation testing strategy, approach & planning
Automation testing  strategy, approach & planningAutomation testing  strategy, approach & planning
Automation testing strategy, approach & planningSivaprasanthRentala1975
 
Framework For Automation Testing Practice Sharing
Framework For Automation Testing Practice SharingFramework For Automation Testing Practice Sharing
Framework For Automation Testing Practice Sharing
KMS Technology
 

What's hot (20)

Testing Frameworks
Testing FrameworksTesting Frameworks
Testing Frameworks
 
Test Automation Framework Designs
Test Automation Framework DesignsTest Automation Framework Designs
Test Automation Framework Designs
 
Automation testing
Automation testingAutomation testing
Automation testing
 
Test automation process
Test automation processTest automation process
Test automation process
 
Final Automation Testing
Final Automation TestingFinal Automation Testing
Final Automation Testing
 
Test automation methodologies
Test automation methodologiesTest automation methodologies
Test automation methodologies
 
Automation Testing
Automation TestingAutomation Testing
Automation Testing
 
Top ten software testing tools
Top ten software testing toolsTop ten software testing tools
Top ten software testing tools
 
Types of test tools
Types of test toolsTypes of test tools
Types of test tools
 
Automation testing IBM RFT - Rational Functional Tester
Automation testing IBM RFT - Rational Functional TesterAutomation testing IBM RFT - Rational Functional Tester
Automation testing IBM RFT - Rational Functional Tester
 
WSO2Con Asia 2014 - Effective Test Automation in an Agile Environment
WSO2Con Asia 2014 - Effective Test Automation in an Agile EnvironmentWSO2Con Asia 2014 - Effective Test Automation in an Agile Environment
WSO2Con Asia 2014 - Effective Test Automation in an Agile Environment
 
Build your QA Pipeline using Serenity , Selenium WebDriver , Rest Assured and...
Build your QA Pipeline using Serenity , Selenium WebDriver , Rest Assured and...Build your QA Pipeline using Serenity , Selenium WebDriver , Rest Assured and...
Build your QA Pipeline using Serenity , Selenium WebDriver , Rest Assured and...
 
Automated vs manual testing
Automated vs manual testingAutomated vs manual testing
Automated vs manual testing
 
Test Automation Framework Design | www.idexcel.com
Test Automation Framework Design | www.idexcel.comTest Automation Framework Design | www.idexcel.com
Test Automation Framework Design | www.idexcel.com
 
Programming skills for test automation
Programming skills for test automationProgramming skills for test automation
Programming skills for test automation
 
Testwarez 2009 Use Proper Tool
Testwarez 2009 Use Proper ToolTestwarez 2009 Use Proper Tool
Testwarez 2009 Use Proper Tool
 
Building Resilient Automated UI Tests for Cloud Applications using Scripless ...
Building Resilient Automated UI Tests for Cloud Applications using Scripless ...Building Resilient Automated UI Tests for Cloud Applications using Scripless ...
Building Resilient Automated UI Tests for Cloud Applications using Scripless ...
 
Selenium Test Automation
Selenium Test AutomationSelenium Test Automation
Selenium Test Automation
 
Automation testing strategy, approach & planning
Automation testing  strategy, approach & planningAutomation testing  strategy, approach & planning
Automation testing strategy, approach & planning
 
Framework For Automation Testing Practice Sharing
Framework For Automation Testing Practice SharingFramework For Automation Testing Practice Sharing
Framework For Automation Testing Practice Sharing
 

Similar to Selenium RC, Selenium WebDriver and HP LoadRunner

Selenium RC
Selenium  RCSelenium  RC
Selenium RC
ANKUR-BA
 
Selenium Introduction and IDE
Selenium Introduction and IDESelenium Introduction and IDE
Selenium Introduction and IDE
Murageppa-QA
 
Opendaylight SDN Controller
Opendaylight SDN ControllerOpendaylight SDN Controller
Opendaylight SDN Controller
Sumit Arora
 
Selenium - Introduction
Selenium - IntroductionSelenium - Introduction
Selenium - Introduction
Sachin-QA
 
Selenium - Introduction
Selenium - IntroductionSelenium - Introduction
Selenium - Introduction
ANKUR-BA
 
Using galen framework for automated cross browser layout testing
Using galen framework for automated cross browser layout testingUsing galen framework for automated cross browser layout testing
Using galen framework for automated cross browser layout testing
Sarah Elson
 
Selenoid
SelenoidSelenoid
Selenoid
DataArt
 
Jbossworld Presentation
Jbossworld PresentationJbossworld Presentation
Jbossworld Presentation
Dan Hinojosa
 
Ausoug glassfish perth
Ausoug glassfish perthAusoug glassfish perth
Ausoug glassfish perth
LansenConsulting
 
Chris Omland - AWS Code Deploy - BSDC 2016
Chris Omland - AWS Code Deploy - BSDC 2016Chris Omland - AWS Code Deploy - BSDC 2016
Chris Omland - AWS Code Deploy - BSDC 2016
roblund
 
No Compromise - Better, Stronger, Faster Java in the Cloud
No Compromise - Better, Stronger, Faster Java in the CloudNo Compromise - Better, Stronger, Faster Java in the Cloud
No Compromise - Better, Stronger, Faster Java in the Cloud
All Things Open
 
Spring Live Sample Chapter
Spring Live Sample ChapterSpring Live Sample Chapter
Spring Live Sample ChapterSyed Shahul
 
Writing simple web services in java using eclipse editor
Writing simple web services in java using eclipse editorWriting simple web services in java using eclipse editor
Writing simple web services in java using eclipse editor
Santosh Kumar Kar
 
Session 41 - Struts 2 Introduction
Session 41 - Struts 2 IntroductionSession 41 - Struts 2 Introduction
Session 41 - Struts 2 Introduction
PawanMM
 
Getting Started with MariaDB with Docker
Getting Started with MariaDB with DockerGetting Started with MariaDB with Docker
Getting Started with MariaDB with Docker
MariaDB plc
 
1 app 2 developers 3 servers
1 app 2 developers 3 servers1 app 2 developers 3 servers
1 app 2 developers 3 servers
Mark Myers
 
Jenkins advance topic
Jenkins advance topicJenkins advance topic
Jenkins advance topic
Gourav Varma
 
Struts 2 - Introduction
Struts 2 - Introduction Struts 2 - Introduction
Struts 2 - Introduction
Hitesh-Java
 

Similar to Selenium RC, Selenium WebDriver and HP LoadRunner (20)

Selenium RC
Selenium  RCSelenium  RC
Selenium RC
 
Selenium Introduction and IDE
Selenium Introduction and IDESelenium Introduction and IDE
Selenium Introduction and IDE
 
Opendaylight SDN Controller
Opendaylight SDN ControllerOpendaylight SDN Controller
Opendaylight SDN Controller
 
Selenium - Introduction
Selenium - IntroductionSelenium - Introduction
Selenium - Introduction
 
Selenium - Introduction
Selenium - IntroductionSelenium - Introduction
Selenium - Introduction
 
Using galen framework for automated cross browser layout testing
Using galen framework for automated cross browser layout testingUsing galen framework for automated cross browser layout testing
Using galen framework for automated cross browser layout testing
 
Selenoid
SelenoidSelenoid
Selenoid
 
Selenium
SeleniumSelenium
Selenium
 
Jbossworld Presentation
Jbossworld PresentationJbossworld Presentation
Jbossworld Presentation
 
Ausoug glassfish perth
Ausoug glassfish perthAusoug glassfish perth
Ausoug glassfish perth
 
Chris Omland - AWS Code Deploy - BSDC 2016
Chris Omland - AWS Code Deploy - BSDC 2016Chris Omland - AWS Code Deploy - BSDC 2016
Chris Omland - AWS Code Deploy - BSDC 2016
 
No Compromise - Better, Stronger, Faster Java in the Cloud
No Compromise - Better, Stronger, Faster Java in the CloudNo Compromise - Better, Stronger, Faster Java in the Cloud
No Compromise - Better, Stronger, Faster Java in the Cloud
 
Selenium Testing
Selenium Testing Selenium Testing
Selenium Testing
 
Spring Live Sample Chapter
Spring Live Sample ChapterSpring Live Sample Chapter
Spring Live Sample Chapter
 
Writing simple web services in java using eclipse editor
Writing simple web services in java using eclipse editorWriting simple web services in java using eclipse editor
Writing simple web services in java using eclipse editor
 
Session 41 - Struts 2 Introduction
Session 41 - Struts 2 IntroductionSession 41 - Struts 2 Introduction
Session 41 - Struts 2 Introduction
 
Getting Started with MariaDB with Docker
Getting Started with MariaDB with DockerGetting Started with MariaDB with Docker
Getting Started with MariaDB with Docker
 
1 app 2 developers 3 servers
1 app 2 developers 3 servers1 app 2 developers 3 servers
1 app 2 developers 3 servers
 
Jenkins advance topic
Jenkins advance topicJenkins advance topic
Jenkins advance topic
 
Struts 2 - Introduction
Struts 2 - Introduction Struts 2 - Introduction
Struts 2 - Introduction
 

More from Murageppa-QA

QTP/UFT Overview and Installation
QTP/UFT Overview and InstallationQTP/UFT Overview and Installation
QTP/UFT Overview and Installation
Murageppa-QA
 
SQL - Basic Commands and Queries
SQL - Basic Commands and QueriesSQL - Basic Commands and Queries
SQL - Basic Commands and Queries
Murageppa-QA
 
Introduction DBMS, RDBMS and SQL
Introduction DBMS, RDBMS and SQLIntroduction DBMS, RDBMS and SQL
Introduction DBMS, RDBMS and SQL
Murageppa-QA
 
Quality Management and Quality Standard
Quality Management and Quality StandardQuality Management and Quality Standard
Quality Management and Quality Standard
Murageppa-QA
 
Test Management Tool - JIRA
Test Management Tool - JIRATest Management Tool - JIRA
Test Management Tool - JIRA
Murageppa-QA
 
Test Management Tool HP ALM- Quality Center Part 2
Test Management Tool  HP ALM- Quality Center Part 2Test Management Tool  HP ALM- Quality Center Part 2
Test Management Tool HP ALM- Quality Center Part 2
Murageppa-QA
 
Test Management Tool HP ALM- Quality Center Part 1
Test Management Tool  HP ALM- Quality Center Part 1Test Management Tool  HP ALM- Quality Center Part 1
Test Management Tool HP ALM- Quality Center Part 1
Murageppa-QA
 
Defect Life Cycle
Defect Life CycleDefect Life Cycle
Defect Life Cycle
Murageppa-QA
 
Test Case Design Techniques
Test Case Design TechniquesTest Case Design Techniques
Test Case Design Techniques
Murageppa-QA
 
Test Case Design and Design Techniques
Test Case Design and Design TechniquesTest Case Design and Design Techniques
Test Case Design and Design Techniques
Murageppa-QA
 
Test Planning and Test Estimation Techniques
Test Planning and Test Estimation TechniquesTest Planning and Test Estimation Techniques
Test Planning and Test Estimation Techniques
Murageppa-QA
 
Types of Testing
Types of TestingTypes of Testing
Types of Testing
Murageppa-QA
 
Testing Concepts and Manual Testing
Testing Concepts and Manual TestingTesting Concepts and Manual Testing
Testing Concepts and Manual Testing
Murageppa-QA
 
Software Development Life Cycle – Agile Methodology
Software Development Life Cycle –  Agile MethodologySoftware Development Life Cycle –  Agile Methodology
Software Development Life Cycle – Agile Methodology
Murageppa-QA
 
Software Development Life Cycle – SDLC – Waterfall, Iterative, V, Spiral, and...
Software Development Life Cycle – SDLC – Waterfall, Iterative, V, Spiral, and...Software Development Life Cycle – SDLC – Waterfall, Iterative, V, Spiral, and...
Software Development Life Cycle – SDLC – Waterfall, Iterative, V, Spiral, and...
Murageppa-QA
 
Software Development Life Cycle – SDLC – Waterfall Model
Software Development Life Cycle – SDLC – Waterfall ModelSoftware Development Life Cycle – SDLC – Waterfall Model
Software Development Life Cycle – SDLC – Waterfall Model
Murageppa-QA
 
Introduction to Software Testing Part 2
Introduction to Software Testing Part 2Introduction to Software Testing Part 2
Introduction to Software Testing Part 2
Murageppa-QA
 
Introduction to Software Testing - Part 1
Introduction to Software Testing - Part 1Introduction to Software Testing - Part 1
Introduction to Software Testing - Part 1
Murageppa-QA
 

More from Murageppa-QA (18)

QTP/UFT Overview and Installation
QTP/UFT Overview and InstallationQTP/UFT Overview and Installation
QTP/UFT Overview and Installation
 
SQL - Basic Commands and Queries
SQL - Basic Commands and QueriesSQL - Basic Commands and Queries
SQL - Basic Commands and Queries
 
Introduction DBMS, RDBMS and SQL
Introduction DBMS, RDBMS and SQLIntroduction DBMS, RDBMS and SQL
Introduction DBMS, RDBMS and SQL
 
Quality Management and Quality Standard
Quality Management and Quality StandardQuality Management and Quality Standard
Quality Management and Quality Standard
 
Test Management Tool - JIRA
Test Management Tool - JIRATest Management Tool - JIRA
Test Management Tool - JIRA
 
Test Management Tool HP ALM- Quality Center Part 2
Test Management Tool  HP ALM- Quality Center Part 2Test Management Tool  HP ALM- Quality Center Part 2
Test Management Tool HP ALM- Quality Center Part 2
 
Test Management Tool HP ALM- Quality Center Part 1
Test Management Tool  HP ALM- Quality Center Part 1Test Management Tool  HP ALM- Quality Center Part 1
Test Management Tool HP ALM- Quality Center Part 1
 
Defect Life Cycle
Defect Life CycleDefect Life Cycle
Defect Life Cycle
 
Test Case Design Techniques
Test Case Design TechniquesTest Case Design Techniques
Test Case Design Techniques
 
Test Case Design and Design Techniques
Test Case Design and Design TechniquesTest Case Design and Design Techniques
Test Case Design and Design Techniques
 
Test Planning and Test Estimation Techniques
Test Planning and Test Estimation TechniquesTest Planning and Test Estimation Techniques
Test Planning and Test Estimation Techniques
 
Types of Testing
Types of TestingTypes of Testing
Types of Testing
 
Testing Concepts and Manual Testing
Testing Concepts and Manual TestingTesting Concepts and Manual Testing
Testing Concepts and Manual Testing
 
Software Development Life Cycle – Agile Methodology
Software Development Life Cycle –  Agile MethodologySoftware Development Life Cycle –  Agile Methodology
Software Development Life Cycle – Agile Methodology
 
Software Development Life Cycle – SDLC – Waterfall, Iterative, V, Spiral, and...
Software Development Life Cycle – SDLC – Waterfall, Iterative, V, Spiral, and...Software Development Life Cycle – SDLC – Waterfall, Iterative, V, Spiral, and...
Software Development Life Cycle – SDLC – Waterfall, Iterative, V, Spiral, and...
 
Software Development Life Cycle – SDLC – Waterfall Model
Software Development Life Cycle – SDLC – Waterfall ModelSoftware Development Life Cycle – SDLC – Waterfall Model
Software Development Life Cycle – SDLC – Waterfall Model
 
Introduction to Software Testing Part 2
Introduction to Software Testing Part 2Introduction to Software Testing Part 2
Introduction to Software Testing Part 2
 
Introduction to Software Testing - Part 1
Introduction to Software Testing - Part 1Introduction to Software Testing - Part 1
Introduction to Software Testing - Part 1
 

Recently uploaded

Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Tobias Schneck
 
ODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User GroupODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User Group
CatarinaPereira64715
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
DianaGray10
 
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
Product School
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
Paul Groth
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
Thijs Feryn
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Jeffrey Haguewood
 
Search and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical FuturesSearch and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical Futures
Bhaskar Mitra
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
BookNet Canada
 
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptxIOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
Abida Shariff
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
Jemma Hussein Allen
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
Guy Korland
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
Safe Software
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
Elena Simperl
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
Product School
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Inflectra
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
Kari Kakkonen
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
Prayukth K V
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Product School
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
Sri Ambati
 

Recently uploaded (20)

Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
 
ODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User GroupODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User Group
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
 
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
 
Search and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical FuturesSearch and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical Futures
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
 
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptxIOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
 

Selenium RC, Selenium WebDriver and HP LoadRunner

  • 1. Quality Assurance / Software Testing Training
  • 2. Page 2Classification: Restricted Agenda • Introduction to Selenium RC • Installing Selenium RC • Installing Eclipse • Configuring Selenium RC • Selenium RC Scripting
  • 3. Page 3Classification: Restricted • A solution to cross browser testing. • A server, written in Java and so available on all the platforms. • Acts as a proxy for web requests from them. • Client libraries for many popular languages. • It allows us to write automated web application UI tests with the help of full power of programming languages such as Java, C#, Perl, Python and PHP to create more complex tests such as reading and writing files, querying a database, and emailing test results Selenium RC
  • 4. Page 4Classification: Restricted Installing Selenium RC • Installing Latest Java http://www.oracle.com/technetwork/java/javase/downloads/index.html • Download and Configure Eclipse http://www.eclipse.org/downloads/ • Installation Selenium RC http://www.seleniumhq.org/download/ • Selenium RC is simply a jar file and to run it we need java installed. • Once the Java is installed just unzip the selenium-remote-control-2.44.0. zip which was downloaded from the selenium site to a directory.
  • 5. Page 5Classification: Restricted Installing Eclipse • The download would be in a Zipped format. Unzip the contents. • Locate Eclipse.exe and double click on the file.
  • 6. Page 6Classification: Restricted • To configure the workspace, select the location where the development has to take place. • The Eclipse window opens as shown below.
  • 7. Page 7Classification: Restricted • After downloading, we need to start the Selenium Server. • Open command prompt and navigate to the folder where the downloaded JAR file is kept as shown below. Configuring Selenium RC
  • 8. Page 8Classification: Restricted • To start the server, use the command 'java -jar selenium-server-standalone- 2.41.0.jar • Note : if java JDK is installed properly, you would get a success message as shown below.
  • 9. Page 9Classification: Restricted Selenium RC Scripting • Start Selenium Remote Control (with the help of command prompt). • After launching Selenium RC, open Eclipse and create a "New Project" as shown below.
  • 10. Page 10Classification: Restricted • Enter the project name and click 'Next' button.
  • 11. Page 11Classification: Restricted • Verify the Source, Projects, Libraries, and Output folder and click 'Finish'
  • 12. Page 12Classification: Restricted • Right click on 'project' container and choose 'Configure Build Path'.
  • 13. Page 13Classification: Restricted • Properties for ‘RCDEMO' opens up. Navigate to 'Libraries' tab and select 'Add External JARs‘ • Choose the Selenium RC jar file that we have downloaded and it would appear as shown below.
  • 14. Page 14Classification: Restricted • The referenced Libraries are shown as displayed below.
  • 15. Page 15Classification: Restricted • Create a new class file by performing a right click on 'src' folder and select 'New' >> 'class'.
  • 16. Page 16Classification: Restricted • Enter a name of the class file and enable 'public static void main' as shown below.
  • 17. Page 17Classification: Restricted • The Created Class is created under the folder structure as shown below
  • 18. Page 18Classification: Restricted WebDriver is a tool for automating testing web applications. It is popularly known as Selenium 2.0. WebDriver interacts directly with the browser without any intermediary, unlike Selenium RC that depends on a server. It is used in the following context: • Multi-browser testing including improved functionality for browsers which is not well-supported by Selenium RC (Selenium 1.0). • Handling multiple frames, multiple browser windows, popups, and alerts. • Complex page navigation. • Advanced user navigation such as drag-and-drop. • AJAX-based UI elements. Selenium WebDriver
  • 19. Page 19Classification: Restricted Configuring Selenium - Webdriver • Navigate to the selenium downloads section http://www.seleniumhq.org/download/ • Download Selenium WebDriver by clicking on its version number as shown below.
  • 20. Page 20Classification: Restricted • The downloaded file is in Zipped format and one has to unzip the contents to map it to the project folder. • The Unzipped contents would be displayed as shown below.
  • 21. Page 21Classification: Restricted Scripting using WebDriver Step 1: Launch "Eclipse" from the Extracted Eclipse folder. Step 2: Now create a 'New Project' from 'File' menu.
  • 22. Page 22Classification: Restricted Step 3 :Enter the Project Name and Click 'Next'.
  • 23. Page 23Classification: Restricted Step 4 : Go to Libraries Tab and select all the JAR's that we have downloaded. Add reference to all the JAR's of Selenium WebDriver Library folder and also selenium- java-2.44.0.jar and selenium- java-2.44.0-srcs.jar.
  • 24. Page 24Classification: Restricted Step 5 : Now right-click on the package and select 'New' >> 'Class' to create a 'class'. Step 6 : Now name the class and make it the main function
  • 25. Page 25Classification: Restricted • The class outline is shown as below.
  • 26. Page 26Classification: Restricted Load Runner • LoadRunner is a Performance Testing tool which was pioneered by Mercury in 1999. Loadrunner was later acquired by HP in 2009. • LoadRunner supports various development tools, technologies and communication protocols. In fact this is the only tool in market which supports such large number of protocols to conduct performance testing.
  • 27. Page 27Classification: Restricted Why do you need Performance Testing? An estimated loss of 4.4 billion in revenue is recorded annually due to poor web performance. In today's age of Web 2.0, users click away if a website doesn't respond within 8 seconds. Imagine yourself waiting for 5 seconds when searching over Google or making a friend request on Facebook. •Increased number of records present in the database •Increased number of simultaneous requests made to the system •larger number of users accessing the system at a time as compared to the past
  • 28. Page 28Classification: Restricted Components of Load Runner Major components of LoadRunner • Vugen • Controller • Load Generator • Analysis
  • 30. Page 30Classification: Restricted • Suppose you are assigned to check performance of Amazon.com for 5000 users • In a real life situation, these all these 5000 users will not be at homepage but in different section of the websites. How can we simulate different Example for understanding the Architecture
  • 31. Page 31Classification: Restricted VUGen: VUGen or Virtual User Generator is an IDE (Integrated Development Environment) or a rich coding editor. VUGen is used to replicate System Under Load (SUL) behaviour. VUGen provides a "recording" feature which records communication to and from client and Server in form of a coded script - also called VUser script. So considering the above example, VUGen can record to simulate following business processes: • Surfing the Products Page of Amazon.com • Checkout • Payment Processing • Checking MyAccount Page
  • 32. Page 32Classification: Restricted Controller: Once a VUser script is finalized, Controller is the main component which controls the Load simulation by managing, for example: How many VUsers to simulate against each business process or VUser Group Behaviour of VUsers (ramp up, ramp down, simultaneous or concurrent nature etc.) Nature of Load scenario e.g. Real Life or Goal Oriented or verifying SLA Which injectors to use, how many VUsers against each injector • Collate results periodically • IP Spoofing • Error reporting • Transaction reporting etc.
  • 33. Page 33Classification: Restricted • Taking analogy from our example controller will add following parameter to the VUGen Script • 1) 3500 Users are Surfing the Products Page of Amazon.com • 2) 750 Users are in Checkout • 3) 500 Users are performing Payment Processing • 4) 250 Users are Checking MyAccount Page ONLY after 500 users have done Payment Processing
  • 34. Page 34Classification: Restricted • Agents Machine/Load Generators/Injectors • LoadRunner Controller is responsible to simulate thousands of VUsers - these VUsers consume hardware resources for example processor and memory - hence putting a limit on the machine which is simulating them. Besides, Controller simulates these VUsers from the same machine (where Controller resides) & hence the results may not be precise. To address this concern, all VUsers are spread across various machines, called Load Generators or Load Injectors. Agents
  • 35. Page 35Classification: Restricted • As a general practice, Controller resides on a different machine and load is simulated from other machines. Depending upon the protocol of VUser scripts and machine specifications, a number of Load Injectors may be required for full simulation. For example, VUsers for an HTTP script will require 2-4MB per VUser for simulation, hence 4 machines with 4 GB RAM each will be required to simulate a load of 10,000 VUsers.
  • 36. Page 36Classification: Restricted Analysis Once Load scenarios have been executed, the role of "Analysis" component comes in. During the execution, Controller creates a dump of results in raw form & contains information like, which version of LoadRunner created this results dump and what were configurations. All the errors and exceptions are logged in a Microsoft access database, named, output.mdb. The "Analysis" component reads this database file to perform various types of analysis and generates graphs. These graphs show various trends to understand the reasoning behind errors and failure under load; thus help figuring whether optimization is required in SUL, Server (e.g. JBoss, Oracle) or infrastructure.
  • 37. Page 37Classification: Restricted Below is an example where bandwidth could be creating bottleneck. Let's say Web server has 1GBps capacity whereas the data traffic exceeds this capacity causing subsequent users to suffer. To determine system caters to such needs, Performance Engineer needs to analyse application behaviour with abnormal load. Below is a graph LoadRunner generates to elicit bandwidth. Example:
  • 39. Page 39Classification: Restricted Below Steps for Installation: 1. Type in Google HP Runner free download 2. Click on the HP link on top 3. Register with you details and ID 4. Select download ‘HP LoadRunner Community Edition’ 5. After download try to setup.exe install 6. Setup the destination folder 7. If .Net is not available install it 8. Accept the License terms and conditions 9. Select ‘Typical mode’ to complete the installation Installation:
  • 40. Page 40Classification: Restricted Below 1.Start > all programs > HP LoadRunner > VUGen option 2. File > New Script and Solution 3. Enter Script name , location, solution name 4. Click on record button 5. Set ‘Action’ to record in, start recording window 6. Enter the local host as the Application URL 7. Perform the action 8. Stop and save the file Recording: