Wednesday 29 May 2013

QTP at Glance

Leave a Comment


QTP at Glance




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
  • 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.)
You can learn the following:

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 controlsweb 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





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.

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.






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.




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 QTP’s Record and Playbackmechanism.
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 QTP’s Object Repository.
There are three recording modes available in QTP:
·         Normal Recording
·         Analog Recording
·         Low Level Recording



Object Repository:

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.
No screenshots were saved for this Information step.

Information Step 8:      
No screenshots were saved for this Information step.

Information Step 9:    
No screenshots were saved for this Information step.



-->

0 comments:

Post a Comment

Wednesday 29 May 2013

QTP at Glance



QTP at Glance




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
  • 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.)
You can learn the following:

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 controlsweb 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





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.

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.






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.




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 QTP’s Record and Playbackmechanism.
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 QTP’s Object Repository.
There are three recording modes available in QTP:
·         Normal Recording
·         Analog Recording
·         Low Level Recording



Object Repository:

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.
No screenshots were saved for this Information step.

Information Step 8:      
No screenshots were saved for this Information step.

Information Step 9:    
No screenshots were saved for this Information step.



-->

No comments:

Post a Comment