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
Could any one tell me "How can i recognize my cursor position using QTP 9.2" Give me a scripts for this
Tell some commonly used Excel VBA functions?
in data driven testing for performing operations which method is easy from manual test data,keyword view,or from database.and why?
when a test case is written how u test using qtp
When Recovery scenario actually starts while testing the application?
UFT 12.02 which ALM version will support
How does you test a weblink which is changing dynamically?
In Test Directory, What are the contents in test case designing? if you prepare in excel sheet how u use thrw Test Directory?
What is recovery scenario in qtp?
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?
How do you create regression test packs?
Discuss quicktest professional (qtp) environment?
How to handle the exceptions using recovery secnario manager in quicktest professional?
what is the difference between IE & Netscape in web testing on a log in page
How to create scenario selector