Tuesday, December 6, 2011

14 Good reasons for choosing QTP for test Automation

Why should I choose QTP for test automation? This is one question that keeps popping out from a lot of my clients. I thought of putting together a few points in favor of my favorite test automation tool - QuickTest Professional. Here we go…

1) Test Automation framework : From a test framework perspective QTP is one tool that can be used in any type of framework – Modular (Record & Playback) driven framework, Data driven (Data tables) Framework (Wow! I love the built in data driver functions and the data driving capabilities of QTP, simply amazing!!!), Keyword driven (Keyword view, function libraries etc) framework or any other custom framework. It is very easy to build a framework using QTP, whatever the type of framework is.

2) Microsoft Object Model (MOM) compatibility: QTP can easy identify and play around with Microsoft office products particularly excel (Reading, writing, modifying). We can create an excel or a word or an outlook file pretty easily from within QTP. No other automation tool can do these things that QuickTest professional can do.

3) Record and Playback: It is pretty easy even for a non-programmer to record scripts / test cases, customize / modify and play back the tests. Also the tool lets the user record the scripts in three different recording modes as per the requirement – Normal, Analog and Low level. Unlike other tools that records every mouse / keyboard events / any java script event on the application, QTP – Normal recording mode knows what to record and what not to. The best part is, if you want to record the above said events it can be achieved through the other two recording modes in QTP.

4) Object repository and Object identification process: The Object repository - again available in two modes (Shared-For common application objects and Local-For script specific application objects) is personally the best thing I like about QTP. Unlike TestComplete (where a complex object mapping concept is followed), QTP stores the standard and non standard properties of the various objects of the AUT (Application under test). At the time of execution, QTP knows exactly where the objects are and how to reach those in a jiffy- which increases the efficiency of test execution. The smart object identification process in QTP is definitely a feather on the hat. There is also an ‘object spy’ tool that help you chose the property of an object you can use to automate.

5) Support for RegEx: RegEx or regular expression provides a concise and flexible means for "matching" (specifying and recognizing) strings of text, such as particular characters, words, or patterns of characters. RegeEx are very useful while automating dynamic content on web pages and QuickTest professional supports Regular Expressions. The Smart Regular Expression list in QTP provides syntax hints that make it easier than ever to insert regular expressions into the test steps. It also comes with a tool for validating Regular Expressions, which will ensure that whatever regular expression that we built serves the need.

6) In-built function libraries: Quick test professional comes with a huge list of in-built functions (VBScript/QTP) for data manipulation, math, date & time, conversion, string, join and many more functions are available. This ensures that we don’t have to re-invent the wheel, just use it.

7) Error - Root cause analysis & Recovery: As a tester, I would look for 2 primary things in any application 1- Proper and appropriate error messages 2- Good log reports. Fortunately, QuickTest professional comes with both. Apart from the logs and error messages, we can set break points and find out the values stored in variables at runtime through the full-featured Script editor and script debugging features. The recovery scenario manager helps you to recover from any unforeseen events like object state not identified, pop-ups, a statement failure, application crash etc.

8) Maintenance & Re-usability: The idea behind any test automation framework is either Maintainability or Re-usability or both. QuickTest professional makes it even easier to maintain the Test Scripts, Functions, objects and everything else built using QTP.

9) Supported environments: Though the tool supports only Windows platform, it can be used for automation in a big list of application platforms but not limited to Java, Oracle, SAP, .NET, Web Forms, Siebel, PeopleSoft, Web services, Main frame (Terminal Emulator), Stingray, Delphi, WPF, Flex, Windows mobiles and not to forget the support for most popular browsers like Internet explorer and fire fox. From the forums, I also understand that they are working on support for Google chrome browser. It also supports Rich Internet Applications (RIA) like Ajax, Flex, Silverlight etc.

10) Support for different testing requirements: QuickTest professional supports any level of testing (Unit, Integration, System, UAT), regression testing, web application testing, windows application testing, mobile application testing, database testing, load testing etc. Please read the complete article on QTP supported testing types by clicking on the link.

11) Integration with other tools: It is easy to integrate QuickTest professional with most of the HP testing tools including but not limited to Quality center tool which is a test management tool (Now renamed as ALM – Application lifecycle management tool, which can take care of managing project stuff like releases, cycles, requirement, test planning, test resource management, defect management etc), WinRunner – Another functional testing tool from HP, LoadRunner – Load testing tool from HP etc. You can have all the QTP test resources saved in a single Quality Center repository and execute the tests directly from Quality center. Please read this article to know how – Integrating QTP with QC.

12) Results viewer: The test run Results viewer furnishes with an executive summary page with data specific to the test , pie charts and statistics for both the current and previous runs, a quick link to the previous run results, and more. It is pretty easy to customize or the set of panes that we can show, hide, move, dock. The best part is – the Run results viewer can be installed as a standalone application. This enables us to share the results of the tests with business analysts and developers who do not work with QuickTest pro.

13) All other features: Apart from the key features of QuickTest professional we saw above, it also has a whole lot of other functionalities like Checkpoints – are used to verify the expected output of a test and decide on result of the test, Parameterization – we can pass parameters to your tests, which will account to reusability of tests, Reporter – used to report a pass/fail explicitly through statements, Actions - help divide the test into logical units or Business Processes, Active screen – Lets us script even if the AUT (Application under test) is unavailable.

14) Product support: 24/7 phone support is available. Apart from that, you can find solution to any tool specific issues on different forums from HP, http://QTPhelp.com, http://facebook.com/QTPhelp and various other forums. I never faced a situation where I was struck up with an issue for 2-3 days. You will find everything you need at HP site by signing up for a HP learner’s id. For more information on getting an id from HP read my earlier article on Guide to HP certification.

Also read : Advantages and disadvantages of QTP

1 comment:

  1. Good , as well please advise the advantage of using QTP11.5 over the older versions also.

    ReplyDelete

Please leave your comment here...