Interview Questions

How to to record a GUI script

Rational Robot FAQ


(Continued from previous question...)

How to to record a GUI script

  1. Prepare to record the script.
  2. If necessary, enable your application for testing.
  3. Make sure your recording options are set appropriately for the recording session.
  4. Click the Record GUI Script button on the toolbar to open the Record GUI dialog box.
  5. Type a name (40 characters maximum) or select a script from the list. The listed scripts have already been recorded in Robot, or generated in TestFactory. To change the list, select a query from the Query list. The query lets you narrow down the displayed list, which is useful in projects with hundreds of scripts. You create queries in TestManager, and you modify queries in TestManager or Robot.
    If a prefix has been defined for script autonaming, Robot displays the prefix in the Name box. To edit this name, either type in the Name box, or click Options, change the prefix in the Prefix box, and click OK.
  6. To change the recording options, click Options. When finished, click OK.
  7. If you selected a previously recorded script, you can change the properties by clicking Properties. When finished, click OK. To change the properties of a new script, record the script first. After recording, click File > Properties.
  8. Click OK to start recording. The following events occur: . If you selected a script that has already been recorded, Robot asks if you want to overwrite it. Click Yes. (If you record over a previously-recorded script, you overwrite the script file but any existing properties are applied to the new script.)
    . Robot is minimized by default.
    . The floating GUI Record toolbar appears. You can use this toolbar to pause or stop recording, display Robot, and insert features into a script.
  9. Start the application-under-test as follows: a. Click the Display GUI Insert Toolbar button on the GUI Record toolbar.
    b. Click the appropriate Start button on the GUI Insert toolbar.
    c. Fill in the dialog box and click OK.
  10. Perform actions as needed to navigate through the application.
  11. Insert features as needed. You can insert features such as verification points, comments, and timers.
  12. If necessary, switch from Object-Oriented Recording to low-level recording. Object-Oriented Recording examines Windows GUI objects and other objects in the application-under-test without depending on precise timing or screen coordinates. Low-level recording tracks detailed mouse movements and keyboard actions by screen coordinates and exact timing.
  13. When finished, click the Stop Recording button on the GUI Record toolbar. The Robot main window appears as follows:
    - The script that you recorded appears in a Script window within the Robot main window.
    - The verification points and low-level scripts in the script (if any) appear in the Asset pane on the left.
    - The text of the script appears in the Script pane on the right.
  14. Optionally, change the script properties by clicking File > Properties.

(Continued on next question...)

Other Interview Questions