can anyone explain about the Descriptive programming in
detail. I mean how to use in the script.
Answer Posted / shyam.meghansh
Descriptive Programming comes under Advance QTP .... in
this we do not require any objects in object repository....
with out adding objects in repository we can test the
application .... the concept DSP
so in DSP we will not add the objects in repository....
inside we will take the logical names of the object and
accesss those... chk one of the example
*============================================*
systemutil.Run("C:\WINNT\NOTEPAD.exe")
Set Open_Pad=Description.Create()
Open_Pad("text").value="Untitled - Notepad"
Set Text_Area=Description.Create()
Text_Area("window id").value="15 "
Set File_Menu=description.Create()
File_Menu("window id").value="262737"
Set File_Menu_Save=description.Create()
File_Menu_Save("window id").value="0"
File_Menu_Save("x").value="681"
File_Menu_Save("y").value="53"
'#32768Menu
Set Save=Description.Create()
Save("text").value="Save As"
Set Enter_File_Name = Description.Create()
Enter_File_Name("attached text").value="File &name:"
Enter_File_Name("window id").value="1148"
Set Save_Button = description.Create()
SAve_Button("text").value="&Save"
Set File_Menu_Close=description.Create()
File_Menu_Close("window id").value="0"
File_Menu_Close("x").value="681"
File_Menu_Close("y").value="53"
Window(Open_Pad).WinEditor(Text_Area).type( "This is shyam
doing the descriptive fro notepad")
Window(Open_Pad).WinMenu(File_Menu_Save).Dialog
(Save).WinEdit(Enter_File_Name).set "demo"
Window(Open_Pad).WinMenu(File_Menu_Save).Dialog
(Save).Winbutton(Save_Button).click
Window(Open_Pad).WinMenu(File_Menu_Close)
*============================================*
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
explain keyword driven framework with banking domain?
How to get the particular property value?
Explain step generator in qtp?
What is the default object synchronization timeout in qtp?
can the activities of test case design be automated?
what are the critical test cases in crm? tell me atleast 5 critical test cases? what are the critical bug u find out while testing crm domain?
Have you done batch testing in qtp? If yes how you are doing?
Hi Friends, Would be great if you can provide the Model Question paper, Web site link or any reference s. Thanks & Regards, Byzoor,
How to Get the Run-time value of an object under that web app under Test to the local data table sheet of that Action?
How can you give wait up to 10 seconds in qtp?
Client is able to provide budget..he want you to choose the automation tool for the web application? which one you will select ? QTP or Selenium ? what are the reasons?
What is Test Fusion Report in QTP?
Discuss quicktest professional (qtp) environment?
What is the Difference between copy to action and call to action?
what is run action?