what is descriptive programming?

Answer Posted / chaitu

Descritive Programming is develoed based on VbScript

Descriptive prog. execution is mainly based on Object
Properties description

when u want to write DP then first u go for
description.create()Object with assigning of object
properties

generally we can identify object properties with the help
of OBJECT SPY


for Example we want to prepare DP for Login operation
Step1 : Prepare Object Descripton

Step 2: Write VbScript for that Login Operation(with help
of DP)
SystemUtil.Run "Path of Server","",Path of .exe".Open
Step 1
Set Login_Obj = Description.Create()
Login_Obj ("name").Value = "Login"
Login_Obj ("micclass").Value = "Dialog"

Set Uname_obj = Description.Create()
Uname_obj ("name").value = "username"
Uname_obj ("micclass").Value = "WinEdit"


Set Pword_obj = Description.Create()
Pword_obj ("name").value = "username"
Pword_obj ("micclass").Value = "WinEdit"

Set Ok_obj = Description.Create()
Ok_obj("name").value = "OK"
Ok_obj("micclass").value = "WinButton"


Step2
Dailog(Login_obj).Activate
Dailog(Login_obj).WinEdit(Uname_obj).Set "xxxx"
Dailog(Login_obj).WinEdit(Pword_obj).SetSecure "xxxx"
Dailog(Login_obj).WinButton(Ok_obj).Click

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Could any one tell me "How can i recognize my cursor position using QTP 9.2" Give me a scripts for this

2270


Tell some commonly used Excel VBA functions?

822


in data driven testing for performing operations which method is easy from manual test data,keyword view,or from database.and why?

1573


when a test case is written how u test using qtp

1896


When Recovery scenario actually starts while testing the application?

1779


UFT 12.02 which ALM version will support

1210


How does you test a weblink which is changing dynamically?

787


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

1679


What is recovery scenario in qtp?

780


An action has both shared and local OR associated with it and both have the same object in them. In the test which one will be considered?

802


How do you create regression test packs?

865


Discuss quicktest professional (qtp) environment?

778


How to handle the exceptions using recovery secnario manager in quicktest professional?

887


what is the difference between IE & Netscape in web testing on a log in page

2033


How to create scenario selector

1714