what is descriptive programming in QTP? How can be done?
Answer Posted / amit puhan
: Programming is done without using the object repository
is called descriptive programming. To do this we provide
QTP the list of properties & values, that qtp can use to
identify the object on which we want to perform the
operation. There 2 methods on
Which we go for descriptive programming
 Specify the list of properties and values, which
describe the object directly in the statement.
 Use a description object which has a method cold
create
Note: - When the objects that create dynamically. Console
based application, lesson of object in the application.
Is This Answer Correct ? | 17 Yes | 7 No |
Post New Answer View All Answers
Explain the N-tire structure(process) for Funds Transfer ( means give N ways to funds Transfer in an Application)
I am facing an issue of object identification with the dropdown element of DHTML grid. When I tried to recognize these different dropdown objects, QTP identifies only one object for all the dropdowns. Hence, selection of different data from different dropdowns list is an issue. To overcome this problem, i have used Descriptive Programming technique by creating different object descriptions which have all the other properties same but differ only in one property i.e. ‘X’ location of the element on the screen. Hence, i have created distinct object descriptions that would allow us to select values in different dropdowns. The code is given below. But still I am unable to identify distinct dropdown objects. ‘Object Description for Dropdown Cell Status Set objCellStatus = Description.Create objCellStatus("micclass").value = "WebList" objCellStatus("name").value = "select" objCellStatus("x").value = 219 ------ ‘X’ Axis value for cell status drop down ‘Object Description for Dropdown Sub Segment Set objSubSegment = Description.Create objSubSegment("micclass").value = "WebList" objSubSegment("name").value = "select" objSubSegment("x").value = "319" ------ ‘X’ Axis value for sub segment drop down Please help... This is specific to DTML grid(Drop down object)
Have you faced any problems with object repository?
how can we preform retesting(DATA driven test) using function please gine the code for loginpage
how to know no.of mails in our g mail by using vb-script
What are the types of data tables in qtp?
How to find the difference between 2 dates in qtp?
What is the default add-ins in qtp?
What is action?
Explain different types of action in qtp?
write a script to verify the image path(src property) of the images which are in web pages.
How to integrate QTP with QC using VB Scripting? What are the prerequisites to connect with QC?
Can any one send me the QTP Basic Coding Samples?
Explain how you can find the absolute value of the number in qtp?
can i change the runtime properties of an object ? How can i check if a parameter exists in database ?