QTP: Object Repository, Descriptive Programming and Beyond

Slides:



Advertisements
Similar presentations
EBSCO Discovery Service
Advertisements

WEB DESIGN TABLES, PAGE LAYOUT AND FORMS. Page Layout Page Layout is an important part of web design Why do you think your page layout is important?
GALVESTON COUNTY, TX P-CARD TRAINING GALVESTON COUNTY.
QTP: Object Repository, Descriptive Programming and Beyond Prepared by: Igor Gershovich.
An End-User Perspective On Using NatQuery Building a Dynamic Variable T
Tests Creation. Using the following QuickTest components  Designing Tests  Keyword View  Test Objects  Active Screen  Checkpoints  Object Property.
 2006 Pearson Education, Inc. All rights reserved Introduction to the Visual C# 2005 Express Edition IDE.
Automating Tasks With Macros
A Guide to Oracle9i1 Introduction To Forms Builder Chapter 5.
Customizing Word Microsoft Office Word 2007 Illustrated Complete.
Automating Tasks With Macros. 2 Design a switchboard and dialog box for a graphical user interface Database developers interact directly with Access.
The University of Adelaide Table Talk: Using tables in Word Peter Murdoch March 2014 PREPARING GOOD LOOKING DOCUMENTS.
Automation Repository - QTP Tutorials Made Easy The Zero th Step TEST AUTOMATION AND QTP.
CST JavaScript Validating Form Data with JavaScript.
Records and Information Management IT - Enterprise Content Management SPIDR II Global Features Reference Guide April 2013.
Chapter 9 Collecting Data with Forms. A form on a web page consists of form objects such as text boxes or radio buttons into which users type information.
Working with Drivers and Printers Lesson 6. Skills Matrix Technology SkillObjective DomainObjective # Understanding Drivers and Devices Install and configure.
© 2004 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice Automation Fundamental Concepts &
8 Copyright © 2004, Oracle. All rights reserved. Creating LOVs and Editors.
2 Copyright © 2009, Oracle. All rights reserved. Getting Started with Warehouse Builder.
XHTML Introductory1 Forms Chapter 7. XHTML Introductory2 Objectives In this chapter, you will: Study elements Learn about input fields Use the element.
Copyright © 2008 Pearson Prentice Hall. All rights reserved. 1 Exploring Microsoft Office Word 2007 Chapter 7 The Advanced User Robert Grauer, Keith Mulbery,
Marcel Casado NCAR/RAP WEATHER WARNING TOOL NCAR.
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Tutorial 30 – Bookstore Application: Client Tier Examining.
Tutorial 7 Creating Forms. Objectives Session 7.1 – Create an HTML form – Insert fields for text – Add labels for form elements – Create radio buttons.
AUTOMATION OF WEB-FORM CREATION - KINNERA ANGADI – MS FINAL DEFENSE GUIDANCE BY – DR. DANIEL ANDRESEN.
Computer Literacy BASICS: A Comprehensive Guide to IC 3, 5 th Edition Lesson 24 Managing and Reporting Database Information 1 Morrison / Wells / Ruffolo.
Session Objectives • Login to PeopleSoft Test Framework(PTF)
For additional assistance, please call the Help Desk Searching 1. If a Search window does not appear after logging into the system, click the Search icon.
 2006 Pearson Education, Inc. All rights reserved Introduction to the Visual C# 2005 Express Edition IDE.
