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
What is difference between run time object and test object?
When using descriptive programming?
Explain the difference between call to action and copy action?
how to compare two bitmaps( 1. clients requirement & 2. Designed by dev) in qtp 8.2 wann clear steps
What are the recording modes in wave event?
what is stepin & stepout?
Where to use Property Let, Property Get, Property Set in UFT
How QTP identify the system time that's changes every seconds?
What are the ways you can synchronize?
what is meant by source control?
what is the frame work in J-meter?
Hi friends did any budy attend accenture system test for qtp? if any budy pls drop questions.not only accenture any other mnc company which you attended system test(QTP)?it may helpful to others also
Explain different type of event trigger option.
Explain step generator in qtp?
Can QTP be used for GUI testing ?, We are using Java with MySQL and Operating system is Linux. We are NOT using the web.