Hi Raja,
How are you retrieving the output paramater in the vbs?
It will help if you can paste a piece of statements here.
generally we need to create the parameter collection using Test.ParameterDefinitions
then get all the parameters
set a variable for your output parameter and you can get the output at the Run statement in vbs
let me know if you need more help on this.
here is a sample vbs in case you need
hope this helps
How are you retrieving the output paramater in the vbs?
It will help if you can paste a piece of statements here.
generally we need to create the parameter collection using Test.ParameterDefinitions
then get all the parameters
set a variable for your output parameter and you can get the output at the Run statement in vbs
let me know if you need more help on this.
here is a sample vbs in case you need
Code:
Set qtApp = CreateObject("QuickTest.Application")
Set qtResultsOpt = CreateObject("QuickTest.RunResultsOptions")
qtApp.Launch
qtApp.Visible = True
qtResultsOpt.ResultsLocation = "D:\results"
qtApp.Open "C:\QTP\Script\Script1"
' parameters collection defined
Set pDefColl = qtApp.Test.ParameterDefinitions
Set rtParams = pDefColl.GetParameters()
'added parameters Run the script
qtApp.Test.Run qtResultsOpt, True, rtParams
'Extract the output Parameter
Set rtParam = rtParams.Item("OutputVal")
msgbox "OutputParam : " & rtParam.Value