This is not the document you are looking for? Use the search form below to find more!
home > Others QTP Descriptive Programming
DP 101 in 60 simple slides www.AdvancedQTP.com What is DP? DP stands for Descriptive Programming But what IS DP? I t’s a cool way to work without QTP’s Object-Repository (OR)…
May, 12th 2011 Reads:
22 File size:
60 Tags: dp, quicktest, vbscript, qtp, descriptive, programming, 60, prg, qtp descriptive programming, in, slides, simple, test, descp, 1, 101, program, qtp decriptive programming, des, dp qtp
content preview Submitter
desantis, 410 pages
This book is a tutorial. Its aim is to teach C to a beginner, but with enough of the details so as not be outgrown as the years go by. It presumes that you have some previous acquittance with ...
desantis, 62 pages
C programming with lcc-win32. Jacob Navia and Friedrich Dominicus. This document is part of the lcc-win32 documentation.
dutcher, 22 pages
This document lists C++ coding recommendations common in the C++ development community. The recommendations are based on established standards collected from a number of sources, individual ...
dutcher, 12 pages
This paper describes FC++: a rich library supporting functional programming in C++. Prior approaches to encoding higher order functions in C++ have suffered with respect to polymorphic functions from ...
dutcher, 352 pages
Java 3D is a client-side Java application programming interface (API) developed at Sun Microsystems for rendering interactive 3D graphics using Java. Using Java 3D you will be able to develop richly ...
dutcher, 137 pages
Programming a computer is both a creative activity and a process structured by rules. Computers are programmed or given instruction, through the use of programming languages, so to program a ...
dutcher, 375 pages
Java includes a huge number of built-in classes and interfaces. The programmer can use already existing class as is, create subclasses to modify existing classes, or implement interfaces to augment ...
dutcher, 15 pages
This tutorial contains a beginner’s guide to Visual Basic 6.0, introducing the programming environment, defining key terms and introducing exercises to demonstrate the five control structures ...
rivas, 5 pages
The University of North Texas has for many years offered classes in game programming to Computer Science students and classes in game art and design to art students. A key feature of these classes is ...
feli, 69 pages
Skill Level: Introductory
The goal of this tutorial is to introduce you to the Java syntax you're most likely to encounter professionally, and to expose you to idioms that will help you avoid ...
DP 101 in 60 simple slides I t’s a cool way to work without QTP’s Object-Repository (OR) Why would I want to do that? Functions & Recovery scenarios work with different actions Different actions = Different ORs Do I know you? Can’t be sure… Can’t record certain objects Objects with changing hierarchies Nested inner-objects, Sub menus Hold still, damnit! Even when you think you got it, all the properties turn out null Why kill a fly with an atom bomb? No need to use the OR for every one-time click button in the application You can do VERY cool things with DP First, we need to better understand the Object Repository I thought DP is all about NOT using the OR… Well, yes, but under the hood, DP & the OR work the same way To understand the OR, is to understand DP A mysterious beast that records objects, in order to use them later What is to record an object? Write down how to identify it = How can I identify you? Identification is done with = Your height = 400 Your title = “NotePad” You are visible (=True) Collections of properties & corresponding values Each collection represents an object DP is a way for specifying the properties & values without using the OR interface No mysterious beast here, either OK, I get it, there’s nothing more than properties and values How do I actually use DP? Throw the properties and values straight into a command It’s the good old syntax you know, except the string between the () is not the OR name. It’s the property:=value identification string What if I want to use multiple identification properties? VBWindow(“height:=400”, “title:=New Document”).Maximize You can use as many properties as you like All fine and well, but what if I want to use regular expressions? VBWindow(“title:=.*Document.*”).Maximize ID strings are automatically interpreted as regular expressions Throw the properties & values into a description object, and throw IT into the command Here also, all the values are interpreted as regular expressions. To turn it off, use oDesc(“Property1”).RegularExpression = False Method 1 is faster, best used for one or two commands, tops When you want to execute multiple commands on an object, method 2 is a better choice by far (allows one-time definitions, multiple uses) VBWindow(“OR”).VBButton(“text:=OK”).Click Or (when oDesc is a description object): VBWindow(“OR”).VBButton(oDesc).Click But , you can only start from OR, and move to DP VBWindow(“title:=notgood”).VBButton(“clickme”).Click You can use each of the methods (or combine them), and you’ll be able to use objects that are not in the OR You said I could do really cool stuff with DP! We’ll cover some of the more popular tricks and tips These examples are only the tip of the iceberg. Play with them and see the true power of DP DP is nothing more than simple strings We can do such interesting things with strings… Say we got an app with 4 checkboxes, check0, …, check4 We can set all of them with a nice simple loop: Very complex identification tasks can be done via strings manipulation Try different variations for yourself When QTP finds two object which match the same description, it freezes ? DP has a magic property: “index”, which allows us to tell the double objects apart Index is a zero-based counter All is well Getting objects collections This feature is so cool, deserves a title on its own THE coolest thing you can do with DP, is to get a collection of all the objects that math an identification I don’t know who you are, or how many are you, but I want to mark all of you! Regular DP won’t help - Don’t know how to identify each checkbox Object collections to the rescue! Step 1: define a description object Object collections to the rescue! Step 2: get all matching objects Object collections to the rescue! Step 3: Use the collection oChildren now holds a collection of all the checkboxes So the first checkbox is accessed by: oChildren(0) Mark all checkboxes with a certain property (even RO) The possibilities are endless Input only mandatory fields Zero maintenance (new fields are added automatically, blind to UI changes) Select object which match complex identification criteria (write custom if filters) OK, this is indeed cool, but it only gets us the inner controls of a given window. Can we also get the application’s top level windows? So, With DP we can work with no OR Sometimes we have to use it Other times it’s just more fun and useful DP also throws in a lot of extras that make it an inseparable part of good QTP automation Taste it, Experience it, Learn it, Use it, Love it And that was DP in 60 slides
QTP Descriptive Programming.
Enter two words as shown below. If you cannot read the words, click the refresh icon.
QTP Descriptive Programming as:
Copy html code above and paste to your web page.
$39.27 - $59.99
$49.99 - $67.56
$42.00 - $87.44
$65.66 - $325.00
$21.16 - $30.38
$14.99 - $60.95
$6.51 - $39.99
$10.56 - $62.00
$26.21 - $59.53