Differences between QTP and Selenium
Differences between QTP and Selenium
In this tutorial, let’s learn the differences between QTP and Selenium.
QTP
QTP stands for Quick Test Professional. It is an automated functional and regression testing tool originally developed by Mercury Interactive, later acquired by HP (Hewlett-Packard) in 2006, and now maintained by Micro Focus under the name UFT (Unified Functional Testing).
Selenium
Selenium is an API that automates browsers. Selenium Testing Suite is comprised of many components, like
- Selenium IDE
- Remote Control
- Webdriver
- Selenium Grid
Selenium IDE is a browser plugin for recording and playing back relatively simple test cases and test suites. The plugin supports various browsers, such as Firefox, Chrome, and Microsoft Edge.
Selenium Remote Control(Selenium 1) allowed users to use programming languages to create complex tests.
WebDriver allows the test scripts to communicate directly to the web browser, thereby controlling it from the OS level. Selenium RC and WebDriver were merged to form Selenium 2.
Selenium Grid executes parallel and distributed tests across different browsers and operating systems on multiple node machines.
QTP vs Selenium
Selenium has more advantages than QTP in terms of costs and flexibility. Some of the differences between the two testing tools are as follows:
QTP |
Selenium |
QTP is a commercial testing tool. We need to buy a license to run the tests. A commercial tool with a huge license cost | Selenium is open-source and free to use. |
QTP has limited plugins. QTP is not an open-source tool. | Selenium is open-source. The tool source code is available. We can extend the tool functionality. |
QTP can only run on the Windows platform. | Selenium supports various operating systems like Windows, Linux, and MacOS. |
QTP allows running tests sequentially. | Selenium allows you to run tests in parallel and distributed mode using multiple machines. |
Language Support VB Scripting | Language Support Java, C#, Ruby, Python, etc., |
QTP doesn’t support remote execution of tests. | Selenium supports remote execution of tests using Selenium Grid. |