Showing posts with label Object Repository. Show all posts
Showing posts with label Object Repository. Show all posts

Tuesday 7 January 2014

HP QTP : What is the difference between functions and actions in QTP




               QTP Action
                 Function
  • Action is a QTP concept and it can use QTP features like own Object Repository, Data Table, checkpoints etc.
  • Actions help make your Test modular and increase reuse. Example: You can divide your script into Actions based on functionality like Login, Logout etc.
  • It is slow in execution.
  • Functions is a VB Script programming concept and do not have their own Object Repository or Data Table. Functions help in re-use of your code. Ex:  You can create a Function in your script to concatenate two strings.
  • We can’t use checkpoints in functions, instead of checkpoints we can use validation points (Loops and Conditional statements)
  • Functions are faster in execution than Actions

Tuesday 19 November 2013

What is Object Repository & their types in HP Quick Test Professional

Object Repository is a centralized place for storing Properties of objects available in AUT (Application Under Test). It is a test structure location where QuickTest stores object information/properties captured during recording. It acts as interface between test script and application in order to indentify the objects during script execution. The Object Repository can be used to:
·        Add a new object in the repository.
·        Rename logical name for readability.
·        Configure the object properties used to identify an object.
The Objects stored in the Object repository (OR) are called as Test Objects. Actually it is just equivalent to the corresponding actual object in AUT.

Object: It is a graphic user element in an application. It contains structure and properties. In QTP windows, WebPages, button, edit boxes, check boxes etc are termed as software object