QTP VS Selenium - QA Blog


My company was using QTP to do the test automation for the past 3-4 years. But we are now moving to cucumber and selenium Webdriver. This blog is about why we are moving away from QTP in my company.

One of the main reason that we move from QTP is that it is a reactive approach of writing test automation. The product is finished and the tester starts writing the automation test. Only the tester writes the automation. With cucumber and selenium , writing automation test is a joint effort between the developers and the testers. The testers write the test cases in cucumber scenario format, then the developers write the steps definition. This way, everyone is contributing and everyone is reviewing the test cases.

In our case, our QTP automation tester left the company and the QTP vbs code is hard to maintain and to read compared to cucumber and ruby code. I have tried to read QTP code to try to convert the test to cucumber and it is just taking quite a lot of time to just understand what the scripts do. With cucumber, selenium webdriver reading what the tests do only take 1-2 minutes as cucumber scenarios describe the behaviour of the system. With cucumber and selenium, everyone is contributing to the automation code and therefore knowledge is being transferred all the time.


QTP is very costly while cucumber, selenium webdriver is free.

Is there any version control in QTP? In our case, we put the automation test code (cucumber, selenium webdriver) as part of the system source code so the automation code is sourced controled.

We can develop the automation code in Windows, Ubuntu, Mac or in any other platforms that you like. This is another topic, but in our case everyone is moving away from windows as well especially the developers which is why QTP is abit useless as you can use Windows only.

Continous Integration is also an ease. We use hudson to automatically run the automation test whenever there is a new build so the developers can get an instant feedback of their changes. QTP just can't do this.

Selenium webdriver can do alot more tests than the previous version (selenium rc) including java script requests and ajax test.

Getting a support answer is very fast in the open source community. Also, you have access to the source code. Since it is a joint effort to write the automation test, we are able to solve alot of issues together.

Other IT departments in our company are already ditching QTP in favor of cucumber and selenium and we never want to go back to QTP after this.

I believe QTP have other benefits as well that I do not know. However, in our case using cucumber and selenium webdriver is more relevant and better than using QTP.

Source: QA Blog - Bagas

Comments

  1. Though i am a QTP Fan loved this post by Bagas

    ReplyDelete
  2. Anonymous27/1/11

    Looking for a automation tester with selenium in menlo park/CA. Please send resume at tervinder@betasoftsystems.com.

    ReplyDelete
  3. Hi Jack,

    Thanks for your message. Please email me at aditya_kalra@ymail.com and we can discuss further.

    Best Regards,
    Ady

    ReplyDelete
  4. Shreejit28/5/15

    CI is very well possible with qtp, cannot agree on that
    Additionally i believe it is the designer/person who can make things work in the right fashion rather than qtp or selenium. Agree with the fact that the world is aggressively moving towards Selenium or rather its going a bit beyond selenium towards GUI less / API based automation frameworks

    ReplyDelete
  5. @Shreejit that should be the strategy automate anything that can be done in the non gui mode and then target the gui :)

    ReplyDelete
  6. Thanks for sharing this post.Keep sharing more like this.

    Guest posting sites
    Education

    ReplyDelete
  7. Thanks for your interesting ideas.the information's in this blog is very much useful
    for me to improve my knowledge.
    Android Training in Kelambakkam
    Android Training in Vadapalani
    Android Training in Mogappair
    android training in bangalore with placement

    ReplyDelete
  8. Very informative post. Social media will give the loads of opportunities to grow your business and helps you attract the targeted audiences (both B2B and B2C). Sharing more infographic content on social media will give more visibility.Thanks for sharing...keep update...
    lovely page
    Ai & Artificial Intelligence Course in Chennai
    PHP Training in Chennai
    Ethical Hacking Course in Chennai Blue Prism Training in Chennai
    UiPath Training in Chennai

    ReplyDelete
  9. click here to investigate replica wallets see post replica louis vuitton browse around these guys best replica designer bags

    ReplyDelete

Post a Comment

Popular posts from this blog

Software Testing @ Microsoft

Trim / Remove spaces in Xpath?