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
What is throw Object?
What is different command used in command Prompt while using QTP?
can i change the runtime properties of an object ? How can i check if a parameter exists in database ?
In Test Directory, What are the contents in test case designing? if you prepare in excel sheet how u use thrw Test Directory?
Hi there, I've installed a trial version of QTP to see if it works with my product but I cant automate selecting windows from a tree view? Can anyone give me any pointers? Many Thanks
Explain how Does Run time data (Parameterization) is handled in QTP?
What is Port testing. Whhen will you perform?
Explain the features and benefits of quick test pro(qtp)?
What contains Data Driven Framework document in qtp?
How to create Reusable and Multiple Actions?
How you are developing the script? Using record and play back or manual?
i'm testing the webpage with QTP, in this wabpage i have to choose the CV from the window, but QTP can't recognize the object, so i used the Low LEvel Recording, but every time i run the test, QTP go to halt when it gets to the Recorded part, any solution for that?( except puting delay in the script and manuall selecting, because i've did that)
In the application that I'm testing is having a WYSIWIYG editor.QTP is recording editor's body as web element. I want to add some data to this web Element at run time. The problem is that I cant find a method to add contents to this web Element. Can any one come up with an answer for this. Thankx.
Explain the use of action split in qtp?
Explain the parameter in qtp?