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
Explain the terms test and business component?
Through array we can execute the testcase how ? give me example
HI, pls help me on this, iam not able to capture getcelldata value in javatable... msgbox javawindow("").javatable("").getcelldata(3,3) but it diaplays empty...
Explain the features of quick test pro(qtp)?
Explain how to use QTP to check broken links on a page?
Diff b/w test scenario's and test Procedures?
In keyward driven framework what will be the step for yahoo login page ,inbox logout,plz explain in detail
What are the flaws in water fall model and how to overcome it?
How to use transactions in qtp?
How can i use virtual objects? If have i created one new virtual object in a virtual object manager by following instructions.
how can i sent QTP results to the Html, notefile ,xl file give me the code using g mail login page
Can we access the java methods in qtp. Because my requirement is to access the swt(for eclipse an it is java code) methods in qtp is it possible?
PLEASE TELL ME WHEN DO YOU USE THE OBJECT SPY AT RUN TIME
What are the major/ important methods, functions in QTP we use realtime testing
How is recording done when a application is over lapping the QTP application it gives a message object not recorded