我是想通过外部程序调用该test的,在调用的的过程中送入一个参数,所以在Test Settings的Parameters页中设置了一个Input parameter,名为"TCPath",调用程序如下:
Set qtApp1 = CreateObject("QuickTest.Application")
Set qtResultsOpt = CreateObject("QuickTest.RunResultsOptions")
qtResultsOpt.ResultsLocation = targetQTPscriptPath & "\Res1"
Set pDefColl = qtApp1.Test.ParameterDefinitions
'Retrieve the Parameters collection defined for the test.
Set rtParams = pDefColl.GetParameters()
'Retrieve a specific parameter.
Set rtParam = rtParams.Item("TCPath")
strTCPath="c:\qtp\test1.xls"
rtParam.Value = strTCPath
Set qtTest = qtApp1.Test
qtTest.Run qtResultsOpt, True, rtParams
如何在action中调用该输入参数?