Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

How do QTP access the cell values in an excel file located in QC.

This is a discussion on How do QTP access the cell values in an excel file located in QC. within the QTP forums, part of the Software Testing category; Hi Is it possible to retrieve cell value directly from .xls file located in Quality Center using QTP. I do not want to import the excel file rather need to ...

Go Back   Geeks Talk > Software Testing > QTP
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read
  #1 (permalink)  
Old 02-15-2008
Junior Member
 
Join Date: Feb 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Faisalalik is on a distinguished road
How do QTP access the cell values in an excel file located in QC.

Hi

Is it possible to retrieve cell value directly from .xls file located in Quality Center using QTP. I do not want to import the excel file rather need to fetch the cell values directly. e.g

Set objexl = Createobject ("Excel.Application")
set wbook = objexl.workbooks.open "path of excel file"
set wsheet = objexl.worksheets(1)

value=wsheet.cells(1,2).value

This code will fetch the cell(1,2) value, when i access local excel sheet ie. located at a given path in my system.

Now the scenario is that the excel file is located in QC and i need to fetch the cell values in a same way as above using QTP.

Please note i don't need to import an excel file from QC.

Thanks
Faisal
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 02-25-2008
Moderator
 
Join Date: Oct 2007
Location: Frankfort, KY
Posts: 283
Thanks: 3
Thanked 54 Times in 36 Posts
Anshoo_Arora is on a distinguished road
Re: How do QTP access the cell values in an excel file located in QC.

I have never tried what you have mentioned here, however, there is a way to retrieve the attachment and I can help you with that. You can get the specified data from that file after the attachment has been downloaded. I haven't yet felt the need to try it though; I like to keep things pretty simple.. let me know..
Reply With Quote
Reply

  Geeks Talk > Software Testing > QTP

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Read excel values into script without opening excel nemishdmehta QTP 1 02-11-2008 07:19 AM
Excel File instead of .TSR simanta.adhikary QTP 2 12-24-2007 02:37 AM
In Action I want to access the formbean values Geek_Guest Java 1 08-09-2007 10:14 AM
How can I access an excel file which is stored in QC-Test Plan Geek_Guest QTP 0 07-18-2007 10:03 AM
access Internet from cell phone JobHelper Networking 1 06-18-2007 10:04 AM


All times are GMT -4. The time now is 01:59 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved