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

Can any give an example(if possible templates) how to test web application using QTP. thanks in advance

1561


Does QTP record on Objects created on XWindows Environment?

1665


what r the main attributes of test automation?

1480


What are the recording modes in wave event?

1539


what is the difference btn risks & Therads in the Test plan documentation?

1592






Dear Friends, I having total 3+year experience in manual testing including automation testing QTP, if i am attending any interview what kind of question will i get? please help me out

1588


Hi,All How to create a link in excel sheet using qtp

3003


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

643


What do you mean by iteration?

632


How to delete an object from the object repository?

595


What are the different types of action?

560


What are the key points to create a framework in QTP for oracle forms?

1814


breef description of batch testing ?

1711


What is the default add-ins in qtp?

558


In an interview, what r the general questions asked in QTP? pls give me anwser to this question?

1421