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
How to test the login page in different ways in automation testing and i need code?
In qtp, how you can remove the spaces from string?
Explain the difference between check point and output value?
What is meant by a Check Point in UFT? Also, explain the applicable Check Points.
what you mean by artifact,milestone...
am not having intrest in coding lang like c c++ java etc can i choose Testing tools as my carrier and please suggest me which tool is good (suitable for me)
whare exactly we have to use functions and sub routain
How can we conduct U-I Testing by using QTP??????
Describe how Smart Identification is used
Name the different types of recording modes?
Please help me by providing the License key for QTP 9.2, at guru_aarya@yahoo.co.in Best Regards Gururaj.B
"What are the common constrains that we need to consider when we prepare testcases for ASP application". Thanks in Advance...
How to use conditional loops in qtp ?
What is the expert view?
How many types of actions are there in quicktest professional?