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 |
To which environments does quicktest professional (qtp) supports?
What is keyword driven framework, what is "key" in It.
Which object repository we use in real time and can we merge 2 object repostiory and how?
what is objectidentification?
New to QTP: In a qtp flight booking application, I tried to parameterize the to and from drop down lists using data table, depending on ur drop down selection it will pop up a list of flights. Here I am not finding a way to select flight randomly from given list... Thanks in advance guys.
what is the difference between development and testing
Define QTP ?
What is CMMP and CMMH?
what are the drawbacks for record and payback in qtp
How to Compare two database tables by using QTP?Please give me code details.
what are the environment variables,how do you use them. give an example.
When u ll use Record Button in QTP?Is VB script is Mandatory in QTP? What is Meaning of Frame("v1")?