Tuesday, August 2, 2011

Explain Recording modes in QTP.

QTP has three recording Modes:

1. Normal Recording
2. Low-Level Recording
3. Analog Recording

1. Normal Recording: This is the default mode of recording in QTP. You can record using this method on all the objects that are recognized by QTP. QTP would generate separate statements for each performed operation.

2. Low-Level Recording: This recording mode is used mostly when a certain object isn't recognized by QTP. When the objects aren't recognized, QTP records these objects as Window/Winobject. In this method, QTP would record any object based on its location(coordinates).To Switch to Low-level recording mode, user needs to start Normal Recording initially and then select Automation-->Low-Level Recording from menu options. Even if the object is recognized by QTP, this method can still be used when the location of a particular object is important for your test. QTP would generate separate statements for each performed operation.

3. Analog Recording: This recording mode is used to track the mouse movements. Say for example, capturing a digital signature isn't possible in Normal recording mode/Low-Level recording. This can be done only through Analog recording mode. To Switch to Analog recording mode, user needs to start Normal Recording initially and then select Automation-->Analog Recording from menu options. Once user chooses this, QTP would prompt a dialog box with two options asking the user whether the recording is relative to the screen or relative to a specific window. If user chooses Record relative to a screen, then QTP would record every mouse movement related to that screen irrespective of application(s). If user selects the next option(Record Relative to the following window), user needs to choose a specific window on which he needs to perform the recording. And then QTP would record any mouse movement related to that window only. QTP would generate a single lined statement for this recording method.

No comments:

Post a Comment