what is descriptive programming in QTP? How can be done?
Answer Posted / ravi
It is something like instructing the QTP to perform
operations on objects without refering to the Object
Repository. To do this we provide QTP with a list of
properties and Values that QTP can use to identify the
Object on which we want to perform the operations.
There are basically 2 ways
1. We can list the set of properties and Values that
describe the object directly in the statement
Propertyname:=Property Value, --------, PropertynameN
N:=PropertynameN
2. Using Descriptive Object:
Here we do create a Descrition Object and add the property
name and it's Valuse to the Description Object. We pass
this description object to the QTP statement.
Set < Var name > = DESCRIPTION. CREATE
< Desc OBJ / Var Name >.
(<"Propertyname1">.value=<propertyvalue1>
- If we want to add more more properties we have the follow
the above
---
---
---
< Desc OBJ / Var Name >.
(<"PropertynameN">.value=<propertyvalueN>
| Is This Answer Correct ? | 19 Yes | 7 No |
Post New Answer View All Answers
How to make qtp understand the difference amongst the same type of objects .suppose there are 5 check boxes in a page and I have to choose the 2nd one, how to do that through script?
Explain the concept of how quicktest professional (qtp) identifies object?
How to use setroproperty?
I have many listboxes in my application. I have to check whether the contents inside the listboxes are in sorted order or not..can anyone please send the code as early as possible
How to find Operating system information using QTP script?
when I was doing the web testing with QTP using with standard checkpoint the Object selection -checkpoint properties dialog box not displaying pages and links hierarchical order. Could you please tell me. thanks
Hi Friends, Im planning to do certifcation in mercury Automation Tool QTP.But I Didnt get any clear details regarding course syllabus, fees, where to approach, and which certification would be useful for the experienced testers? can any one send me the details?
how to explain a claims and insurance project?
I recorded a Web App with a Oracle backend using QTP 9.5 and for some reason the scripts don't play back> What am I missing at this point. I recorded the same Apps under Sybase and they work great. This is Oracle 10g. Why won't my scripts play back.
What is the default add-ins in qtp?
Does QTP have any limitations?Can it work with all kinds of programming languages like java,springs,ajax ,hybernet?Also does it work well with windows 7.What are its other limitations
How to Test the mainframe application?
What is the difference in testing a client-server application and a web application?
How to capture dynamic values in load runner and how Each of the captured values are to be written to a text file (c:\temp\LoadRunner1.txt)
There is an built in window application in qtp9.1,i.e.Flight4.0.i want to implement the recovery maneger on it.How can i do this?