Pls let me know completely about descriptive programming,
where it is used, pls explain with a real time example of
its occurence and the program code written in qtp.

Answer Posted / subhan.qa

Whenever QTP records any action on any object of an
application, it adds some description on how to recognize
that object to a repository of objects called object
repository. QTP cannot take action on an object until unless
its object description is in the Object Repository. But
descriptive programming provides a way to perform action on
objects which are not in Object repository


There are two ways in which descriptive programming can be used
1. By creating properties collection object for the description.
2. By giving the description in form of the string arguments.


to know more about the descriptive programming please go
with fallowing link
http://bondofus.tripod.com/QTP/DP_in_QTP.doc

Thanks and Regards
Subhan.k

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How you can delete excel file in qtp?

590


Hi, I have 2 dropdown listboxes called region and city/area. It needs to select one region(Santa Clara) and one city/Area (Sunnyvale).So I put this in the for loop and I am storing the Items in the variable called itemname. The regions value will get changed,so I used reg expression for this regions. This is my code Browser("MLSListings.com").Page("MLSListings.com").Link("ยป County/Area").Click Browser("MLSListings.com").Page("MLSListings.com").WebList ("regions").Check CheckPoint("regions") ListSize=Browser("MLSListings.com").Page ("MLSListings.com").WebList("regions").GetTOProperty("items count") For i = 1 To ListSize-1 Itemname =Browser("MLSListings.com").Page ("MLSListings.com").WebList("regions").GetItem(i+1) Browser("MLSListings.com").Page("MLSListings.com").WebList ("regions").Select Itemname ................. If I run the script,I am getting the following error, Cannot identify the specified item of the regions object. Confirm that the specified item is included in the object's item collection. Any Help? Thank you, Uma

1340


How to suppress warnings from the test results page?

597


how to find that tools work well with your existing system?

1399


How QTP support all types of applications (platforms)?

4071






hi all can any body explain how to write the script for finding the mandatory fields which are having [red Astrik sign (*)]

1453


Have you faced any problems with object repository?

586


i have two questions for regular expression :- Q1. I have date pattern eg-29/11/2011 29-11-2011 29.11.2011 Que- if any separator is there between date,month and year pattern should match else it should not match eg- pattern should not match in case of 2911-2011 Q2. let say i have a string and there is a number in between of that string eg.-Amount 30002.234 successfully credited to your account . now i have to match this pattern in such a way that even if decimal is not there pattern should match ,how i will do this using regular expression

1018


What is parameter in qtp?

674


i have to login into gmail loginpage i have to pass testcase into userid and password by using functions. the test case of user id is it should take only lowerletters alphabetin between 4 to 6 length.it should not take spectial letters.it should not take numbers.testcase for password is it should take numbers and it should not take alphabets note the following things must happen 1 when i give correct password and userid that password and userid should be seen in QTP result and notepad,xl sheet 2 when i gave in valid password the system willgive message please give valid password that particular messaage should be seen in QTP result,norepa and xl sheet

1751


Write a script to customize the test results in PDF and HTML format.

2082


Hi, my requirement is to make a query in SQL using QTP. And i have to get the results of that query and i have to use those results for future testing. I created a driver but i dont know the code for using this Driver. please help me by providing the solution for y requorement

1635


Explain the types of object repositorys in qtp?

567


What is checkpoint in qtp?

548


Explain actions in qtp ?

551