anybody give me the real time example for descriptive
programming of web application
Answer Posted / 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 |
Post New Answer View All Answers
If object is not recognized by qtp but the object is standard object what is your approach?
What kind of performance is expected on the client side (e.g., how fast should pages appear, how fast should animations, applets, etc. load and run)?
What is expert view in qtp?
How to add verification steps to tests?
Which functionalities of QTP used in banking project? pls any say answer?
what r the main attributes of test automation?
How to test background color and dynamic images during run time can you put the check point for moving objects?
How does QTP identify an object?
What is the extension of QTP local Repository? If it is .mtr then what is .bdb extension stands for?
Can the user toggle between using Local OR and shared OR for the same action?
If we put all properties in mandatory and assistive list of Normal Identification, Do we still need Smart?
What is synchronization point in QTP?
How can I find out the cursor position through QTP suppose I am keep tabbing(Pressing the tab key continuously) and stoped at a position Now I want to find out where the cursor position is
Give me At Least 5 Differences between DOCUMENTATION OBJECT MODEL(DOM)and COMPONENT OBJECT MODEL(COM)? Interviewer said me to WRITE the difference only in points not as you WRITE a paragraph ???? only in points
.have you ever written compiled module? if yes , tell me about some of the function that you wrote.