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.......

Answers were Sorted based on User's Feedback



hai, i am doing QTP by own. So, i am confident in checkpts,synchronization, data driven test, reco..

Answer / 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

hai, i am doing QTP by own. So, i am confident in checkpts,synchronization, data driven test, reco..

Answer / srujan

Hi your saiyng that, doing your own..just go to help and
type descriptive propg in QTP help then u can find the ways
to write the desc pro. the syntax for writing descriptive
pro is "property := value" just findout..

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

Call to copy of an action and call to existing action… i know the diff but in real project how to use..? i want live scenario.pls help me..

0 Answers  


1.How to record ,capture and also script to capture the close buttons. 2.How to record ,capture and also script to capture the options ---File ->save and File ->close in a browser and PDF files. 3.How to compare the Excel sheet values in a report using QTP scripting. 4.How to compare 2 PDf reports using QTP scripts as well reording. 5.How to compare 2 Excel reports using QTP scripts as well reording. 6.How to save a PDF report to a folder and then translate the report to an Excel type of report and compare that Excel Report with an other excel report. Please clarify me

0 Answers  


How many types of trigger events are there in qtp?

0 Answers  


write a qtp script to enter user name & password for flight reservation login page from excel sheet

1 Answers  


How to enable the text check point in qtp? By default it is disables

1 Answers   Sify, ssinformatics,


QTP identifying the child tabs in a maintab like tab_1,tab_2,tab_3,tab_4 while using a for loop for these tabs.its not proceeding from _1 to _2. How can i use "for loop "

2 Answers   Livetek,


why don’t use real time they r not using check points

1 Answers   Wipro,


Why you have to add the specific add in in QTP? My answer is to recognize the specific objects we have to add the add-in in QTP...but he asked again after adding addin how qtp recognize the objects successfully? what is there in the add-in ?

1 Answers   CTS,


The string is like POWER STAR PAVAN , write a script for this how to findout the number of "A" in the string ?

7 Answers   TCS,


Does QTP provides any tools for parametarization?

3 Answers   BirlaSoft,


What are the technologies supported by qtp?

0 Answers  


how i can delete the excel process for the task manager using QTP

2 Answers  


Categories