Recording a Window Declaration for a Dialog Box

After you record your test application's main window and menus, you record all the dialog boxes you want to test. Use this procedure once for each dialog box in your application.

This functionality is available only for projects or scripts that use the Classic Agent.

  1. Make sure that the test frame (.inc) file that contains the declarations for the application’s main window is open. The dialog box declarations will be appended to this file.
  2. Click Record > Window Declarations.
  3. Make your application active and invoke one of its dialog boxes, referred to in this procedure as the target dialog box. If necessary, arrange windows so that you can see the target dialog box and position the cursor on the title bar of the target dialog box.
    Note: As you move the cursor toward the title bar, the contents of the Window Declaration list box change dynamically to reflect the object at which you’re pointing, as well as any contained objects. When the cursor is positioned correctly, the Window Detail group box (upper left) shows the caption of the dialog box in the Identifier field.
  4. Press Ctrl+Alt. The declaration is frozen in the lower half of the dialog box.
  5. Close the target dialog box.
  6. In the Record Window Declarations dialog box, click Paste to Editor. The information in the Record Window Declarations dialog box is cleared, and the newly recorded declarations are appended to the test frame after the last recorded declaration.
  7. If you are finished recording declarations, click Close on the Record Window Declarations dialog box. Otherwise, click Resume Tracking to begin recording the declarations for another dialog box. Many applications begin with a login window, which is not accounted for when you record the test frame. Therefore, make sure that you invoke this window and record a declaration for it when you are recording the declarations for your application’s dialog boxes.