Access Forms and Queries. Entering Data in Your Table  You can add data to your table in Datasheet view, by typing in the columns and rows.  This.
Microsoft FrontPage 2003 Illustrated Complete Creating a Form.
Session Making Queries and Multiple Entry Work for You in Direct Loans (Hands-On) Session 21.
Graphical Enablement In this presentation… –What is graphical enablement? –Introduction to newlook dialogs and tools used to graphical enable System i.
Liang, Introduction to Java Programming, Seventh Edition, (c) 2009 Pearson Education, Inc. All rights reserved Chapter 41 JavaServer Face.
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Outline 25.1 Test-Driving the ATM Application 25.2.
Microsoft FrontPage 2003 Illustrated Complete Integrating a Database with a Web Site.
PestPac Software. Leads The Leads Module allows you to track all of your pending sales for your company from the first contact to the close. By the end.
How QuickTest Works with Objects USINGQTP65-STUDENT-01A.
Transportation Agenda 77. Transportation About Columns Each file in a library and item in a list has properties For example, a Word document can have.
Quick Test Professional 9.2. Testing Process Preparing to Record Recording Enhancing a Test Debugging Running the Test and Analyzing the Results Reporting.
Physical Layer of a Repository. March 6, 2009 Agenda – What is a Repository? –What is meant by Physical Layer? –Data Source, Connection Pool, Tables and.
Windows Vista Configuration MCTS : Internet Explorer 7.0.
2 Copyright © 2008, Oracle. All rights reserved. Building the Physical Layer of a Repository.
Microsoft FrontPage 2003 Illustrated Complete Creating a Web Site.
JavaScript, Sixth Edition
DESCRIPTIVE PROGRAMMING IN QTP (UFT)
Practical Exercise One
Microsoft Access 2016 Simplify Data Entry with Forms
LMEvents SharePoint Portal How-to Guide
Mail Merge And Macros in MS WORD
Performing Mail Merges
Introduction to the Visual C# 2005 Express Edition IDE
Course Name: QTP Trainer: Laxmi Duration: 25 Hrs Session: Daily 1 Hr.
Simplify Data Entry with Forms Chapter 3
Tutorial Introduction to support.ebsco.com.
Multi-host Internet Access Portal (MIAP) Enhancement Guide
Lesson 6: Protecting, Maintaining and Managing Databases
Discovery Search vs. Library Catalogue
This presentation document has been prepared by Vault Intelligence Limited (“Vault") and is intended for off line demonstration, presentation and educational.
Finding Magazine and Journal Articles in
Managing Rosters Screener Training Module Module 5
5. Setting up Alerts.
This presentation document has been prepared by Vault Intelligence Limited (“Vault") and is intended for off line demonstration, presentation and educational.
PYTHON: BUILDING GEOPROCESSING TOOLS
Geographic Search & Display Updates & Development Plans
Assignment 3 Querying and Maintaining a Database
Tutorial Introduction to help.ebsco.com.
Executive Reports, Instructions and Documentation
How To Password Protect A PDF Free With or Without Acrobat.
Presentation transcript:

QTP: Object Repository, Descriptive Programming and Beyond Prepared by: Igor Gershovich

Object Repository vs. Descriptive Programming –what to use? There really is no “best way” Use the method that gives your company the best ROI, whether that be Object Repository (OR), Descriptive Programming (DP) or a mixture of both

OR Pros and Cons PROS: GUI Front end to examine all the objects in the repository Highlight in Application feature is great tool to walk the object tree No need to modify the script when object properties changes Easy to identify objects in AUT by Object Logical names Can be created independently from scripts

OR Pros and Cons CONS: Additional layer to maintain Unnecessary objects can be created Multiple users cannot concurrently save/write to the shared OR It won’t eliminate the need for Descriptive Programming in most of cases

DP Pros and Cons PROS: It’s a white box Compatible with different QTP versions Code portability is high Easy to mass update

DP Pros and Cons CONS: Lower Code Readability and requires more comments, like “what object is accessed” Potentially slower to create To highlight an object in the application requires utilizing the “Highlight” method

What is Object Repository? Object Repository is a place where QTP stores learned objects QTP uses default Object Identification properties: mandatory and assistive to learn objects into OR

Object Repository Logical Name Properties

OR: Object identification default properties

Script playback using OR QTP finds the Object in Object Repository using object Logical Name and Object Hierarchy QTP retrieves Test Object properties from OR QTP searches actual application for the Object with the same properties as the OR Test Object and performs user action

Script playback using Descriptive programming QTP searches the Application Under Test (AUT) for the Object using Descriptive properties and performs user action

Descriptive programming – when and why? Consider using DP in following cases: Dynamic object properties Example: Link Logout <User Name> Same objects on every page Example: Buttons – Next, Back, Cancel, OK Lots of similar objects on one page Example: table with many First & Last name text boxes

Different ways to work with objects

Different ways to work with objects Example for Passenger 1 First Name

ChildObjects method – using Collection Object

ChildObjects method – using Collection Object Last Name fields are populated

TO, RO and .Object .GetTOproperty/SetToProperty refers to the properties stored in OR .GetROProperty property refers to the AUT Object property (Run-time) .Object.<property/method> refers to the AUT Object NATIVE properties/methods

Better names for Object Spy radio-buttons Run-Time NATIVE Object Run-Time QTP (Test) Object

Object Run-Time Properties from AUT (GetRoProperty)

Run-Time “Native” Object Properties/Methods from AUT (.Object)

Test Object Properties from OR Set/GetToProperty

Regular Expressions in OR Example: Server independent Page object 1. Click on Property value to access RegEx 2. Click RegEx Icon

Regular Expressions in OR

Regular Expressions in OR RegEx icon

Object Smart Identification Smart Identification is not Artificial Intelligence SI uses loose/unreliable object recognition It’s recommended to disable SI for each and every page/window/control using the Tools->Object Identification dialog (Recording) Another way to disable SI: File -> Settings -> Run -> Check the "Disable Smart Identification during run session" check box (Run-Time)

Smart Identification (SI) Recording Options SI Checkbox

Smart Identification (SI) Run Option SI Checkbox

Igor Gershovich E-Mail: igershovich@connectedtesting.com Phone: 720-933-9395