Different Recording modes of UFT

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

Different Recording modes of UFT
Different Recording modes of UFT

Different Recording modes of UFT:

As UFT/QTP supports record and playback options.Recording modes of UFT enables us to understand object learning better during recording phase.Different types of recording modes(Standard recording mode,analog recording mode in uft,Low level recording mode in uft) enables us to automate different type of scenarios. It is very important to understand about the recording options available in UFT/QTP In UFT/QTP.

we have three recording options.

  • Standard recording mode
  • Analog recording mode
  • Low level recording mode

This-how many types of recording modes in uft? is a very popular question in interview as well

Standard Recording Mode

This is the default mode in UFT/QTP which can record all operation. QuickTest’s normal recording mode records the objects in your application and the operations performed on them. This mode is the default and takes full advantage of QuickTest’s test object model, recognizing the objects in your application regardless of their location on the screen.

Navigation for standard recording:

Automation>Record
or
Select Record option on automation toolbar
or
Use shortcut key (F3)

During recording UFT generates VbScript statements in Test Pane, Simultaneously it stores objects information into object repository. Steps for Normal recording: Steps for preparing a Test (through Recording):
1. Put AUT in base state
2. Select Record Option
3. It shows Record and Run Settings, Select type of Environment (Windows or Web)
4. Select Record Option (It shows two Options)
4.1. Record and Run Test on any open window based applications
4.2. Record and Run only on If we select first option it records on any opened application on Desktop. If we select Second option, it asks for the path of the AUT, After Providing the path it records only on that particular application.)
5. Click OK
6. Perform actions on AUT
7. Stop recording.
8. Save the Test

While answering different types of recording modes in uft , just remember, low level and analog recordings are not very popular among the test gurus so they don’t like it much. Focus on the normal mode. It is very important.

Here is the way to record in normal mode:

1. Click the Record button or choose Automation > Record. If you are recording for the first time in a test and have not yet set your recording preferences (by opening the dialog box manually), the Record and Run Settings dialog box opens. It is divided by environment into several tabbed pages.
2. To choose an environment, click a tab.

3. Set the required options, as described in the following sections.

4. To apply your changes and keep the Record and Run Settings dialog box open, click Apply.

5. When you have finished the operation, click OK to save your changes and start recording. Guidelines for Modifying Record and Run Settings After you set the record and run settings for a test, the Record and Run settings dialogbox will not open the next time you record operations in that test. If needed, you open the Record and Run Settings dialog box by choosing Automation > Record and Run Settings.

You should set or modify your record and run preferences in the following scenarios:

  • You have already recorded one or more steps in the test and you want to modify the settings before you continue recording.
  • You want to run the test on a different application or browser than the one you previously set in the Record and Run Settings dialog box.

If you change the record and run settings for additional recording sessions, confirm that you return the settings to match the needs of the first step in your test before you run it.

All about the web options:

Record and run test on any open browser Instructs QuickTest to record on any open Microsoft Internet Explorer browser and run on any open supported Web browser (refer to the QuickTest Professional Readme for information on supported browsers).

Note: You must open the Web browser after you open QuickTest and select this option.

Tip: You can instruct QuickTest to ignore selected browsers that are open during the record and run session. Open the following address when a record or run session begins Instructs QuickTest to open a new browser session to record and run the test using the specified URL address.

When recording a test, the address is opened in a Microsoft Internet Explorer browser. When running a test, the address is opened in the browser type specified in the Open the following browser when a run session begins box.

Note: If you define a value for the URL_ENV environment variable, that value overrides the value specified here during a run session. Open the following browser when a run session begins Instructs QuickTest to open the specified browser type when running a test:

  • Microsoft Internet Explorer
  • Netscape 8.x
  • Firefox 1.5

Notes: Only those browsers currently installed on your computer are available in the list. If you define a value for the BROWSER_ENV environment variable, that value overrides the value specified here during a run session. Do not record and run on browsers that are already open Instructs QuickTest not to record or run tests on any browsers that are already open prior to the start of the record or run session (and prior to opening QuickTest).

Selecting this option also prevents you from viewing the properties of these browsers using the Object Spy. Close the browser when the test closes Instructs QuickTest to close the browser window specified in the Address box when the test closes.

All about Window based option:

Option Description Record and run test on any open Windows-based application Instructs QuickTest to record and run on any open Windows-based application.

Note: Make sure that all the applications on which you want to record are currently closed. QuickTest can record on the applications that you open manually only 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. Record and run only on Instructs QuickTest to restrict its record and run operations to one or more of the following options:

Applications opened by QuickTest:

This option records and runs only on applications invoked by QuickTest (as child processes of QuickTest). For example, applications opened during a record or run session using a SystemUtil.Run statement, or using a statement such as

Set shell = createobject("wscript.shell"); 
shell.run "notepad".

Applications opened via the Desktop (by the Windows shell):

This option records and runs only on applications that are opened via the Windows Desktop. For example, applications opened from the Windows Start menu, by double-clicking executable files in the Windows Explorer, by double-clicking ashort cuton the Windows Desktop, or by clicking icons on theQuick Launch bar.

Applications specified below:

This option records and runs only on applications listed in the Application details area. This is the recommended option to use. When working with standard Windows applications only, you can manually add steps to your test and then run them, even if you select this option and leave the Application details area blank (or if the list does not contain the application for which you want to add a step).

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