QTP Lessons

Before you initiate a record session, you need to set the record and run settings for the Web Application that you want to Test. To set the record and run settings: From the QuickTest Professional menu bar, select AUTOMATION ? RECORD AND RUN SETTINGS. The RECORD AND RUN SETTINGS dialog box appears. displays the RECORD [...]

The process of automating tests for Web applications is similar to the process of automating tests for Windows-based applications. For Web applications, you use a Web browser to record and run tests. Note: You can record tests on Web applications in QuickTest Professional only by using Microsoft Internet Explorer. However, you can run tests on [...]

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: [...]

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 [...]