what is descriptive programming?
Answers were Sorted based on User's Feedback
Answer / rajendra pradeep
Make QTP to run an application through Script.
The Script may contain .VBS functions,JS files,XML Files.
Describing an object with in an application without
recording the properties of that object is
called "Descriptive Programming"
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / vinu
Instructing QTP to perform Operations on AUT objects which
are not present in Object repository.
Whenever QTP records any action on any object of an
application ,it adds some description on how to recognize
that object to a repository of objects, which is known as OR
(Object Repository)
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / ravindra
Descriptive programing is nothing but without using the
objectRepositary we are writing the script for the
functionality.
Suppose we have a web application that has not been
developed yet.Now QTP for recording the script and adding
the objects to repository needs the application to be up,
that would mean waiting for the application to be deployed
before we can start of with making QTP scripts. But if we
know the descriptions of the objects that will be created
then we can still start off with the script writing for
testing.
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / 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 |
Answer / mukesh
Descriptive Programing is nothing but but describing the
object properties in the script itself. We do not need
object reposiroty for descripting programing. and one more
thing is that we cann't use check points in descriptive
programing, since we will not use object repository in DP.
| Is This Answer Correct ? | 1 Yes | 2 No |
hi i have one isuue on selecting webcheckbox .there are 15 wecheckboxex i want to select every time 9 th one how can i select plese help me regards balaji
Given a string variable contain a full name (last name, first name), using vbscripting, how can you extract first and last name and save them into two different variables.
how to create external data table?
we have 5 default properties we want add more Default property in Object Repository how to add the property
How to match two doc files using qtp requirment is:- each and every single word of a doc file should be matched with the another doc file. can someone send me the code.
Suppose i have a script which is having 100 lines.I want to execute that script starting from line no 75.means first qtp should read the script from line no 75 how can u do it.
5 Answers Lehman Brothers, rsystems,
How to find Operating system information using QTP script?
write a script to validate the content in the web application. (do it by OR method) and (do it by Descriptive method by creating a description object.. (give a filter condition only WEbelement- not easy need to use some more property while giving filter condtions- use google for your help...))
How many ways we can parameterize data in QTP?
why can't you use excel directly in qtp. why we want to import excel data into Datatable.
I am sathish , i want to test the Application of JIL.org ,Mobile Emulator ,by using QTP10.0. I am trying to do testing on that Application , but Child Objects are not identified by the QTP. Please can any one help me
How do u write a regular expression for date (dd/mm/yyyy) field ?