How to write descriptive programming, Give an example with program by taking objects like textbox, listbox, password e.tc

Showing Answers 1 - 6 of 6 Answers

rAJENDRA pRASAD

  • Jun 21st, 2007
 

this is the way to write the descriptive progrDialog("Text:= Login").WinEdit("Attached Text:= Agent Name:").Set "asdfg"Dialog("Text:= Login").WinEdit("Attached Text:= Password:").SetSecure "mercury"Dialog("Text:= login").WinButton("Text:= OK").Click

  Was this answer useful?  Yes

1. By using object spy just we identify the properties of the particular object.

2. Descriptive programming is two types
a) Static
b) Dynamic

Script:
Static:
Dialog("text:=login").winedit("attached text:=Agent Name:").set "dfhsdfhf"
dialog("text:=login").winedit("attached text:=password:").set "fghdfh"
dialog("text:=login").winbutton("text:=OK").click.

First of all we have to identify the properties of the particular object by object spy options in the QTP.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions