hai, i am doing QTP by own. So, i am confident in
checkpts,synchronization, data driven test, recovery
scenarioe manager etc. but actually i don't know how all
these we wil implement while we r writting code manually.
when we r doing practice, while recording code is
automatically generated but in real time i heard that we
have to write the script.But i don't know how it is?
How to write descriptive prog.? plz. tel me what r the
basic things we have to know? explain how to write
descriptive prog.? explain me with an example pls.......

Answer Posted / priya

Hi,
Descriptive programming means providing description of
objects in the script itself to identify the objects.
we will write DP in 2ways.
1.by using properties collections
2.by using Description.create
example:
Dialog("text:=login).winedit
("attachedtext:=username").set "xxxx"
dialog("text:=login").winedit
("attachedtext:=password").set "yyyy"
Dialog("text:=login").winbutton("text:=ok").click

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can any body please tell me the steps of keyword driven frame work in qtp. My mail is saswat445@gmail.com please send some materials on keyword driven testing in qtp. thanks a lot...

2013


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

1962


Which advantages helping QTP to hold the position of "Market Leader" for such a long period?

1588


Which is the best QTP training institute in Delhi/NCR region and what is the approximate fee for QTP course (Basics and Advanced)

1602


Can any one tell me about "Mapping Repository Parameter Values" and why we use it....??How to use it???Please, tell the preconditions also...........???? Thanks in Advance

1721


How to run a test using quicktest professional (qtp)?

771


What are main panes available in qtp test browser?

723


Explain how Does Run time data (Parameterization) is handled in QTP?

760


How to remove the associated function library?

738


Where is the Bitmap checkpoint information stored?

1973


I want to read XML file loaded in Quality center and compare the values with the values displayed in Application (web table).How can I do that

1625


what is clean sweep?

1716


descriptive program for a yahoo mail that is in yahoo mail suppose check box mailid subject assume it is like this format all things are in webtable the question is suppose some mail ids are there in that mailids i want to select the check box wich is before a@gmail.com and after that i want to click on delete button

2003


What is the new version of qtp which is recently released in the market?

845


what is the difference between the modular framework and datadriven frame work

2137