Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 to run an integrated test scenario using Multiple Actions? How to use the QTP Step Generator?

3926


how can we test the Triggers, Cursors, Indexes while doing Database testing in DTP??

2022


What is the use of sendkeys and what are send keys

2411


supose i hv to acsess some functionlaties of a test in 1 machin , some part other machin how can acsess?

1745


WAT IS DATA BASE AND XML CHECK POINT ?HOW TO IMPLEMENT IT ... GIVE PROPER EXAMPLE FOR IT

2085


What kinds of security (firewalls, encryptions, passwords, etc.) will be required and what is it expected to do? How can it be tested?

1035


What is qtp window?

942


Can you brief the hurdles you faced during Automation testing?

986


How to do call a output parameter from one action to another action??/

2314


How to integrate QTP with QC using VB Scripting? What are the prerequisites to connect with QC?

1856


Have you done batch testing in qtp? If yes how you are doing?

875


i am looking job in perfomance testing using Loadrunner any one help me a project plz......?(Chandana) chs_29@rediffmail.com

1827


If the weblist is identified as webelement,and by clicking on webelement if the values are displayed,and if the values the values also identified as webelement.then how to fetch the values through script?

5173


What is the architecture of your project? Can any one answer for this question plz........

1830


Generic function to search for the unique link in webtable and click on it

3016