使用vb脚本执行QTP时无法读取外部excel文件
我想用vb脚本在QTP上运行测试,我可以打开QTP并开始运行测试。但是,测试无法访问从中获取数据所需的外部数据表 这是代码:使用vb脚本执行QTP时无法读取外部excel文件,excel,vbscript,Excel,Vbscript,我想用vb脚本在QTP上运行测试,我可以打开QTP并开始运行测试。但是,测试无法访问从中获取数据所需的外部数据表 这是代码: Set oShell = CreateObject ("WScript.Shell") Dim qtpAppObj,qtpTest 'Create the QTP Application object Set qtpAppObj = CreateObject("QuickTest.Application") 'Open the test in read-only m
Set oShell = CreateObject ("WScript.Shell")
Dim qtpAppObj,qtpTest
'Create the QTP Application object
Set qtpAppObj = CreateObject("QuickTest.Application")
'Open the test in read-only mode
qtpAppObj.Open c:\test, True
'set run settings for the test
Set qtpTest = qtpAppObj.Test