Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Launch multiple links via Excel by exec QTP
#1
Solved: 11 Years, 4 Months ago
Hi All,

I am new to this forum and so far I enjoy it.
Thanks for sharing all great info in this forum.

I have a question and struggling with a scenario that need your help.
I have an Excel spreadsheet with multiple links in multiple rows.
I want to launch those link by using QTP to open link in a browser, copy the data and write it back to excel spreadsheet.

Setup Excel spreadsheet:
CAR Price
1 link#1 $1.00
2 link#2 $0.00
3 link#3 $10.00
4 link#4 $2.00

Steps:
1) Open QTP
2) Run QTP script
3) QTP_Script open Excel spreadsheet locate in C:/Temp/Test.xls
4) QTP_Script locate a hyperlink in row1/col1 and mouse_click
5) A browser should open and display data table
6) QTP_Script locate a value from data table
7) Copy value
8) Paste the value to excel spreadsheet row1/col2
9) QTP_Script continue run till the last row in excel spreadsheet.
10) QTP_Script stop and exit.

Hope y'all can help me with this case on how to record or write a vbscript.

Thanks for your helps.
Reply
#2
Solved: 11 Years, 4 Months ago
Are you expecting a complete code to perform the above operation ?? if so, i guess it wouldnt be worth anyone's effort other than yours to get it.
Have you tried automating the above scenario so far ?? If yes, would you paste the code and let us know the exact area where you get a error ?
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Reply
#3
Solved: 11 Years, 4 Months ago
This can be performed by reading the value (innertext) from application & update the excl sheet. Can anyone provide the Code please. It would be really helpful.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Import multiple values from excel into QTP Shaik Ahmed 2 3,516 03-09-2014, 09:17 PM
Last Post: Shaik Ahmed
  "qtp.launch" throwing "class not registered" error auto_tester 0 3,159 08-13-2013, 10:52 PM
Last Post: auto_tester
  Installing QTP -Freeware on Multiple Machine sangi 1 2,810 06-11-2013, 06:13 PM
Last Post: Ankur
  How to make multiple dependent list in excel? pradeep singh 1 2,287 09-20-2012, 10:57 AM
Last Post: sshukla12
  Remote QTP launch tester_rahul 3 10,372 07-26-2012, 12:19 PM
Last Post: supputuri

Forum Jump:


Users browsing this thread: 2 Guest(s)