Geethu Gopinath 1000744763 QTP An automated testing software designed for testing various software applications and environments-provides functional and regression testing automation for software applications. Part of the Mercury Interactive now acquired by HP Quality Center tool suite. Supports keyword and scripting interfaces and features of graphical user interface. Uses the Visual Basic Scripting Edition (VBScript) scripting language to specify a test procedure, and to manipulate the objects and controls of the application under test. Provides two views and ways to modify a test script- both contains same data arranged in different formats. Keyword View- actions are generated in tabular format similar to manual test cases. Expert View- actions are generated in VBScripting. Active screen- provides screen shots. Generating Tests Recording Keyword driven methodology Descriptive Programming Keyword view Expert view Sample VBScript Systemutil.Run “C:\Program Files\Mercury Interactive\QuickTest Professional\samples\flight\app\flight4a.exe” Dialog(“Login”).Activate Dialog(“Login”).WinEdit(“Agent Name:”).Set “abcd” Dialog(“Login”).WinEdit(“Password:”).SetSecure “4c639147ce17debfa9a680adf3fb0a1f7b766d39″ Dialog(“Login”).WinButton(“OK”).Click Window(“Flight Reservation”).Close Sample Flight Reservation Application Object Repository Stores the properties and values of the objects. While playback of scripts ,qtp refers to the object repository for identifying the objects. Two types-1.Local repository-created for every action automatically during recording which cannot be shared among tests. 2.Shared repository- creates shared repository by adding objects which can be shared among number of tests if the tests have same properties, can be used to save time. Recording & Running Recording 1. It will generate the script related to the user actions. 2.It will then store the required and related information in the OR. Running 1. It will read the instruction and understand what action is performed on which object. 2.It searches the OR for the required information. 3.If the information is available ,it will try to identify the object and then perform the action on it. Modes Of Recording Normal mode- recording based on properties of gui. Analog mode- recording based on mouse movements, clicks, keyboard strokes. Low level- combination of above two, mainly for recording custom objects, it records some operations on non-supported environments apart from normal operations. Object Spy A component in qtp that helps to list the test object and runtime properties of the gui. lists the methods and syntax that could be implemented on that particular object. Checkpoints Used to verify that an application under test functions as expected ,i.e, compares the current values for specified properties with the expected values of those properties. Two types- built in & user defined Exception Handling manages exception handling using recovery scenarios to continue running tests if an unexpected failure occurs Drawbacks QTP runs only in Windows environments. Cannot test with all browser types and versions such as Safari, Opera. High installation cost. References http://qtp.blogspot.com http://en.wikipedia.org/wiki/HP_QuickTest_Professio nal http://www.slideshare.net/sasiriya/qtp-slidespresentation-602173 THANK YOU
© Copyright 2024