Analog Recording In QTP

Using Analog Recording


You can switch to Analog Recording mode only while recording. The option is not available while editing.

To record in Analog Recording mode:
  1. If you are not already recording, click the Record button to begin a recording session.
  2. Click the Analog Recording button  or select Automation > Analog Recording. The Analog Recording Settings dialog box opens.
  3.  
    Select from the following options:
      • Record relative to the screen. QuickTest records any mouse movement or keyboard input relative to the coordinates of your screen, regardless of which application(s) are open or which application(s) you specified in the Record and Run Settings dialog box.
      • Select Record relative to the screen if you perform your analog operations on objects located within more than one window or if the window itself may move while you are recording your analog operations.
        Note: When you record in Analog Recording mode relative to the screen, the run session will fail if your screen resolution or the screen location on which you recorded your analog steps has changed from the time you recorded. The analog tracking continues to record the movement of the mouse until the mouse reaches the QuickTest screen to turn off Analog Recording or to stop recording. Clicking on the QuickTest icon in the Windows taskbar is also recorded. This should not affect your test. The mouse movements and clicks on the QuickTest screen itself are not recorded.
      • Record relative to the following window. QuickTest records any mouse movement or keyboard input relative to the coordinates of the specified window.
      • Select Record relative to the following window if all your operations are performed on objects within the same window and that window does not move during analog recording. This guarantees that the test will run the analog steps in the correct position within the window even if the window's screen location changes after recording.
        Note: If you have selected to record in Analog Recording mode relative to a window, any operation performed outside the specified window is not recorded while in Analog Recording mode.
    1. If you choose to Record relative to the following window, click the pointing hand and click anywhere in the window on which you want to record in Analog Recording mode. The title of the window you clicked is displayed in the window title box.
    2. For more information on using the pointing hand feature, see Tips for Using the Pointing Hand.
    3. Click Start Analog Record.
    4. Perform the operations you want to record in Analog Recording mode.
    5. All of your keyboard input, mouse movements, and clicks are recorded and saved in an external file. When QuickTest runs the test, the external data file is called. It tracks every movement and click of the mouse to replicate exactly the operations you recorded.
    6. When you are finished and want to return to normal recording mode, click the Analog Recording button  or select Automation > Analog Recording to turn off the option.
    If you chose to Record relative to the screen, QuickTest inserts the RunAnalog step for a Desktop item. 

    Desktop.RunAnalog "Track1"
    If you chose to Record relative to the following window, QuickTest inserts the RunAnalog step for a Window item.

    Window("Microsoft Internet Explorer").RunAnalog "Track1"
    The track file called by the RunAnalog method contains all your analog data and is stored with the current action.
    You can use this track file in more than one action in your test, and also in other tests, by saving the action containing the RunAnalog step as a reusable action. A reusable action can be called by other tests or actions. For more information on using actions, see Working with Actions and Working with Advanced Action Features.
    Note: When entering the RunAnalog method, you must use a valid and existing track file as the method argument.
    Tip: To stop an analog step in the middle of a run session, press Ctrl + Esc, then click Stop in the Testing toolbar.
    For more information, see Choosing the Recording Mode and Guidelines for Analog and Low Level Recording.

Post a Comment

Previous Post Next Post