Selenium vs QTP/UFT

How to Choose the Right Selenium Tool for Your Need

Tool

Why Choose?

Selenium IDE
  • To learn about concepts on automated testing and Selenium, including:
  • Selenese commands such as type, open, clickAndWait, assert, verify, etc.
  • Locators such as id, name, xpath, css selector, etc.
  • Executing customized JavaScript code using runScript
  • Exporting test cases in various formats.
  • To create tests with little or no prior knowledge in programming.
  • To create simple test cases and test suites that you can export later to RC or WebDriver.
  • To test a web application against Firefox only.
Selenium RC
  • To design a test using a more expressive language than Selenese
  • To run your test against different browsers (except HtmlUnit) on different operating systems.
  • To deploy your tests across multiple environments using Selenium Grid.
  • To test your application against a new browser that supports JavaScript.
  • To test web applications with complex AJAX-based scenarios.
WebDriver
  • To use a certain programming language in designing your test case.
  • To test applications that are rich in AJAX-based functionalities.
  • To execute tests on the HtmlUnit browser.
  • To create customized test results.
Selenium Grid
  • To run your Selenium RC scripts in multiple browsers and operating systems simultaneously.
  • To run a huge test suite, that needs to complete in the soonest time possible.

A Comparison between Selenium and QTP(now UFT)

Quick Test Professional(QTP) is a proprietary automated testing tool previously owned by the company Mercury Interactive before it was acquired by Hewlett-Packard in 2006. The Selenium Tool Suite has many advantages over  QTP as detailed below –

Advantages of Selenium over QTP

Selenium

QTP

Open source, free to use, and free of charge. Commercial.
Highly extensible Limited add-ons
Can run tests across different browsers Can only run tests in Firefox, Internet Explorer and Chrome
Supports various operating systems Can only be used in Windows
Supports mobile devices QTP Supports Mobile app test automation (iOS & Android) using HP solution called – HP Mobile Center
Can execute tests while the browser is minimized Needs to have the application under test to be visible on the desktop
Can execute tests in parallel. Can only execute in parallel but using Quality Center which is again a paid product.

Advantages of QTP over Selenium

QTP

Selenium

Can test both web and desktop applications Can only test web applications
Comes with a built-in object repository Has no built-in object repository
Automates faster than Selenium because it is a fully featured IDE. Automates at a slower rate because it does not have a native IDE and only third party IDE can be used for development
Data-driven testing is easier to perform because it has built-in global and local data tables. Data-driven testing is more cumbersome since you have to rely on the programming language’s capabilities for setting values for your test data
Can access controls within the browser(such as the Favorites bar, Address bar, Back and Forward buttons, etc.) Cannot access elements outside of the web application under test
Provides professional customer support No official user support is being offered.
Has native capability to export test data into external formats Has no native capability to export runtime data onto external formats
Parameterization Support is built Parameterization can be done via programming but is difficult to implement.
Test Reports are generated automatically No native support to generate test /bug reports.

 

Though clearly, QTP has more advanced capabilities, Selenium outweighs QTP in three main areas:

  • Cost(because Selenium is completely free)
  • Flexibility(because of a number of programming languages, browsers, and platforms it can support)
  • Parallel testing(something that QTP is capable of but only with use of Quality Center)
  • Facebook
  • Twitter
  • Google+
  • Linkedin
  • Pinterest

Leave a Comment

Your email address will not be published. Required fields are marked *

It is main inner container footer text
Accessibility