SlideShare a Scribd company logo
1 of 38
Download to read offline
QTP to Selenium Migration
By Tarun Lalwani
About TARLABS© Pvt Ltd
Specialize in implementing automation using QTP and Selenium
Expertise in QTP to Selenium Migration
Other services we offer
Data scraping and Crawling
Automation using API
Custom Process/Task Automation
About the Speaker
Author of 3 best selling books on QTP
QuickTest Professional Unplugged, 2nd Ed
QTP/UFT Interview Unplugged, 2nd Ed
QTP Descriptive Programming Unplugged
12+ yrs of experience in Testing Automation
Director/Founder at TARLABS© Pvt. Ltd. (www.tarlabs.com)
Blogger and founder of www.KnowledgeInbox.com
Agenda
Introduction to QTP and Selenium
Differences between QTP and Selenium
Migration to Selenium
Benefits
Challenges
Q&A
What is QTP/UFT?
QTP/UFT is UI + Backend Services test automation tool
QTP was earlier developed by Mercury which got acquired by HP in 2006
QTP a.k.a. QuickTest professional is now called as UFT a.k.a. Unified Functional Testing
QTP is a desktop based application
What is Selenium?
Selenium is a Web browser automation API
Selenium is a open source project with 108+ contributors
Selenium has become one of the preferred choice for Web and mobile automation
QTP v/s Selenium (AUT Technologies)
QTP v/s Selenium (Operating Systems)
QTP v/s Selenium (Languages)
QTP v/s Selenium (Browsers)
QTP v/s Selenium (Cloud Execution)
• One test per machine
• Windows VMs are costly
• Higher setup and maintenance time
• Multiple & Simultaneous test per machine
• Linux VMs are cheap
• Medium setup and maintenance time
• Cloud testing providers available (like SauceLabs)
QTP v/s Selenium (License Cost)
Customers using BPT
framework end up
paying license cost of
ALM, BPT and UFT
QTP v/s Selenium (Trends)
QTP
Selenium
Google Trends – Web Search
Google Trends – Youtube Search
Why should I migrate to Selenium?
QTP was designed to test one application at a time on a single machine.
Selenium can run code on one machine and test the application on remote machine
Selenium is cloud ready while QTP is not
Same hardware can generate more execution power in Selenium compared to QTP
Selenium supports more browsers and more languages
Selenium multiple language choice makes it easy to integrate into development
environment and do continuous integration
How to plan a Migration
Choose a Language to use with Selenium
Start with just 1 test case to do a Proof of Concept, no frameworks, just plain script
Notice the issues and difference in execution from QTP
Try adding 5-10 more scripts and repeat the same exercise
Don’t look to push a framework at start
Don’t try migrating existing code approach
Benefits
Possible to move testing from QA to Development team as part of Unit Testing
Integration with most Continuous Integration (CI) systems
Lots of language to choose from and easy to integrate test with development language
More control over the framework because of language choices
Possible to implement scalable testing using cloud/grid
Faster execution
Lots of frameworks including most of the Unit Testing frameworks
Challenges
IE driver uses JavaScript simulated XPATH
Scripts working in Firefox and Chrome may not work in IE
No tools like DataTable for data driving test
No Object Repository to store object mappings
No object types in Selenium. Only WebElement and Select
TABLE and other common HTML elements need extra code to work
Different browsers may exhibit different issues on operations
Higher development effort for initial few months
Case Study – QTP to Selenium (IPCM)
Existing Test Suite in QTP with 3 hours execution on single machine
POC Test migration execution time was reduced from 4.5 min (QTP) to
2.5 min (Selenium)
Full migration to a new C# based framework
Time duration: 2.5-3 months
Execution time of Selenium suite with 6 parallel browsers on Same
machine – 20 min (89% faster than QTP)
Abhijit Pendyal, Sales Engineer

