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: 1) CATEGORY: Specifies an object or function that the step performs. The options available in the CATEGORY list are: [...]
QTP Lessons
You can use the Reporter object to Report whether the result of the step was as expected. The REPORTEVENT method of the REPORTER object reports an event to the Test Results. Reporting an Event: To add a REPORT event from KEYWORD VIEW: From the QuickTest Professional menu bar, select INSERT ? REPORT. The INSERT REPORT [...]
If the condition that you have specified in the IF statement is false, the statements following the ELSE statement are executed. Note: The ELSE statement is optional. To add an ELSE statement: In KEYWORD VIEW, select the step that contains the IF statement. From the QuickTest Professional menu bar, select INSERT ? CONDITIONAL STATEMENT ? [...]
Conditional statements enable you to control the flow of your Test or component. You use the IF … THEN and ELSE statement to incorporate decision-making in your tests. The IF … THEN statement evaluates whether a condition is true. If the condition is true, the statements following IF … THEN are executed. If condition is [...]
After Recording a Test, you can enhance your test with programming statements. You add these programming statements in the KEYWORD VIEW. TheseProgramming statements can contain: Recordable test object methods and operations that you can perform on an Application but do not want to record. Non-recordable test object methods and operations that you cannot perform on an [...]
If your Test calls an External action that is renamed or deleted, the Action is displayed in the MISSING RESOURCES pane. To link these missing Actions again to the test: In the MISSING RESOURCES pane, double-click the MISSING ACTION. The Locate MISSING ACTIONS dialog box appears. In the LOCATE MISSING ACTIONS dialog box, click the [...]
After creating a Reusable action, you can call it in the main Test in two ways: CALL TO Copy of Action: Copies the entire code of an Action, all data tables, and object repositories into the existing test. You can also edit these Actions. CALL TO Existing Action: Associates an action with the calling test. [...]
You can use the Action PROPERTIES dialog box to make an action reusable. To do so, in the ACTION PROPERTIES dialog box, check the Reusable action check box and click OK. A message appears, stating a description of the reusable action. In the KEYWORD VIEW, the action icon changes to a reusable icon. Note: You [...]
To make your Test easy to understand provide descriptive names to each Action. To modify an action name: In KEYWORD VIEW, right-click ACTION1 and select ACTION PROPERTIES from the menu. The ACTION PROPERTIES dialog box appears. In the ACTION PROPERTIES dialog box, in the GENERAL tab, in the NAME field, replace the Existing Action name [...]
QuickTest enables you to Split an Action that is stored within a Test into two independent Actions or into parent-child nested actions. To split an action: In KEYWORD VIEW, click the SPLIT ACTION button on the Toolbar, or in the ITEM column, right-click the step from where you want to split the action, and select [...]