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


Please Help Members By Posting Answers For Below Questions

How many types of Automation frameworks are there in UFT? Describe them.

559


What do you mean by iteration?

630


In Test Directory, What are the contents in test case designing? if you prepare in excel sheet how u use thrw Test Directory?

1506


Could you please any one give code for the following ? Scenario : Suppose a excel file contains 10 records and earch have 5 fields. how can i input this excel file for datadrive wizard ? Please explain

1459


Give the syntax to import/export xls into qtp.

588






Does QTP run in any environment?

614


What is the difference between local and shared object repository in qtp?

563


How will we compare the texts in the two word files using QTP writing the script in Descriptive Programming. Thanks

1544


how to i add the values using the check points property?( i.e valid data(for valid data it's giving the footer message:value is added) and for invalid data: special chars, spaces,Duplicates and null values (in my page when ever we enter special chars, spaces and null values, it's giving the proper warning message and for Duplicates it's giving the footer message:"value already exists)?

1422


Have you used xml check point in your project? How?

549


after click on compose mail how can we attached a file in qtp with vbscript code

1612


what is the difference between data driver & data driven and driver script?

2137


Hi any body pls help me for QTP 11.0 software free demo version. i have to practice. Kindly send the link.or where i have to download.

1623


Hi, I am using OutputCheckPoint and I am storing the value in the data table. The stored value for column:bedroom:"Bed:4" The another value for column:bathroom:"Bath:2 Full,1 Partial" I need only the no 4 from the first column. I need only the no 2,1 from the second column. I used split array,but it also show array(0) has the value"bed:4" ..... Even though I highlight only 4,It is seleting the full value "bed 4".How can I get only the nos Thank you Uma

1301


Hi! My OTP script has several bitmap checkpoints included which I check in the test results xml file. The test is for SAP 4.7. I need to save these bitmaps to files or at least export them to the html file using the export function in the test results viewer. Could you please help me with this problem? Thank you in advance! Best regards, Peter

2199