Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

QTP vs Selenium - Compare [closed]

I have an application/product which is created using .net technologies. This product has a GUI, which connects to a DB using a Web API (SOAP on an application server). Majority of the tests are executed for the values in the DB, while the others may fall into Usability, Performance, etc. As such, 60-70% of the tests to be executed are to verify if the values in the DB are correctly shown on the GUI, while the others test if the GUI is working as desired in the requirement specifications.

The other aspect to the testing will also be testing the backend Application server interface with both the DB and the GUI. As this will enable us to determine, if the App Server is sending bad values to the GUI or is it the DB which has bad values!

The product UI does not change much, except to add new features in the form of additional dropdown menu items and additional pages for these menu items.

Considering the above, which framework would be more suitable? QTP or Selenium or some other Commercial/Open Source tool?

(Cost is not a major concern, and neither is browser compatibility or OS. The system installs on a Windows Server, and DB is compatible.)

like image 682
gagneet Avatar asked Jan 23 '11 14:01

gagneet


People also ask

What is difference between QTP and Selenium?

Key Differences between QTP and SeleniumQTP can be used to test web, desktop applications, and client-server But Selenium is used to test only web applications. QTP UFT supports only code written in VB script. On the other hand, Selenium supports many languages, like PHP, Java, Ruby, Python, etc.

Which is best Selenium or UFT?

UFT is a more powerful tool as compared to Selenium, but because of its higher license cost, many organisations do not adopt this tool for automation. Moreover, the maximum number of tools which could be integrated with UFT are paid as well, reducing its demand and popularity.

Why testers should opt for Selenium and not QTP?

With QTP, it supports VB scripting language whereas Selenium offers more power and flexibility. Therefore, those using Java, . net, Python and Ruby can use Selenium since it accommodates all these scripting languages.

What is QTP called now?

QTP – History and Evolution HP Quick Test Professional was originally owned by Mercury Interactive and it was acquired by HP. Its original name was Astra Quick Test and later named as Quick Test Professional but the latest version is known as Unified Functional Tester (UFT).


2 Answers

We have an acceptance testing 'framework' built around Selenium to test our app which has a flex UI that talks to a java + db back-end.

We could easily integrate Selenium into our existing testing and continuous integration infrastructure because we can write our scripts in java and use junit to drive the testing. These tests are also written and maintained by developers. We also use dbunit to set up the database before each test.

Our test department however decided to go with QTP. They were shown our infrastructure built around Selenium but they found it hard to understand. I know they have a full-time dedicated person to write the tests and maintain them.

Since I do not know your exact situation I can only suggest you to consider the following:

  • Who is writing and maintaining the tests?
  • Are the suites going to be part of a larger infrastructure?

Selenium is an excellent choice if...

  • you have developers responsible for writing and maintaining the tests
  • you need to have these tests as part of a larger infrastructure
  • you are pretty sure you do not need to do much testing outside of the browser
  • you think you might want to test other browsers and other platforms besides Windows
  • you want something free

QTP might be a good choice if...

  • you have less code-savy people writing and maintaining tests (though I am not sure if Selenium IDE is hard to learn for non-coders)
  • if you need significant testing outside of the browser

This article might also help you.

I think it is obvious which one I prefer, but you need to decide what works best for your situation.

like image 166
c_maker Avatar answered Sep 26 '22 11:09

c_maker


I think your best choice will be HP new solution for GUI and non GUI testing. The new solution is a new integration with 2 products - QTP & ServiceTest.

  1. QTP is a known GUI automation solution with enhanced capabilities that help organizations to automate their application in the GUI layer.
  2. ServiceTest is quite new solution that can automate web services & other non GUI interfaces.

The integration between those 2 give the users one solution to automate cross layers applications as well as integration testing between different applications.

You can find more information at HP site.

like image 33
roy Avatar answered Sep 22 '22 11:09

roy