Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Test Output Parameter
#2
Solved: 10 Years, 9 Months, 3 Weeks ago
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
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
hope this helps

Reply


Messages In This Thread
Test Output Parameter - by Raja - 09-02-2009, 10:06 PM
RE: Test Output Parameter - by Saket - 09-03-2009, 10:54 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [ QC& QTP] issue with Qc design step parameter seritalien 0 1,834 05-29-2013, 06:56 PM
Last Post: seritalien
  Running Quick Test With QC with a Parameter bolls 0 2,530 12-13-2011, 11:24 PM
Last Post: bolls
  Get the Parent Folder name in Test Plan for a Test from Test Lab using QTP godsown 0 5,950 09-29-2011, 04:55 PM
Last Post: godsown
  SAP eCATT <-> QTP Parameter exchange mti 2 3,947 05-23-2011, 04:50 PM
Last Post: mti
  how to pass parameter from one action to another kamalteja 0 4,794 03-26-2008, 03:47 PM
Last Post: kamalteja

Forum Jump:


Users browsing this thread: 1 Guest(s)