I have thousands of links are there, i want check each and
every funtionality of link by using descriptive programme,
retrive link name from excelsheet then operate in
application. Please anybody send me model script
Answer / tvsramakrishnachowdary
Soppose i Have excel file in the "D:\links.xls" which
contain all link names in the "Sheet1" with column
name "Link_Name".Let us assume Here link names i gathered
from Gmail Login Page ok....now my approach is as below..
pre req setting in the QTP:
1)Goto File
2)setting->run tab
3)check run one iteration only
datatable.import "D:\links.xls"
set mylink=description.create
mylink("mic class").value="Link"
mylink("html tag").value="A"
linkcoll=browser("name:=Gmail.*).page
("title:=Gmail.*).childobjects(mylink)
cnt=linkcoll.count
for i=1 to datatble.getrowcount
datatable.setcurrentrow(i)
explink=datatable.value("Link_Name",1)
msgbox explink
for j=1 to cnt-1
actlink=linkcoll(i).getroproperty("name")
if explink=actlink then
linkcoll(i).click
if (browser("name:=Gmail").page(<here new page
title>).exist then
msgbox "Link Pass"
else
msgbox "Link Fail"
End IF
End IF
Next
Next
| Is This Answer Correct ? | 0 Yes | 0 No |
3.How to record a word doc using qtp i.e open a word doc,type something and save the doc can someone send me the code.
Under what conditions would you recommend QTP for future projects?
How to handle the exceptions using recovery scenario manager in QTP?
Explain the checkpoint in qtp?
What is Automation frame work.How we will prepare in real time.
WHAT IS THE SIZE OF OBJECT REPOSITORY USING IN YOUR COMPANY? Can any body tell me answer of this quation........
How does qtp recognize objects in aut?
What VBScript operators, functions, and statements do you use in QuickTest Professional?
How can you close the second opened browser?
Please Explain The QTP real Testing process with steps.
explain virtual object? in detailed? pls any one explain me?
What is the D/B Test managemet tool and bug trcking tool? Ans send to pbr.qtp@gmail.com