Low Level Recording In QTP

Using Low Level Recording

You can switch to Low Level Recording mode only while recording a test. The option is not available while editing a test.

To record in Low Level Recording mode:
  1. If you are not already recording, click the Record button to begin a recording session.
  2. Click the Low Level Recording button  or select Automation > Low Level Recording.
  3. The record mode changes to Low Level Recording and all of your keyboard input and mouse clicks are recorded based on mouse coordinates. When QuickTest runs the test, the cursor retraces the recorded clicks.
  4. When you are finished and want to return to normal recording mode, click the Low Level Recording button  or select Automation > Low Level Recording to turn off the option.
  5. The following examples illustrate the difference between the same operations recorded using normal mode and Low Level Recording mode.
    Suppose you type the word tutorial into a user name edit box and then press the Tab key while in normal recording mode.Following code will come up
Browser("Welcome: Mercury Tours").Page("Welcome: Mercury Tours").WebEdit("userName").Set "tutorial"

If you perform the same action while in Low Level Recording mode, QuickTest records the click in the user name box, followed by the keyboard input, including the Tab key. Your test is displayed as follows in the Keyword View and Expert View:
Window("Microsoft Internet Explorer").WinObject("Internet Explorer_Server").Click 564,263

Window("Microsoft Internet Explorer").WinObject("Internet Explorer_Server").Type "tutorial"

Window("Microsoft Internet Explorer").WinObject("Internet Explorer_Server").Type micTab

Post a Comment


Close Menu