Thursday, 11 September 2014

Object Identification during Runtime/Test Object Model (TOM)

Test Object:  Objects which are exist in “Object Repository” Where Test object consist some of the description property values Runtime Object:  Objects which are exist in AUT Where Runtime object consist all the property values which are provided by developer During runtime QTP use Test object description property values to identify runtime object in AUT, based on logical name used in the script Learning process: Adding new test objects into Object Repository is called learning or application maps Learning can be performed...

Tuesday, 9 September 2014

Shortcut Keys for QTP

Short keys: Ctrl+M       à to comment block of statements Ctrl+Shift+M àto uncomment block of statements Ctrl+W       à to apply “With” to script Ctrl+Shift+W àto remove “With” from script Ctrl+F7      àto check syntax error Shift+F2     àto Rename Action F3              à for Standard Recording Shift+Alt+F3          ...

Password Encoder

Password Encoder: It is built-in tool in QTP to generate encoded string for given password value Navigation: Ø  Start menu Ø  All programs Ø  QTP Ø  Tools Ø  Select “Password Encoder” Ex: write script to open 5th order number record in “FR” application Step 1: activate “FR” window Step 2: select “Open Order…” option in “File” menu Step 3: activate “Open Order” sub window Step 4: set “ON” for “Order No.” check box Step 5: enter value “5” in edit box Step 6: click on “OK” button Script: Window(“FR”).Activate Window(“FR”).WinMenu(“Menu”).select...

Object Spy

Object Spy: Using this component we can view the application object property values and operations which we can perform on that object Navigation: Ø  Click on “Tools” menu in QTP Ø  Select “Object Spy” Ø  Click on hand icon button Ø  Click on application object which object properties and operations do you want to view Note: Window class object will contain Menu options Dialog class object will not contain menu options Ex: write script to perform login operation Step 1: Activate Login window Step 2:...

VbScript in QTP Part-3

Vb Script for standard windows based applications Objects Object class in VB Script Main window Window (“window name”) Sub window/pop-up window Dialog(“sub window name”) List box\combobox WinCombobox(“list box name”) Check box WinCheckbox(“check box name”) Radio button WinRadiobutton(“Radio button name”) Edit box\text box WinEdit(“Edit box name”) Push button WinButton(“object ...