Tuesday, 17 January 2012

RK QTP Class 3


1.      Qtp is automation tool actually first tool  (before QTP) AQT (Actra Quick Test) are used for test the application
2.      Later mercury had took the Qtp and they started with  - Here I would like to share the version history of Quick Test Professional .
1998 -> Astra QT
2000 -> QTP 5.0
2001 -> QTP 5.5
2002 -> QTP 6.0
2003 -> QTP 6.5
2004 -> QTP 8.0
2005 -> QTP 8.2
2006 Feb -> QTP 9.0
2007 Jan -> QTP 9.1
2007 Feb -> QTP 9.2
2008 Jan -> QTP 9.5
2009 Feb -> QTP 10
3.      Now recently 11 version are released

4.      These qtp versions are very good effective to test the any application Before QTP all company’s  were used by Win runner tool (It’s also good tool) its for GUI test and next test for web application by AQT

5.      The qtp is for both of Win Runner and AQT

Win Runner   -}
AQT                 - }         QTP

6.      The qtp is work with GUI and Web based applications
7.      QTP has support scripting language –  a. VB script  b. Microsoft shall script  c. Java Script  d. XML
8.      Variable:  The name of the data type for VBscript is called variable
9.      Variables are using anywhere in scripting
EG : Dim a,b
A=10
B=”Rama”
Dim c
C=20

For example in the qtp script we can write Optional Explicit.    * It is in the first line of script.
VB script is not a case sencitive
EG: Dim Emp No
Emp no
Print emp no

10.  Operators: operators are like mathematical operators  , In  script we use
\   - Back slash

Mod  - 10 mod 4 =2

^    - 5^3 = 1

11.  VB script is not object oriented language – it is a object based language
12.  The object contains attributes , attributes are 3 types

1. Properties:   It is explain the project any thing (In QTP the objects can be classified in to two types. They are Test Objects and Run Time Objects. Run time objects are the real objects present in the application. Test objects are the references for the runtime objects created by the QTP while recording. Later these test objects are used by the tool to identify the runtime objects. Both these have some methods and properties)

2. Methods   : It is test the functionality of our project

3. events       : Clicks

13.   What is difference between dialog box and window box?
If it is contains menu bar called widow box
If it is not contains menu bar called dialog box

14.   Script for xyz dialog box?
Window(“xyz”).Win Edit(“Emp Id”).Set”100”
Window(“xyz”).Win Button(“Search”).Click

Window  is logical name of object
 (“xyz”) is class name of object

Classname + Logical name = Physical description
   

Eg: Flight Application
Dailog(“Login”).WinEdit(“AgentName:”).Set “RK”
Dailog(“Login”).WinEdit(“Password:”).Set “Mercury”
Dailog(“Login”).WinButton(“Ok”).Click
 

Qtp has internal component is object repository
QTP has never go directly to any application it used object repository

Click on resources -> Click object Repository -> Test Object-> Add objects to tool  (ICON)

-          In the qtp some keywords of run application
-          F11 is step by step run
-          F5 is Run application

15.   Object Spy :  It is very important concept
Click on Object spy icon -> Click on show hand -> Click on any where in application
It shows all properties of application fields

The object spy is used for when user want to know all the properties of any values then use spy hand key

-          Click on flight application then enter all the data in that field and say insert order
-          If any script delete in qtp but do not delete it , just put single line (‘) then it is disable and do not run……………
Control+M is for comment multi lines (Just copy all lines and say Control+M)
If uncomment Control+shift+M





No comments: