Thursday, 11 September 2014

Object Repository Part-3

Operations in OR: Adding Test objects: To identify runtime objects we should provide test objects into OR Learning process:                                                               i.      Auto-learning                                                             ii.      Pre-Learning                                                           iii.      By...

Object Repository Part-2

Associating shared OR:- --------------------------- In general we prefer shared OR in organization, Based on requirement we associate shared OR to an action script Method1: from “Resources” menu Navigation:  “Resources” menu   >>Select “associated repositories”   >>Click on “+” button   >>Browse “shared OR “file path   >>Select “Action name” in available Actions list   >> Add into associated actions list    >>Click “OK”  Method2: “Resources”...

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