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 Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

suppose in the middle of the project QTP will not work properly, then what do u do? and ur team?

1585


What are some test assets and related extensions of qtp?

751


For which type of projects the iterative model is not suitable?

1652


what is the difference betn QTP 8.0 AND PREVIOUS VERSION

2153


What is the use of defining a newobject in the object repository "Define New TestOject". How to use this further. If we define new testobject, how can it recognizes the objects properties of any application.

1701


What are the ordinal identifiers in web page?

822


what are the issues we will get when there is migration from QTP 8.2 to QTP 10.0? Is there any problem in executing scripts of 8.2 on 10.0?

1650


Hi Every body please explain me in steps to use checkpoints and object Repositories in QTP for Flight Reservation application please tell me the steps for this its urgent pls thanx for urs answers

1799


Why do we use "Text checkpoint" If we can make use of it in "standard checkpoint" ?

1681


How can you identify the browser and its information using QTP script?

751


how can you do retesting (datadriven test) using notepad amd by using functions NOTE u should not use datatable methods

1608


Is it possible to use two instances of UFT on the same machine? If not why?

808


How to analyzing the checpoint results?

710


How many add-ins comes by default with quicktest professional (qtp)?

747


What is a quick test professional?

901