Pages

Thursday, 10 April 2014

Simple Recording in QTP

There are two kinds of licenses –

Seat license :Seat license is for a single machine at one time

concurrent/floating license: a current license is for a particular number of concurrent users.
Let’s start up with simple program

<Step I: 


After installing Trail Version from HP website Launch QTP.
Start >Programs > Quick Test Professional > Click on it

 The first thing that comes up is an Add-in manager. It displays all the add-ins that are available and the user can check or uncheck the ones as needed. Active-X, Web and Visual Basic are available by default.











Step II On Clicking OK in the Add-in Manager QTP start page comes up. 

c












You can disable start up page by clicking the check box on left side bottom corner


Dont show the start page window on on start up


Step III:

<Now  go to file menu select new test you can come up with another window,now lets start creating a program simply with record option later we will discuss about another ways of writing a program.
<we can record on application under test(AUT) by simply pressing F3 Key which is shortcut for Record option or select Automation > Record now you will get a pop up window











Now don't change any settings there just click on ok 


Step IV: now lets start with Flight’ application from the samples that come with QTP. I am going to enter the ‘Agent Name’ and ‘Password’ in the Login screen. examine the code it generates.


Wednesday, 2 April 2014

Recording Modes in QTP


Recording Modes

In QTP, there are (3) Recording Modes such as

1)  Context Sensitive Mode

In this mode QTP Records the operations which are performed on the objects. Context Sensitive Mode is also called as “Standard Recording Mode / Normal Recording Mode”.

Context Sensitive Mode is default Recording Mode in QTP.

2)  Analog Recording Mode

In this mode QTP records the Mouse and Keyboard Operations with respective to Window (or) Desktop co-ordinates.
Syntax: If you take Desktop Coordinates 
Desktop--)   Desktop.RunAnalog "<Track No.>"

Window --)    Window("Window_Name").RunAnalog "<Track No.>"

Navigation

Start  Recording  (F3) --)  Automation  Menu --)  Analog  Recording

 

Generally we are using Analog Recording Mode to compare “Digital Signatures, Barcodes, Scientific Graphs etc.,
Note

In Context Sensitive Mode, QTP Generate one statement for each operation. But in Analog Recording Mode, QTP Generates single statement for all the operations which you perform on the application.

In Analog Recording Mode, if you take Desktop Co-ordinates, you can get wrong output, if application is moved from one place to another place at Run Time.
If you take Window co-ordinates, we can get right output even if the application moved from one place to another place.

 
3)    Low Level Recording Mode

We can use this mode to records the operations which are not recognized

by Tool.

Navigation

Start Recording (F3) ---) Automation Menu --) Low Level Recording Mode (Crtl + Shift + F3) --) Record your required Operation --) Stop Recording (F4)

Note: We are giving low priority to this recording mode.
Important Note

If you want to select Analog Recording Mode or Low Level Recording Mode you must be under Context Sensitive Mode.

QTP Introduction


QUICK TEST PROFESSIONAL

QTP is a Functionality Testing Tool developed by Mercury Interactive later merged with HP
QTP has released in following Versions. 5.5 6.5 8.0 8.2 9.0 9.1 9.2
 9.5
10.00
11.00
HP Has its Own Tool ST(Service Tool)
QTP+HP ST=UFT 11.50
                            11.52 (Latest)

License
They are three types of licenses
 1) Seat License (Single User) and
 2) Concurrent License (Multiple Users)
 3)commuter license

Technologies

QTP 11.52 Supports following Technologies
.Net, VB, JAVA, ActiveX Controls, Web Servers, People Soft, SAP, Oracle, Terminal Emulators, HTML, DHTML, XML,Delpi,Sibel ….. etc.,

Note

QTP does not support on Linux / Unix Operating Systems. X-Runner supports on Linux / Unix Operating System.

QTP can support client / Server, Web Applications.
QTP Records the business operations in VB Script (It can also support JAVA Script)
QTP can support Multimedia Applications such as Flash, Windows Media Player, Real Video etc., 




 
List of Automation Tools
Tool Name
Company Name
Latest Version
HP Unified Function Testing Tool
(QTP+ST)
Quick Test Pro + Service Test
HP
11.5
HP Quick Test Professional
HP

11.00
IBM Rational Functional Tester
IBM Rational
8.1.0.3
Rational robot
IBM Rational
2001
Selenium
Open Source Tool
1.0.1
Silk Test
Micro focus
2009
Test Complete
Automated QA
7.52
Test Partner
Micro Focus
6.3
WATIR
Open Source Tool
1.6.5


QTP 11 New features



XPath and CSS based object identification
Good Looking and Enhanced Results Viewer
Easy Regular Expressions
Visual relation identifier
Load Function Libraries at Run Time
Test Your GUI and UI-Less Application Functionality in One Test
Record Support For FireFox
Much Awaited Log Tracking is available now
Embed/Run Javascript in web pages
Manage Test Data
Web 2.0 Toolkit Applications Support
Automatically Parameterize Steps
Silverlight Add-in
Extend WPF and Silverlight Support