Different Recording modes of UFT

0
261
Spread the love
  • 23
  • 34
  • 24
  • 23
  •  
  •  
  •  
  • 12
  •  
  •  
    116
    Shares

Note: Make sure that all the applications listed in the Application details area are currently closed. QuickTest can record only on the instances of the specified applications that are opened after you select this option and click OK.

Instances of these applications that are already open when the Record and Run Settings dialog box opens may be ignored or may not be recorded correctly. Application details Lists the details of the applications on which to record and run the test. For more information on the details displayed.

If you define values for one or more environment variables, those values override the values in the Windows Applications tab during a test run. By these above methods we can get the script but in the object repository we might get extra unnecessary objects. So to avoid this a little advanced approach will be to add those required object to OR[Object repository] and then perform normal recording. Shortcut Ctrl+R or by navigating to Resources to Object repository.

Disadvantage:

It records User Mouse and Keyboard operations on AUT with respect to objects, but unable to record continuous mouse operations like Digital Signatures, graphs, paints etc. When working with specific types of objects or operations, however, you may want to choose from the following, alternative recording modes:

Analog Recording Mode:

This is the second Recording modes of UFT. Here UFT can identify the object but can not record.For example UFT can identify the paint/drawing bar normal mode but can not draw the picture or can not draw a signature by normal mode.To solve such problem we will choose analog recording mode.

UFT will identify the object and the analog operation over it.It will record the keyboard and mouse movement on the recognized window. Similarly,when testing signature we use Analog 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. We can use this mode for recording continuous mouse operations. however it does not generate steps for each operation, generates total user actions in a Track File. The Track file is not editable.

There are two mode of recording:

  1. Relative to specific window
  2. Relative to screen

while answering different types of recording modes in uft, you may touch this portion, Relative to specific window is more important over Relative to screen

Relative to window:

Activate this option if and only if operations performed on UAT located within one window.During analog recording mode in uft, UFT tries to identify the window location and can perform operations(record the analog step) even if it is located in different location. Interestingly UFT does not record any keyboard operation or mouse movement outside this window. Active Screen image of the final state of the window is captured.

Relative to Screen:

This is a very rare scenario where we need to perform some analog recording with respect to screen. This is applicable during run time that is execution time also.It can also be possible if the AUT is having multiple windows opened. No active screen shot is taken/captured during this type of recording

Best to use while Automating:

1. Paint operation
2. Drag and drop

 Navigation:

1. Keep tool under recording mode
2. Automation >Analog Recording OR Use Short cut Key (Shift + ALT+F3)

Steps for preparing a TEST (through Analog Recording):

1. Launch AUT (or we can launch AUT through UFT)
2. Select Record option
3. Automation>Analog Recording
4. Analog Recording Settings Dialog box opens (In this Dialog box two options available.

4.1. Record relative to the screen
4.2. Record relative to the following window If we select first option UFT records User operations with respect to Desktop co-ordinates. If we select Second option, we have to show the window (AUT), after showing the Window it records with respect to that window co-ordinates.)

5. Select any one option in the dialog box and click Start Analog record.

6. It records User actions

7. Stop Recording 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. Note: You cannot edit Analog Recording steps from within QuickTest. To execute this UFT invokes RunAnalog command like-

Desktop.RunAnalog "Track1"
' This is for Relative to the scren but for relative to a window the code will be--
Window({name of the window}).RunAnalog "Track2"

Both these two recoding mode eats up huge disk space. So please do not use these if not required. Mixing of normal analog mode of recording is possible and we can switch to these modes if required. In general avoid analog recording mode in uft.

Low Level recording:

This is the third Recording modes of UFT. UFT can not identify the object under test.Hence it can not proceed with recording.As UFT can not identify or recognize the application under test,Analog Recording Mode can not be operated. So if we need to test such application,we need to activated Low Level recording.

By enabling this mode of recording, UFT will identify obejects and by default class window or win Object and will record all keyboard and mouse operation. 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 run-time objects as Window or WinObject test objects.

Use Low Level Recording for recording 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. In this level of recording UFT identifies co ordinates mostly to record and run.

While different types of recording modes in uft, you should touch this point but keep it short and be honest if you have not used this feature.

Note: Steps recorded using Low Level Recording mode may not run correctly on all objects. It records some operations on Non-supported environments apart from Normal operations. This mode records at the object level and records all run time objects as window or winobject Test objects. Use Low Level Recording for recording in an environment not recognized by UFT.

Don't miss out!
Subscribe To Newsletter

Receive top technical news, lesson ideas, travel tips and more!

Invalid email address
Give it a try. You can unsubscribe at any time.

Spread the love
  • 23
  • 34
  • 24
  • 23
  •  
  •  
  •  
  • 12
  •  
  •  
    116
    Shares

LEAVE A REPLY

Please enter your comment!
Please enter your name here