Step Generator in QTP

Step Generator is a feature and Library of functions which is used for generating the Recordable or Non-Recordable steps.

We can launch the step generator by anyone of the following methods.

Method#01:
By navigating to Insert Menu > Step Generator.
Method#02:
By pressing F7 short cut key.


The Step Generator enables us to add steps by selecting a wide range context sensitive options and to enter the required values.We can define the steps than can use:
  • Test object operations(Tests only)
  • Utility Object operations
  • Calls to Library functions
  • Calls to VBScript functions
  • Calls to Internal functions
For example, we can create a step to check whether a particular object exists as well as returned value of a function as output value or as part of the conditional statement.


We can parameterize any of the values in out step.Also, we can use the Step Generator to insert steps in function libraries. However we can't use the Step Generator to access the objects names or collections or the list of libraries.


We need to know that where the step needs to be inserted in out script before adding the step.Once the Step Generator is opened we need to select the category for step operation(Test/Utility object, Function) and the required object or the function library. Then we can select the appropriate operation(method, property or function), define arguments and return values.We can parameterizing required by the functions.


The Step Generator is used to insert the correct steps at our test. We can also insert another steps without closing the Step Generator.We can use the Step Generator in Keyword/Expert View or from Active Screen.
SHARE

About அமரகோசம்

    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment