Monday, November 30, 2009

27. Step Generator:

The step Generator enables you to add steps to a test by selecting from a range of context-sensitive options. Using the Step Generator dialog box, you can add steps that perform operations using the following criteria.
ð Category: Specifies an object or functions that the step performs. The options available in the Category list are:
· Test Objects: Display contents of Object Repository.
· Utility Objects: Display predefined list of utility objects.
· Functions: Display all the functions including Build-in, Library and Local script functions.
ð Operation: Specifies available options based on the category selected.
ð Arguments: Specifies a value set for an argument. The argument may be optional depending on the object and operation being used.
ð Step Documentation: Display information about the current Step.

To display the Step Generator:
Step 1: From the Quick Test Menu bar, Select Insert>Step Generator (or) Press F7. Step Generator dialog box appears.

27.1. Test Objects:
Step 2: In Category field Select Test Objects.
Step 3: In Object field click on Browse button.
Step 4: Select Object for Step dialog box appears. Click on Hand Symbol at the Bottom left of the dialog box.
Step 5: After clicking Hand Button, it shows Hand Symbol, click on the applications element which you want to Insert.
Step 6: Object Selection dialog box appears, Click on Ok.
Step 7: Now that captured value is added to the Step Generator, Enter the Value in the Argument field, click on OK.
Step 8: Now script is inserted in the QTP. Like this just Insert Lot of Scripts.

27.2. Utility Objects:
Step 9: Open the Step Generator Same like Step 1.
Step 10: In the Category field Select Utility Object, it is used to insert the System utility Scripts.
Step 11: In Object field select the Utility. E.g.: Systemutil
Step 12: In Operation Field Defaultly it select after selecting values in the Object field.
Step 13: Enter the values in the Argument field. E.g.: Path of the application.
Step 14: Click OK to insert the Script.
Step 15: Do the Same steps to Insert the remaining Scripts.


27.3. Functions:
Step 16: Open the Step Generator Same like Step 1.
Step 17: In the Category field Select Functions, it is used to insert the Functions.
Step 18: In Library field select the Library. Eg: All.
Step 19: In Operation Field select operation for the particular function. E.g.: Inbox to insert the Inbox Function.
Step 20: Enter the values in the Argument field.
Step 21: Click OK to insert the Script.
Step 22: Do the Same steps to Insert the remaining Functions.

No comments:

Post a Comment