1/28/2015
Selenium is an open source test automation
framework that automates web browsers.
Appium is an open source test automation
framework which automates, native, hybrid
and mobile apps.
Android
UiAutomator! Architecture!
WebDriver Interface
iOS UIAutomation!
Powered by Instruments
Selendroid!
For older Android devices
What is Sauce Labs?
We have built the worlds largest grid for
executing Selenium & Appium tests. We’re
open-source at heart contributing to both
projects.
Local Selenium Grid
Hub
Receives test
requests and
relays them to
Desired Node
Nodes
Execute
commands on
browsers as
directed by
the hub
Selenium on Sauce
470+configurations
What is Sauce Connect?
SauceLabsCustomer’sEnvironment
(TLS) saucelabs.com
(HTTP/S) saucelabs.com
SauceConnect
(2
(1
VMsVM
Sauce Labs
API
Sauce
Tunnel
2
1
Sauce
Connect
Application
Under Test
Corporate Firewall
DMZ
Con$nuous'Integra$on''
Typical CI
Usage
Sauce'Labs'Pla4orm'
•  Largest'cloud'for'automated'tes$ng'
•  Test'web'&'mobile'apps'across'470+'pla4orms'
•  Industry'standard'Selenium'WebDriver'protocol
•  Game-changing stability and scale
•  Capture screencasts, logs, test metadata
Se drivers for
On Sauce
Sauce
Connect
Test app
Sauce
Connect
Your script
Thank you
Demo
When should I not choose Selenium?
If your application is not Web or Mobile, you should look at other automation tool like QTP,
TestComplete etc…
If you don’t love Open Source software
If you prefer GUI based tools which allow you to create, manage and execute test cases
Pre-Webinar Q&A
Pre-Webinar Q&A
Can we selenium on Windows based application?
No, but Selenium has lot of language support, so you can always mix it with other solution like Sikuli, AutoIt,
CodeUI
Will Selenium remain Open source? Is it possible that its made a paid tool future
It will always be open source
How much programming knowledge is required? What is the learning curve if I already know QTP?
Requires basic HTML, XPATH, CSS and a supported language knowledge. Not a very steep learning curve
Can we really remove QTP/UFT?
It’s not a question of removing one tool. It’s about looking at cost and implementation benefits of different tools
Does Selenium solve some of the QTP problems?
No, in fact it may add few to your list. But you can you solve more problems while using Selenium than you can
while using QTP
Pre-Webinar Q&A
When making the decision, are you considering the programming skill level of your QA team and the ease of
learning the new language or are you assuming the QA team has the necessary programming skills to begin
with to readily use the tool as QTP is MUCH easier to transition to for non-programmer QA types than
Selenium which requires a knowledge of at least one TRUE programming language (ie C#, Java etc)
Core team develops framework and rest QA team uses it
Selenium being a open source tool, so their is no dedicated support team. In this how can any clients rely on
this tool?
A trade off with any open source solution, Isn’t it?
Sometimes even paid tool support can’t help
(https://connect.microsoft.com/IE/feedback/details/1062093/installation-of-kb3025390-breaks-out-of-process-
javascript-execution-in-ie11)
What are the typical barriers that may prevent an organization to move towards selenium?
Existing investment into Paid solutions like QTP
Lack of developers in the company eco system
What was the most difficult thing to come from QTP to Selenium?
Developing the base framework and coding for features which already existing in QTP
tarun@tarlabs.com
www.tarlabs.com
www.linkedin.com/in/tarunlalwani

More Related Content

More from Sauce Labs

Using Axe to Add Accessibility Checks to Your Existing Selenium Tests
Using Axe to Add Accessibility Checks to Your Existing Selenium TestsUsing Axe to Add Accessibility Checks to Your Existing Selenium Tests
Using Axe to Add Accessibility Checks to Your Existing Selenium TestsSauce Labs
 
How Open Source Helps to Bring Back Product Obsession
How Open Source Helps to Bring Back Product ObsessionHow Open Source Helps to Bring Back Product Obsession
How Open Source Helps to Bring Back Product ObsessionSauce Labs
 
Webinar: A Sneak Peek at Selenium 4 with Simon Stewart
Webinar: A Sneak Peek at Selenium 4 with Simon StewartWebinar: A Sneak Peek at Selenium 4 with Simon Stewart
Webinar: A Sneak Peek at Selenium 4 with Simon StewartSauce Labs
 
[Deu] Test Automatisierung Mit Web Driver.io
[Deu] Test Automatisierung Mit Web Driver.io[Deu] Test Automatisierung Mit Web Driver.io
[Deu] Test Automatisierung Mit Web Driver.ioSauce Labs
 
Accelerating Innovation: Leveraging Open Source to Optimize Your Shift-Left I...
Accelerating Innovation: Leveraging Open Source to Optimize Your Shift-Left I...Accelerating Innovation: Leveraging Open Source to Optimize Your Shift-Left I...
Accelerating Innovation: Leveraging Open Source to Optimize Your Shift-Left I...Sauce Labs
 
Accelerating Your Digital Agenda with Continuous Testing ft. Forrester
Accelerating Your Digital Agenda with Continuous Testing ft. ForresterAccelerating Your Digital Agenda with Continuous Testing ft. Forrester
Accelerating Your Digital Agenda with Continuous Testing ft. ForresterSauce Labs
 
How to Measure Success in Continuous Testing
How to Measure Success in Continuous TestingHow to Measure Success in Continuous Testing
How to Measure Success in Continuous TestingSauce Labs
 
From Zero to 2.7 Million - How Verizon Media Embraced Open Source to Accelera...
From Zero to 2.7 Million - How Verizon Media Embraced Open Source to Accelera...From Zero to 2.7 Million - How Verizon Media Embraced Open Source to Accelera...
From Zero to 2.7 Million - How Verizon Media Embraced Open Source to Accelera...Sauce Labs
 
5 Steps to Jump Start Your Test Automation
5 Steps to Jump Start Your Test Automation5 Steps to Jump Start Your Test Automation
5 Steps to Jump Start Your Test AutomationSauce Labs
 
Sauce Labs Webinar: Rising Importance of Software Testing
Sauce Labs Webinar: Rising Importance of Software TestingSauce Labs Webinar: Rising Importance of Software Testing
Sauce Labs Webinar: Rising Importance of Software TestingSauce Labs
 
BDD With Selenide by Hima Bindu Peteti
BDD With Selenide by Hima Bindu PetetiBDD With Selenide by Hima Bindu Peteti
BDD With Selenide by Hima Bindu PetetiSauce Labs
 
Closer To the Metal - Why and How We Use XCTest and Espresso by Mario Negro P...
Closer To the Metal - Why and How We Use XCTest and Espresso by Mario Negro P...Closer To the Metal - Why and How We Use XCTest and Espresso by Mario Negro P...
Closer To the Metal - Why and How We Use XCTest and Espresso by Mario Negro P...Sauce Labs
 
Continuous Delivery for "Mature" Codebases by Melisa Benua
Continuous Delivery for "Mature" Codebases by Melisa BenuaContinuous Delivery for "Mature" Codebases by Melisa Benua
Continuous Delivery for "Mature" Codebases by Melisa BenuaSauce Labs
 
Building Automation Engineers From Scratch by Jenny Bramble
Building Automation Engineers From Scratch by Jenny BrambleBuilding Automation Engineers From Scratch by Jenny Bramble
Building Automation Engineers From Scratch by Jenny BrambleSauce Labs
 
Automated Testing at The Speed of Headless by Alissa Lydon and Samantha Coffman
Automated Testing at The Speed of Headless by Alissa Lydon and Samantha CoffmanAutomated Testing at The Speed of Headless by Alissa Lydon and Samantha Coffman
Automated Testing at The Speed of Headless by Alissa Lydon and Samantha CoffmanSauce Labs
 
Building The Blocks of Trust in Automation by Sneha Viswalingam
Building The Blocks of Trust in Automation by Sneha ViswalingamBuilding The Blocks of Trust in Automation by Sneha Viswalingam
Building The Blocks of Trust in Automation by Sneha ViswalingamSauce Labs
 
What's that smell? Tidying Up our Test Code by Angie Jones
What's that smell? Tidying Up our Test Code by Angie JonesWhat's that smell? Tidying Up our Test Code by Angie Jones
What's that smell? Tidying Up our Test Code by Angie JonesSauce Labs
 
Wait, That's Not Right by Troy Walsh
Wait, That's Not Right by Troy WalshWait, That's Not Right by Troy Walsh
Wait, That's Not Right by Troy WalshSauce Labs
 
Using Kubernetes to Host Sauce Connect Tunnels by Morgan Vergara
Using Kubernetes to Host Sauce Connect Tunnels by Morgan VergaraUsing Kubernetes to Host Sauce Connect Tunnels by Morgan Vergara
Using Kubernetes to Host Sauce Connect Tunnels by Morgan VergaraSauce Labs
 
The Push From Within - A Journey of Transformation at Walmart Labs by Claude ...
The Push From Within - A Journey of Transformation at Walmart Labs by Claude ...The Push From Within - A Journey of Transformation at Walmart Labs by Claude ...
The Push From Within - A Journey of Transformation at Walmart Labs by Claude ...Sauce Labs
 

More from Sauce Labs (20)

Using Axe to Add Accessibility Checks to Your Existing Selenium Tests
Using Axe to Add Accessibility Checks to Your Existing Selenium TestsUsing Axe to Add Accessibility Checks to Your Existing Selenium Tests
Using Axe to Add Accessibility Checks to Your Existing Selenium Tests
 
How Open Source Helps to Bring Back Product Obsession
How Open Source Helps to Bring Back Product ObsessionHow Open Source Helps to Bring Back Product Obsession
How Open Source Helps to Bring Back Product Obsession
 
Webinar: A Sneak Peek at Selenium 4 with Simon Stewart
Webinar: A Sneak Peek at Selenium 4 with Simon StewartWebinar: A Sneak Peek at Selenium 4 with Simon Stewart
Webinar: A Sneak Peek at Selenium 4 with Simon Stewart
 
[Deu] Test Automatisierung Mit Web Driver.io
[Deu] Test Automatisierung Mit Web Driver.io[Deu] Test Automatisierung Mit Web Driver.io
[Deu] Test Automatisierung Mit Web Driver.io
 
Accelerating Innovation: Leveraging Open Source to Optimize Your Shift-Left I...
Accelerating Innovation: Leveraging Open Source to Optimize Your Shift-Left I...Accelerating Innovation: Leveraging Open Source to Optimize Your Shift-Left I...
Accelerating Innovation: Leveraging Open Source to Optimize Your Shift-Left I...
 
Accelerating Your Digital Agenda with Continuous Testing ft. Forrester
Accelerating Your Digital Agenda with Continuous Testing ft. ForresterAccelerating Your Digital Agenda with Continuous Testing ft. Forrester
Accelerating Your Digital Agenda with Continuous Testing ft. Forrester
 
How to Measure Success in Continuous Testing
How to Measure Success in Continuous TestingHow to Measure Success in Continuous Testing
How to Measure Success in Continuous Testing
 
From Zero to 2.7 Million - How Verizon Media Embraced Open Source to Accelera...
From Zero to 2.7 Million - How Verizon Media Embraced Open Source to Accelera...From Zero to 2.7 Million - How Verizon Media Embraced Open Source to Accelera...
From Zero to 2.7 Million - How Verizon Media Embraced Open Source to Accelera...
 
5 Steps to Jump Start Your Test Automation
5 Steps to Jump Start Your Test Automation5 Steps to Jump Start Your Test Automation
5 Steps to Jump Start Your Test Automation
 
Sauce Labs Webinar: Rising Importance of Software Testing
Sauce Labs Webinar: Rising Importance of Software TestingSauce Labs Webinar: Rising Importance of Software Testing
Sauce Labs Webinar: Rising Importance of Software Testing
 
BDD With Selenide by Hima Bindu Peteti
BDD With Selenide by Hima Bindu PetetiBDD With Selenide by Hima Bindu Peteti
BDD With Selenide by Hima Bindu Peteti
 
Closer To the Metal - Why and How We Use XCTest and Espresso by Mario Negro P...
Closer To the Metal - Why and How We Use XCTest and Espresso by Mario Negro P...Closer To the Metal - Why and How We Use XCTest and Espresso by Mario Negro P...
Closer To the Metal - Why and How We Use XCTest and Espresso by Mario Negro P...
 
Continuous Delivery for "Mature" Codebases by Melisa Benua
Continuous Delivery for "Mature" Codebases by Melisa BenuaContinuous Delivery for "Mature" Codebases by Melisa Benua
Continuous Delivery for "Mature" Codebases by Melisa Benua
 
Building Automation Engineers From Scratch by Jenny Bramble
Building Automation Engineers From Scratch by Jenny BrambleBuilding Automation Engineers From Scratch by Jenny Bramble
Building Automation Engineers From Scratch by Jenny Bramble
 
Automated Testing at The Speed of Headless by Alissa Lydon and Samantha Coffman
Automated Testing at The Speed of Headless by Alissa Lydon and Samantha CoffmanAutomated Testing at The Speed of Headless by Alissa Lydon and Samantha Coffman
Automated Testing at The Speed of Headless by Alissa Lydon and Samantha Coffman
 
Building The Blocks of Trust in Automation by Sneha Viswalingam
Building The Blocks of Trust in Automation by Sneha ViswalingamBuilding The Blocks of Trust in Automation by Sneha Viswalingam
Building The Blocks of Trust in Automation by Sneha Viswalingam
 
What's that smell? Tidying Up our Test Code by Angie Jones
What's that smell? Tidying Up our Test Code by Angie JonesWhat's that smell? Tidying Up our Test Code by Angie Jones
What's that smell? Tidying Up our Test Code by Angie Jones
 
Wait, That's Not Right by Troy Walsh
Wait, That's Not Right by Troy WalshWait, That's Not Right by Troy Walsh
Wait, That's Not Right by Troy Walsh
 
Using Kubernetes to Host Sauce Connect Tunnels by Morgan Vergara
Using Kubernetes to Host Sauce Connect Tunnels by Morgan VergaraUsing Kubernetes to Host Sauce Connect Tunnels by Morgan Vergara
Using Kubernetes to Host Sauce Connect Tunnels by Morgan Vergara
 
The Push From Within - A Journey of Transformation at Walmart Labs by Claude ...
The Push From Within - A Journey of Transformation at Walmart Labs by Claude ...The Push From Within - A Journey of Transformation at Walmart Labs by Claude ...
The Push From Within - A Journey of Transformation at Walmart Labs by Claude ...
 

Recently uploaded

Choreo: Empowering the Future of Enterprise Software Engineering
Choreo: Empowering the Future of Enterprise Software EngineeringChoreo: Empowering the Future of Enterprise Software Engineering
Choreo: Empowering the Future of Enterprise Software EngineeringWSO2
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxRustici Software
 
Quantum Leap in Next-Generation Computing
Quantum Leap in Next-Generation ComputingQuantum Leap in Next-Generation Computing
Quantum Leap in Next-Generation ComputingWSO2
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelDeepika Singh
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusZilliz
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingEdi Saputra
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Orbitshub
 
Navigating Identity and Access Management in the Modern Enterprise
Navigating Identity and Access Management in the Modern EnterpriseNavigating Identity and Access Management in the Modern Enterprise
Navigating Identity and Access Management in the Modern EnterpriseWSO2
 
TEST BANK For Principles of Anatomy and Physiology, 16th Edition by Gerard J....
TEST BANK For Principles of Anatomy and Physiology, 16th Edition by Gerard J....TEST BANK For Principles of Anatomy and Physiology, 16th Edition by Gerard J....
TEST BANK For Principles of Anatomy and Physiology, 16th Edition by Gerard J....rightmanforbloodline
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Jeffrey Haguewood
 
Simplifying Mobile A11y Presentation.pptx
Simplifying Mobile A11y Presentation.pptxSimplifying Mobile A11y Presentation.pptx
Simplifying Mobile A11y Presentation.pptxMarkSteadman7
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfOrbitshub
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistandanishmna97
 
Introduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDMIntroduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDMKumar Satyam
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
Less Is More: Utilizing Ballerina to Architect a Cloud Data Platform
Less Is More: Utilizing Ballerina to Architect a Cloud Data PlatformLess Is More: Utilizing Ballerina to Architect a Cloud Data Platform
Less Is More: Utilizing Ballerina to Architect a Cloud Data PlatformWSO2
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 

Recently uploaded (20)

Choreo: Empowering the Future of Enterprise Software Engineering
Choreo: Empowering the Future of Enterprise Software EngineeringChoreo: Empowering the Future of Enterprise Software Engineering
Choreo: Empowering the Future of Enterprise Software Engineering
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Quantum Leap in Next-Generation Computing
Quantum Leap in Next-Generation ComputingQuantum Leap in Next-Generation Computing
Quantum Leap in Next-Generation Computing
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Navigating Identity and Access Management in the Modern Enterprise
Navigating Identity and Access Management in the Modern EnterpriseNavigating Identity and Access Management in the Modern Enterprise
Navigating Identity and Access Management in the Modern Enterprise
 
TEST BANK For Principles of Anatomy and Physiology, 16th Edition by Gerard J....
TEST BANK For Principles of Anatomy and Physiology, 16th Edition by Gerard J....TEST BANK For Principles of Anatomy and Physiology, 16th Edition by Gerard J....
TEST BANK For Principles of Anatomy and Physiology, 16th Edition by Gerard J....
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Simplifying Mobile A11y Presentation.pptx
Simplifying Mobile A11y Presentation.pptxSimplifying Mobile A11y Presentation.pptx
Simplifying Mobile A11y Presentation.pptx
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Introduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDMIntroduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDM
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Less Is More: Utilizing Ballerina to Architect a Cloud Data Platform
Less Is More: Utilizing Ballerina to Architect a Cloud Data PlatformLess Is More: Utilizing Ballerina to Architect a Cloud Data Platform
Less Is More: Utilizing Ballerina to Architect a Cloud Data Platform
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 

QTP/UFT vs. Selenium

  • 1. QTP to Selenium Migration By Tarun Lalwani
  • 2. About TARLABS© Pvt Ltd Specialize in implementing automation using QTP and Selenium Expertise in QTP to Selenium Migration Other services we offer Data scraping and Crawling Automation using API Custom Process/Task Automation
  • 3. About the Speaker Author of 3 best selling books on QTP QuickTest Professional Unplugged, 2nd Ed QTP/UFT Interview Unplugged, 2nd Ed QTP Descriptive Programming Unplugged 12+ yrs of experience in Testing Automation Director/Founder at TARLABS© Pvt. Ltd. (www.tarlabs.com) Blogger and founder of www.KnowledgeInbox.com
  • 4. Agenda Introduction to QTP and Selenium Differences between QTP and Selenium Migration to Selenium Benefits Challenges Q&A
  • 5. What is QTP/UFT? QTP/UFT is UI + Backend Services test automation tool QTP was earlier developed by Mercury which got acquired by HP in 2006 QTP a.k.a. QuickTest professional is now called as UFT a.k.a. Unified Functional Testing QTP is a desktop based application
  • 6. What is Selenium? Selenium is a Web browser automation API Selenium is a open source project with 108+ contributors Selenium has become one of the preferred choice for Web and mobile automation
  • 7. QTP v/s Selenium (AUT Technologies)
  • 8. QTP v/s Selenium (Operating Systems)
  • 9. QTP v/s Selenium (Languages)
  • 10. QTP v/s Selenium (Browsers)
  • 11. QTP v/s Selenium (Cloud Execution) • One test per machine • Windows VMs are costly • Higher setup and maintenance time • Multiple & Simultaneous test per machine • Linux VMs are cheap • Medium setup and maintenance time • Cloud testing providers available (like SauceLabs)
  • 12. QTP v/s Selenium (License Cost) Customers using BPT framework end up paying license cost of ALM, BPT and UFT
  • 13. QTP v/s Selenium (Trends) QTP Selenium Google Trends – Web Search Google Trends – Youtube Search
  • 14. Why should I migrate to Selenium? QTP was designed to test one application at a time on a single machine. Selenium can run code on one machine and test the application on remote machine Selenium is cloud ready while QTP is not Same hardware can generate more execution power in Selenium compared to QTP Selenium supports more browsers and more languages Selenium multiple language choice makes it easy to integrate into development environment and do continuous integration
  • 15. How to plan a Migration Choose a Language to use with Selenium Start with just 1 test case to do a Proof of Concept, no frameworks, just plain script Notice the issues and difference in execution from QTP Try adding 5-10 more scripts and repeat the same exercise Don’t look to push a framework at start Don’t try migrating existing code approach
  • 16. Benefits Possible to move testing from QA to Development team as part of Unit Testing Integration with most Continuous Integration (CI) systems Lots of language to choose from and easy to integrate test with development language More control over the framework because of language choices Possible to implement scalable testing using cloud/grid Faster execution Lots of frameworks including most of the Unit Testing frameworks
  • 17. Challenges IE driver uses JavaScript simulated XPATH Scripts working in Firefox and Chrome may not work in IE No tools like DataTable for data driving test No Object Repository to store object mappings No object types in Selenium. Only WebElement and Select TABLE and other common HTML elements need extra code to work Different browsers may exhibit different issues on operations Higher development effort for initial few months
  • 18. Case Study – QTP to Selenium (IPCM) Existing Test Suite in QTP with 3 hours execution on single machine POC Test migration execution time was reduced from 4.5 min (QTP) to 2.5 min (Selenium) Full migration to a new C# based framework Time duration: 2.5-3 months Execution time of Selenium suite with 6 parallel browsers on Same machine – 20 min (89% faster than QTP)
  • 19. Abhijit Pendyal, Sales Engineer 1/28/2015
  • 20. Selenium is an open source test automation framework that automates web browsers.
  • 21. Appium is an open source test automation framework which automates, native, hybrid and mobile apps.
  • 22. Android UiAutomator! Architecture! WebDriver Interface iOS UIAutomation! Powered by Instruments Selendroid! For older Android devices
  • 23. What is Sauce Labs?
  • 24. We have built the worlds largest grid for executing Selenium & Appium tests. We’re open-source at heart contributing to both projects.
  • 25. Local Selenium Grid Hub Receives test requests and relays them to Desired Node Nodes Execute commands on browsers as directed by the hub
  • 28. What is Sauce Connect?
  • 29. SauceLabsCustomer’sEnvironment (TLS) saucelabs.com (HTTP/S) saucelabs.com SauceConnect (2 (1 VMsVM Sauce Labs API Sauce Tunnel 2 1 Sauce Connect Application Under Test Corporate Firewall DMZ
  • 31. Sauce'Labs'Pla4orm' •  Largest'cloud'for'automated'tes$ng' •  Test'web'&'mobile'apps'across'470+'pla4orms' •  Industry'standard'Selenium'WebDriver'protocol •  Game-changing stability and scale •  Capture screencasts, logs, test metadata Se drivers for On Sauce Sauce Connect Test app Sauce Connect Your script
  • 33. Demo
  • 34. When should I not choose Selenium? If your application is not Web or Mobile, you should look at other automation tool like QTP, TestComplete etc… If you don’t love Open Source software If you prefer GUI based tools which allow you to create, manage and execute test cases
  • 36. Pre-Webinar Q&A Can we selenium on Windows based application? No, but Selenium has lot of language support, so you can always mix it with other solution like Sikuli, AutoIt, CodeUI Will Selenium remain Open source? Is it possible that its made a paid tool future It will always be open source How much programming knowledge is required? What is the learning curve if I already know QTP? Requires basic HTML, XPATH, CSS and a supported language knowledge. Not a very steep learning curve Can we really remove QTP/UFT? It’s not a question of removing one tool. It’s about looking at cost and implementation benefits of different tools Does Selenium solve some of the QTP problems? No, in fact it may add few to your list. But you can you solve more problems while using Selenium than you can while using QTP
  • 37. Pre-Webinar Q&A When making the decision, are you considering the programming skill level of your QA team and the ease of learning the new language or are you assuming the QA team has the necessary programming skills to begin with to readily use the tool as QTP is MUCH easier to transition to for non-programmer QA types than Selenium which requires a knowledge of at least one TRUE programming language (ie C#, Java etc) Core team develops framework and rest QA team uses it Selenium being a open source tool, so their is no dedicated support team. In this how can any clients rely on this tool? A trade off with any open source solution, Isn’t it? Sometimes even paid tool support can’t help (https://connect.microsoft.com/IE/feedback/details/1062093/installation-of-kb3025390-breaks-out-of-process- javascript-execution-in-ie11) What are the typical barriers that may prevent an organization to move towards selenium? Existing investment into Paid solutions like QTP Lack of developers in the company eco system What was the most difficult thing to come from QTP to Selenium? Developing the base framework and coding for features which already existing in QTP