As open source tools such as Selenium have begun to be accepted and incorporated into the enterprise testing landscape, proprietary tools like HP’s QTP/UFT have begun to be transitioned out in many cases. This webinar talks about how we generated an 80% execution time savings by migrating client’s test suite from QTP to Selenium.
The webinar will also answer following questions:
- How is Selenium different from QTP?
- Why do I need to migrate to Selenium?
- What are the advantages and disadvantages of the migration?
- How do I plan the migration?
- What challenges will I face during Migration?
Webinar recording link: https://saucelabsreview.webex.com/saucelabsreview/lsr.php?RCID=98d2e2e43a8641b3a544f0cdda976715
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
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)
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