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
Can any give an example(if possible templates) how to test web application using QTP. thanks in advance
Does QTP record on Objects created on XWindows Environment?
what r the main attributes of test automation?
What are the recording modes in wave event?
what is the difference btn risks & Therads in the Test plan documentation?
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
Hi,All How to create a link in excel sheet using qtp
What kinds of security (firewalls, encryptions, passwords, etc.) will be required and what is it expected to do? How can it be tested?
What do you mean by iteration?
How to delete an object from the object repository?
What are the different types of action?
What are the key points to create a framework in QTP for oracle forms?
breef description of batch testing ?
What is the default add-ins in qtp?
In an interview, what r the general questions asked in QTP? pls give me anwser to this question?