Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Changing the datatable path using AOM
08-25-2010, 04:51 PM
Post: #1
Changing the datatable path using AOM

Hi,

I am trying to change the datatable path of my QTP scripts by using excel macro code as follows,

Set App = CreateObject("QuickTest.Application")
App.Open "C:\Documents and Settings\Desktop\sample1"'opening my QTP script
Set qtTestResources = App.test.Settings.Resources'creating a object to access resource tab(file->setting->resources tab)
New_Loc = "C:\Documents and Settings\Desktop\inputdata.xls"
qtTestResources.DataTablePath = "C:\Documents and Settings\Desktop\inputdata.xls"

When it invokes the last line, QTP will be closed automatically.

Please let me know is it possible to change the datatable sheetname in QTP scripts through the object "QuickTest.Application" if so please guide me how to do the same.

Note: As I need to change the datatable inputsheet name for N number of QTP scripts so I thought of automating this work through excel macro instead of opening every scripts manually and change its inputsheet path
Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
Question Achieving Visual Relation Identifier option using AOM scsvel 1 258 02-17-2012 04:17 PM
Last Post: scsvel
  need similar function as setScript through AOM in qtp 9.2 sundari.msls 1 621 04-01-2011 05:43 PM
Last Post: sundari.msls
  How to config the data file path(xls) linhke 5 1,069 06-14-2010 09:48 PM
Last Post: linhke
  Give path in .vbs file topnil 2 843 11-04-2009 10:26 AM
Last Post: topnil

Forum Jump:


User(s) browsing this thread: 1 Guest(s)