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

In the QTP the snap shots obtained during the recording time will appear in the active screen, if we have to use the snapshots from where we have to access. in which memory location of QTP they will be stored?

1 Answers  


In an Excel sheet take two fields as agentname and password and type some valid agentname and password.call that excel sheet in qtp so that qtp opens the flightreservation window taking into consideration how many records are entered in the excel sheet.For example if 3 records are entered today it will open 3 FR windows,if in near future the records are more than 3 then it will open that number of times.

3 Answers  


whenever U using QTP,Test Director, Why we using separate Bug tracking tool?

1 Answers  


What is deference between normal QTP testing and descriptive programming?

4 Answers   Polaris,


setroproperty and getroproperty difference

5 Answers   Ordain Solutions,






. My application is updating the user information in the application. Every time it is Adding on record in my application and Validating the information like “Record has added successfully”. Which Check point I have to put in this situation? Why?

5 Answers   Polaris,


How to watch currnet value of an object like OK buton or edit box with "Agent Name:" label. in watch expression tab?

2 Answers   Cap Gemini,


What is QTP testing process?

0 Answers  


hai, i completed my b.tech in 2010 with 62.3%. i having knowledge on manual testing and Qtp. i want Relavent experience in testing.watever may be d salary i dont bother..I just want to gain knowledge. i dont have good communication skills.

0 Answers  


what is the difference between modular framework & datadriven framework

0 Answers   SDS,


for example one window is there, the window contains how many edit box's i want script? i know the script but that is not exact answer.... The script is like this .......... set a=description.creation() a("Native class")="WinEdit" b=window("Flight Reservation").childobject(a).count msgbox b if u found exact answer please getback to me? raju.ippali@gmail.com 9823257761

1 Answers  


We are using the QTP version 9.0 where we want to call objects from global repository for a particular function at runtime for increasing the performance of framework.We are actually looking for loading the objects under test (OAT) dynamically when script runs and would like to unload the same once the execution of the script is completed.

2 Answers  


Categories