Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Changing the datatable path using AOM
#1
Not Solved
Hi,

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

Code:
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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to close/restart UFT in "Not responding" status with AOM script CharlieMadrid 0 1,229 05-21-2020, 08:46 PM
Last Post: CharlieMadrid
  Changing Data in the application newbieny 0 969 07-17-2019, 07:19 PM
Last Post: newbieny
  VBScript Certification Path qapandit 0 2,897 09-10-2013, 04:13 AM
Last Post: qapandit
Question Achieving Visual Relation Identifier option using AOM scsvel 1 5,176 02-17-2012, 04:17 PM
Last Post: scsvel
  Changing default browser cowboy49 5 9,711 09-08-2011, 04:02 PM
Last Post: souvikghosh_diatm

Forum Jump:


Users browsing this thread: 1 Guest(s)