Thursday, 11 September 2014

Object Repository Part-1

Object Repository It has objects and it’s properties which are used in the script during runtime the tool will search for the object repository, based on properties it will recognize the object in application. Object Repository Types:- In QTP we have 2 types of OR’s a.Local OR (per-Action) b.Shared OR a.Local OR:- ------------------ It is a default OR type for each action in QTP  For each action QTP provides individual Local OR  When we save\open test by default QTP implicitly save\open corresponding Local OR   w.r to test  **Local...

Launching application using Script PART-2

VB Script for web based application to perform operations Object type Object Class Browser Browser(“Browser name”) Page Page(“Page name”) Frame Frame(“Frame name”) Table WebTable(“Table name”) Link Link(“Link name”) Edit box/Text box WebEdit(“Edit box name”) List box/combobox Weblist(“list box name”) Check box WebCheckbox(“checkbox name”) Push button WebButton(“object name”) ...

Launching application using Script PART-1

Launching application using Script: There are 2 types of functions to launch application during runtime Invokeapplication: SystemUtil.Run: Invokeapplication: Using this function we can open applications during runtime (only .exe file) Where as it supports only .exe files Syntax: to open windows based applications Invokeapplication “path of application” Ex: write script to open “Calculator” application Syntax: to open web based applications Invokeapplication “ browser_path Application_URL” Ex: write Script to open Google.co.in...

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          ...