can anyone explain about the Descriptive programming in
detail. I mean how to use in the script.



can anyone explain about the Descriptive programming in detail. I mean how to use in the script...

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

More QTP Interview Questions

1.how can we report the QTP test result in a different excel sheet 2.

3 Answers   Aurigo,


What is the Difference between current version of QTP and QTP 8.2. Pls kidly Anybody let me know. Thanks in advance.

1 Answers   TCS,


If I change the property value at runtime is it effect is object repository?

0 Answers  


What is the need and applications of learning VB script for a automation(QTP) engineer ain Realtime ?

1 Answers  


why is execute file used.

1 Answers   Deloitte,






What is the qtp testing process?

0 Answers  


how to write testcases for web based insurance,from the script by using qtp.

1 Answers  


where exactly we can't do the automation testing. give some examples

2 Answers   Virtusa, Wipro,


in QTP we test web based application at that time what script is run? is support vb script? plz tell me

3 Answers  


Can we do server automation by QTP? If you have any helpful links ,pls post it. Thanks Uma

1 Answers  


anyone can explian about types of "Triggere Events" in QTP

1 Answers  


I want to run my qtp scipt on the system where qtp is not installed .I don't want to install qtp but i want that system should use the qtp from another system in lan just the qtp instance should be launched on that system without having qtp installed on it .I probably know the solution that it will be solved through RMI but how to get this problem solved plz help i anyone know the answer

4 Answers   Cimcon,


Categories