anybody give me the real time example for descriptive
programming of web application

Answers were Sorted based on User's Feedback



anybody give me the real time example for descriptive programming of web application..

Answer / shyam.meghansh

DP is advance topic in QTP. With out loding obj in repo...
we can access them..... this is one of the example for that

systemutil.Run("http://www.rediffmail.com")

set BRO =Description.Create()
BRO("title").Value = "Welcome to Rediff.com India"
BRO("name").value ="Welcome to Rediff.com India"
BRO("openedbytestingtool").value= true


Set PG =Description.Create()
PG("title").value="Welcome to Rediff.com India"
PG("url").value="http://www.rediff.com/index.html"

Set UN =Description.Create()
UN("name").value= "login"
UN("Class Name").value ="WebEdit"
UN("type").value= "text"
UN("html tag").value="INPUT"

Set PWD =Description.Create()
PWD("name").value ="passwd"
PWD("Class Name").value="WebEdit"
PWD("type").value="password"
PWD("html tag").value="INPUT"

Set Login =Description.Create()
Login("name").value ="Go"
Login("Class Name").value="WebButton"
Login("type").value="submit"
Login("html tag").value="INPUT"
Login("value").value="GO"
Login("class").value="rmailgobtn"

temp= Browser("Welcome to Rediff.com").Page("Welcome to
Rediff.com").WebElement("ShockwaveFlash1").Exist
If temp= true Then
'Browser("Welcome to Rediff.com").Page("Welcome to
Rediff.com").WebElement("ShockwaveFlash1").
End If


Browser(BRO).Page(PG).WebEdit(UN).Set "shyam_sad"
Browser(BRO).Page(PG).WebEdit(PWD).Set "7shyam"
Browser(BRO).Page(PG).WebButton(Login).Click

Is This Answer Correct ?    10 Yes 0 No

anybody give me the real time example for descriptive programming of web application..

Answer / vvgiri2k6

dp means without using repositury tool will identify the
object using property values.
ex browser("name").page("name").webbutton("name")

for this line descriptive program is

browser("window id:=1005").page("window
id:=22").webbutton("window id:=787")

we can use any property but that should be unique
here i used window id like that we can use any propery.

Is This Answer Correct ?    5 Yes 0 No

anybody give me the real time example for descriptive programming of web application..

Answer / rama

web appication testing means testing the external
link & internal link of the web page.

Is This Answer Correct ?    0 Yes 0 No

anybody give me the real time example for descriptive programming of web application..

Answer / lakshmanalal kintali

the idea behind the descriptive progrmming is not bypass
the odject Repository but helps the recognize dynamic
objects.in D.P u don't store the object and its properties
values in O.R but mention the properties values in directly
on the script

Is This Answer Correct ?    0 Yes 0 No

anybody give me the real time example for descriptive programming of web application..

Answer / lakshmanalal kintali

the idea behind the descriptive progrmming is not bypass
the odject Repository but helps the recognize dynamic
objects.in D.P u don't store the object and its properties
values in O.R but mention the properties values in directly
on the script

Is This Answer Correct ?    0 Yes 0 No

anybody give me the real time example for descriptive programming of web application..

Answer / shah

I used descriptive programming when the object's property values are changing dynamically. I used descriptive programming when I am supposed to start testing before the build is deployed. or when I don't want to add objects in the object repository for e.g, I was testing a web application and it has 10 pages that are integrated with each other and each has three buttons (ok, cancel, and help) if I add those buttons in the object repository I have to add 30 objects so instead of adding it to object repository I used descriptive programming.

Is This Answer Correct ?    0 Yes 0 No

anybody give me the real time example for descriptive programming of web application..

Answer / nash

Descriptive programming means nothing but loading the object
respository by writing code not by recording..

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More QTP Interview Questions

Describe the process for writing text check point for a web application?

2 Answers   ssinformatics,


Hi... Can anybody help me to write the vbscript for this question..!!! Am having a string "HELLO WORLD", i want to find how many "L"s are there.....????? --> HANEEF <--

5 Answers  


You have a WebTable in Web application. When you Record a Scenario using QTP, WebTable didn't recognized and also Repository is not having Webtable information. In this case How to find RowCount and Coloumn Count?

2 Answers   PanTerra,


Explain the difference between smart identification and object identification withn clear example. please it is very urgent

2 Answers   Wipro,


What is the use of running the scripts in Hidden-mode in UFT?

0 Answers  


Tell me Three major differences between QTP & Winrunner?

5 Answers  


How can i use Ordinal identifiers and Smart identification methods suppose i want to know the index no of check box

1 Answers  


What is InStr()

6 Answers   Kanbay,


if there r 10 windows open in QTP write a command to close all 10 windows at a time ?

11 Answers   Wipro,


What are the different properties of an web object

0 Answers  


i have a doubt can anyone tell me where are scripts stored while using QTP.Tell me the exact procedure takes place in real time?like how we call scripts how to proceed after writing scripts?how scripts are executed etc?i heard some use Qc whether others dont use.so tell me whole procedure for both the things it will be a very big help.as i have interview i want to have whole idea on this.its very urgent.

0 Answers   RR Donnelley, RRDonnelley,


If the object property is changing very frequently, what was your approach?

2 Answers  


Categories