Anda di halaman 1dari 8

GAReddy@OneTestingCenter.

com

www.OneTestingCenter.com

QTP at Glance
GAReddy OneTestingCenter

www.OneTestingCenter.com www.GAReddy.Blogspot.com

QTP is a UI automation tool designed for Windows and Web-based and enterprise applications testing. It works by identifying the objects in the application UI or a web page and performing the desired operations on them (like mouse clicks or keyboard events); it can also be used to capture object properties like object name or handler ID , height, width etc. QTP is also known as UFT(Unified Functional Testing) The latest version of QTP / UFT is 11.51
o o

One of the most important topics in QTP is Object Identification. QTP uses VBScript as scripting language to specify the test procedure and to manipulate the objects and controls of the application under test (AUT) Though QTP is usually used for Functional / "UI Based" Test Case Automation, it can easily handle "Non-UI" based Test Cases. (Example: API testing, Database testing, etc.)

QTP is also known as UFT(Unified Functional Testing)

GAReddy@OneTestingCenter.com

www.OneTestingCenter.com

The latest version of QTP / UFT is 11.51 One of the most important topics in QTP is Object Identification. QTP uses VBScript as scripting language to specify the test procedure and to manipulate the objects and controls of the application under test (AUT) Though QTP is usually used for Functional / UI Based Test Case Automation, it can easily handle Non-UI based Test Cases. (Example: API testing, Database testing, etc.) Some of the key features of QTP are: Introduction to QTP o Was a Mercury Interactive Test tool o Now, HP - Automation Test Tool o The Latest version of QTP is called as UFT UnifiedFunctional Testing. o Functional test tool o Regression test tool o Supports Stand alone, Web based and Client Server Apps o Supports One tier / Two tier / Three tier / N-tier Apps o Designed to provide a robust application verification o Simple and easy to use and implement o As simple as a Tape recorder o Best at even record and play back o Can be utilized at advanced level (coding, objects creation) o Supports COM/DCOM/DOM/AOM o Different Environments supported (Java, .NET, SAP) o Add ins available for other environment supports o Quick Test Professional popularly called as QTP, originally from a company known as Mercury Interactive, which was acquired by Hewlett Packard (HP) in 2006 and is now HPs QuickTest Professional o The Latest version of QTP is called as UFT Unified Functional Testing. o QTP is primarily used for functional and regression automated testing. o QTP can automate user actions on a window; web or client based computer application and tests the same actions for different users, and different data sets on various windows operating systems and on

GAReddy@OneTestingCenter.com

www.OneTestingCenter.com

different browsers. o Its an easy tool to lean and implement automation testing. o Automation using QTP saves lot of time, efforts, resources, and budget. o It is as simple as a Tape recorder to record and playback test scripts o Quick Test Professional can be utilized at advance level coding and object creation and also support COM/DCOM/DOM/AOM. o QTP supports different environments like Java, .Net, SAP, Web, Windows and so on.

Information Steps
QTP Add-in :
Add-ins / Plug-ins are used to make recording more acceptable to a specific application. We use web plug-ins to automate test cases with respect to web applications. QTP has default plug-ins for ActiveX controls, web applications and VB objects. Plug-ins for other objects, such as Microsoft .NET objects, JAVA, SAP, Oracle applications are also available. Multimedia plug-ins and a plug-in for Windows Mobile are also available. In general, QTP plug-in is available to identify corresponding application and thus support that application recording and script design.

GAReddy@OneTestingCenter.com

www.OneTestingCenter.com

QTP Scripting Views : QTP has two views to design test scripts

Keyword View Expert View

Keyword View : Explains the AUT Objects (with their Logical names) Explains the Operations performed on the AUT Objects Explains the Values set for the AUT Objects Describes the Documentation for each of the operations made Keyword view Keyword View lets users create and view the steps of a test in a modular, table format. Each row in the table represents a step that can be modified. The Keyword View can also contain any of the following columns: Item, Operation, Value, Assignment, Comment, and Documentation. For every step in the Keyword View, HP QuickTest Professional displays a corresponding line of script based on the row and column value. Users can add, delete or modify steps at any point.

GAReddy@OneTestingCenter.com

www.OneTestingCenter.com

In Keyword View, users can also view properties for items such as checkpoints, output values, and actions, use conditional and loop statements, and insert breakpoints to assist in debugging a test.

GAReddy@OneTestingCenter.com

www.OneTestingCenter.com

Expert View: Provides greater efficiency when working / coding test components. Coding based window Explains code based implementations on the AUT - Objects Easy to implement advanced programming Allows to create effective functions/actions/code modules Expert view In Expert View, HP QuickTest Professional lets users display and edit a test's source code using VBScript. Designed for more advanced users, users can edit all test actions except for the root Global action, and changes are synchronized with the Keyword View. VBScript code can be designed directly in Expert View.

GAReddy@OneTestingCenter.com

www.OneTestingCenter.com

Active Screen : Provides Snapshots of AUT It captures and stores layers/active screens while recording Enables to parameterize object values Insert checkpoints, methods, and output values for any object in the page, even if your application is not available

Record and Playback : Initial development of automated tests with QTP is usually done by record-and-playback. User actions are captured via QTPs Record and Playback mechanism. User actions/ tests are recorded into Actions, a kind of subroutine, as VBScript commands. All manipulated objects that QTP recognizes are also added to the QTPs Object

GAReddy@OneTestingCenter.com

www.OneTestingCenter.com

Repository. There are three recording modes available in QTP:


Normal Recording Analog Recording Low Level Recording

OR Object Repository O Object Repository is the storage place where QTP identifies, captures and stores the AUT Objects in the form of objects logical names and physical descriptions. O Objects are identified and stored by QTP in OR with respect to their properties (like..name, class, type) O QTP helps testers (users) to make use of these objects / Test Object properties to identify objects on AUT during runtime to identify and to work with them using METHODS (like..Activate, Click, Set, Type) O Note: Object Object is the one exists Once recorded, the scripts are editable in either Keyword View or Expert View. After clicking on the playback button all these actions will be played back on the application; During playback, QTP attempts to identify and perform operations on the same objects, again using stored objects information from its Object Repository.

Visit @ For Documents, Presentations, PDFs, Videos, Scripts and much more .. QTP / LR LoadRunner / QC Quality Center Trainings available

www.OneTestingCenter.com

www.OneTestingCenter.com www.GAReddy.Blogspot.com