RSS Feed

UTF 12.0 First Look After Installation

First look of QTP/UFT 12.0 after installation:

In previous article we have seen “Overview of HP Unified Functional Testing 12.0“. In today’s article taking first look of UFT tool.

1) After Installation, start the application either; from desktop shortcut or from Start Menu.

QTP 12.0 automatically creates desktop shortcut after installation process done, use the desktop shortcut to launch the QTP 12.0.

Also, you can start the QTP from Start > All Programs > HP Software > HP Unified Functional Testing, as shown in the figure below.

firstlook-of-qtp-uft-12-0-after-installation

2) Once you open UFT 12.0, the first window will be the License window. If you have already chosen the Seat (Trial) license at the time of installation then click on “Continue” button else click on “Install License” button.

uft-12-0-license-window

3) The next window will be the license type window, choose any one of the license type shown in the figure below, to install the license type.

UFT-12.0-license-type

4) When you click on “Continue” in the license warning window, the next window will be the Add-in Manager window, select the required add-ins from the list that should be suitable to your application which you are going to test using UFT 12.0 then click on “OK”.

UFT-12.0-Add-In-Manager

5) After loading the required add-ins, the UFT 12.0 application window opens, which will display as shown in the figure below.

UFT-12.0-Start-Up-Window

Let’s start the working process of UFT 12.0
The first and simple test formation technique in UFT is record and playback.During the functional testing of the application, Record function records the user actions of the application to automatically generate the scripts that can be played back later. Using record function, users can automation build scripts without knowledge of any scripting language.

Recording modes in UFT 12.0
There are different modes of Recording in UFT 12.0,

UFT-12.0-Recording-modes

1) Normal Recording: It is a default recording mode that records the objects functions and operations implemented on the application under test.

2) Analog Recording: At the time of recording an application functional operation under test, the exact mouse and keyboard operations can also be recorder relative to the that particular application. In this recording mode, each and every movement of the mouse as you drag the mouse around a screen or window can be recorded. This mode is valuable for recording operations that cannot be recorded at the level of an object, for example, recording a signature produced by dragging the mouse.

3) Low-Level Recording: Permits user to record any object of the application. Recording happens at the object level and records all run-time objects as Window or WinObject test objects. Use low-level recording technique, useful to record exact coordinates of the object under test.

4) Insight Recording: In this case, record operation happens based on its appearance, not on its native properties.

Operation of Record and Playback function

Working process of Record and Playback function in Normal recording mode is as follows,

1) In the start page of UFT, click on”New” as shown below in the figure.

UFT-12.0-Start-New-Test

2) After Clicking on “New” option, the new test window opens with various test types, here GUI test type has been automatically selected, by default. But, user can also select the test type from the list as per their requirement. So, select the test type (GUI Test) from the list, change the Name and Location if you want then click on “Create” to save the test in a particular location with particular name.

UFT-12.0-Start-GUI-Test

3) Next,a new test window screen opens as shown below. Here, click on “Action1″ Tab for further process.

UFT-12.0-Action-1

4) The Action1 window will look like the figure as shown below with1 action, by default.

UFT-12.0-Start-Action-1

5) In the Action1 window, from “Record” Menu select “Record and Run Settings” as shown below.

UFT-12.0-Record-and-Run-Settings

6) In the Record and Run Settings Dialog window, user can go to any tab (Web or Windows Applications) depends on the type of application on which you are working. For example; here you will get the recording process of a Web Based Application: “http://easycalculation.com/” on Mozilla Firefox.

User can also choose the Web browser on which the web application will open, the default selection is Microsoft Internet Explorer. UFT 12.0 supports all browsers shown in the figure below.

After doing required on the Record and Run Settings Dialog window, first click on Apply then OK.

UFT-12.0-Record-and-Run-Settings-Dialog

7) Next, click the Record Button.

UFT-12.0-Start-Recording

8) Once user click on Record button, Mozilla Firefox automatically opens URL: http://easycalculation.com/ as per the settings. In this particular Web address, whatever action you will do, scripts will generate for that particular action. After recording process done, click on stop button and go back to the UFT user interface, generated scripts will be shown in Action1 Pane as shown in the figure below.

UFT-12.0-Generated-Script

9) Now playback the script by clicking on the playback (Run)button to display desired result.

UFT-12.0-Run-recorded-the-script

10) At last, the result window will display as shown in the figure below.

HP-UFT-12.0-Run-Result-Viewer

How scripts generate in all recording modes:

After clicking on Recording button, one toolbar appears that facilitates user to choose the recording mode from the recording pane that appears on the screen once recording starts.

UFT-12.0-Recording-modes

Let do this with the example of the URL: http://easycalculation.com/ Go to, Tax Calculator > Chine Income > Taxable Income > Calculate.

Recording in Normal Mode: Script generated using above example.

UFT-12.0-Recording-in-Normal-Mode

Recording in Analog Mode: Script generated using above example.

UFT-12.0-Recording-in-Analog-Mode

Recording in Low-Level Mode: No script generated.

Recording in insight Mode: Script generated using above example.

UFT-12.0-Recording-in-insight-Mode

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: