Subscribe by Email

Sunday, September 9, 2012

How many types of recording modes are there in QTP? Which will be used when?

Unlike Winrunner, Quick test professional comes with three types of recording modes. Two of them are same as what the winrunner had and one is new. 
The 3 types of recording modes available in quick test professional are:
  1. Context sensitive recording
  2. Analog recording and
  3. Low level recording
Now let us discuss about these three recording modes in much detail one by one:

Context Sensitive Recording Mode

- The context sensitive recording mode is considered to be the normal recording mode in the quick test professional. 
- In this recording, full advantage of the test object model of the quick test professional can be taken. 
- In this mode the quick test professional can recognize a particular GUI object perfectly even if its location on the application screen is not known. 
- This recording takes place regardless of the location of the GUI objects on the application interface. 
- In this mode, the objects present in the software application and the operations that are performed in them are recorded. 

Analog Recording Mode

- Each and every movement of the mouse is tracked and recorded as it is dragged across the screen or some window. 
- The analog recording data captured by the quick test professional is saved as what are called tracks and these tracks are in turn saved in the directory of the test that you are going to perform. 
- This technique proves to be useful essentially for recording those operations whose recording cannot be carried out at the level of an object. 
- An example for such operation is making a signature by dragging of the mouse.
- With analog recording two types of recording can be done as stated below:
  1. Recording relative to the screen and
  2. Recording relative to the window.
- When you have to perform the analog operations pertain to just one window then you can very well go for the second one i.e., the recording relative to the window.
- On the other hand when your analog recording is to consist of multiple screen actions like dragging and dropping objects from one window to the other the former option i.e., the recording relative to the screen can be used.

The Low Level Recording Mode

- It is used for making recording easy at the level of the objects. 
- With this recording, you can record operations being performed on any of the objects present in the application software. 
- With this mode, even all of the run time objects can be recorded as:
  1. Window test objects or
  2. winObject test objects.
- This mode of recording is independent of whether the quick test professional is able to recognize the specific operation or the specific object. 
- This recording mode should only be used when your tests demand the exact coordinates of the objects.
- An example of this can be given by a hash map. 
-This mode is also used when the recording of a test in a particular environment is not provided recognition by the quick test professional.
- Using this, x and y coordinates of any click can be recorded.
- It has been noted that more disk space is used up in the analog and low level recording modes as compared to the context sensitive mode. 
- For both of the last two modes, one thing should always be kept in mind is that the position of the screen during the run time as well the record should remain identical otherwise the test script may fail. 

No comments:

Facebook activity