Monday, April 26, 2010

Recording Mode in QTP

Recording Mode other then “Normal Recording Mode”

  • Analog Recording - enables you to record the exact mouse and keyboard operations you perform in relation to either the screen or the application window. In this recording mode, QuickTest records and tracks every movement of the mouse as you drag the mouse around a screen or window. This mode is useful for recording operations that cannot be recorded at the level of an object, for example, recording a signature produced by dragging the mouse.

  • Low-Level Recording - enables you to record on any object in your application, whether or not QuickTest recognizes the specific object or the specific operation. This mode records at the object level and records all runtime objects as Window or Win Object test objects. Use low-level recording for recording tests in an environment or on an object not recognized by QuickTest. You can also use low-level recording if the exact coordinates of the object are important for your test.

  • One can switch from Normal to analog/low-level mode in between the test n vice-versa.
  • Analog Recording and Low-Level Recording require more disk space than normal recording mode.

Analog Recording

  • Use Analog Recording for applications in which the actual movement of the mouse is what you want to record. Record relative to a specified window if the operations you perform are on objects located within one window and that window does not move during the analog recording session. QuickTest does not record any click or mouse movement performed outside the specified window.
  • Record relative to the screen if the window on which you are recording your analog steps moves during recording or if the operations you perform are on objects located within more than one window.
  • The steps recorded using Analog Recording are saved in a separate data file. This file is stored with the action in which the analog steps are recorded.
  • When you record in Analog Recording mode, QuickTest adds to your test a Run Analog statement that calls the recorded analog file. The corresponding Active Screen displays the results of the last analog step that was performed during the analog recording session.

Low-Level Recording

  • Use Low-Level Recording for recording on environments or objects not supported by QuickTest.
  • When you need to record the exact location of the operation on your application screen. While recording in normal mode,

  • QuickTest performs the step on an object even if it has moved to a new location on the screen. If the location of the object is important to your test, switch to Low-Level Recording to enable QuickTest to record the object in terms of its x- and y- coordinates on the screen. This way, the step will pass only if the object is in the correct position.

  • While Low-Level Recording, QuickTest records all parent level objects as Window test objects and all other objects as Win Object test objects. They are displayed in the Active Screen as standard Windows objects.

Low-Level Recording supports the following methods for each test object:

  • WinObject test object—Click, DblClick, Drag, Drop, Type
  • Window test object—Click, DblClick, Drag, Drop, Type, Activate,

Minimize, Restore, Maximize

  • Each step recorded in Low-Level Recording mode is shown in the test tree and test script. (Analog Recording records only the one step in the test tree that calls the external analog data file.)

  • There is also a reporting tool called Reporting Manager (Latest available version 9.2), this is the tool which one can integrate with QTP to have extended reporting.
  • You can choose from (so far) 8 reporting engines - User timed popup message, XML, Excel, Styled Text, Screen Capture, Windows event log reporter (local or remote), DB reporter and the native QTP reporter.


You can and apply as many Regular-Expression and Object-State filters on them as you’d like.
Aside from the current engines and filters, Reporter Manager can be easily extended to include countless more reporting and filtering techniques. Just use the included class template to easily create engines and filters that suite your needs.

No comments:

Post a Comment

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | JCpenney Printable Coupons