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
How you can find length of array in qtp?
breef description of batch testing ?
1.How to record ,capture and also script to capture the close buttons. 2.How to record ,capture and also script to capture the options ---File ->save and File ->close in a browser and PDF files. 3.How to compare the Excel sheet values in a report using QTP scripting. 4.How to compare 2 PDf reports using QTP scripts as well reording. 5.How to compare 2 Excel reports using QTP scripts as well reording. 6.How to save a PDF report to a folder and then translate the report to an Excel type of report and compare that Excel Report with an other excel report. Please clarify me
How many tabs are available in debug viewer pane?
Hi there, I've installed a trial version of QTP to see if it works with my product but I cant automate selecting windows from a tree view? Can anyone give me any pointers? Many Thanks
When ‘option explicit’ keyword is used in qtp?
How to Get the Run-time value of an object under that web app under Test to the local data table sheet of that Action?
can any body plz help by sending the qtp docs and qtp ppt's? this is my mail id:murali.padeti@gmail.com
What is method name to compare two XML files.
How many number of actions possible in qtp?
Why is Client side image is preferred over server side image?
Can we use index on view?
What is regular expression?
What should we say if interviewer asks "What is ur project architecture?".......Can any one help me with clear information.?????????
can any body tell me how i create a simple script and apply output value on it .pls send me a step by step process