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
Does QTP have any limitations?Can it work with all kinds of programming languages like java,springs,ajax ,hybernet?Also does it work well with windows 7.What are its other limitations
What is action? How many types of actions are there in qtp?
Explain object spy in qtp.
what you mean by artifact,milestone...
What are the differences between table and db checkpoints?
Explain the terms test and business component?
what is run-time data?
When I click on a link in web page.Link should open in new window.can anyone please let me know the script for this ---Koti
How do you handle multiple banners(at the top the page, the banner is scrolling) in a web page(Dont take the name property(regular expression))
How does qtp recognize objects in aut?
what type of run time errors you get while you ar edoing rpg program?
Explain different type of event trigger option.
How can we import into Excel "Details" ,"Result" ,"Time" parameters from within a Results Report which is generated after a Run error when a script is executed in QTP? Refer E.g below Status Functionality Description RunDate Fail Login User should be able to Login 12/3/2007 StartTime EndTime Details* 1:31:58 PM 1:32:29 PM (this one i want)
Suppose I created one object as virtual object? That object is applicable to that test? Or all the tests?
In order to select an automation tool for automating ur application, what r the things u need to consider? For eg i will go for automation; 1) When there is a lot of retesting and regression testing. 2) Return on investments. 3) Whether the tool supports the appln. 4)--------------, etc. Pls give me more number of points because my answer did not satisfy the interviewer. Very urgent pls