Parameter Object


An input or output action parameter.

This object can be used in the parameterized value of a step or in a call to an action in order to parameterize the value of one of the input parameters supplied to the called action or to indicate the storage location for one of the output parameters supplied to the called action.

For more details on supplying parameters when calling an action, see RunAction Statement.








The name of the action parameter.


Suppose you have test steps that enter information in a form in order to display a list of purchase orders in a table, and then return the total value of the orders displayed in the table.

You can define input parameters, called SoldToCode and MaterialCode, for the codes entered in the Sold to and Materials edit boxes of the form so that the Orders table that is opened is controlled by the input parameter values passed when the test is called.

You can define an output parameter, called TotalValue, to store the returned value. The output value (TotalValue) could then be returned to the application that called the test.

The example described above might look something like this (parameters are in bold font):

Browser("Mercury").Page("List Of Sales").WebEdit("Sold to").Set Parameter("SoldToCode")
Browser("Mercury").Page("List Of Sales").WebEdit("Materials").Set Parameter("MaterialCode")
Browser("Mercury").Page("List Of Sales").WebButton("Enter").Click
NumTableRows = Browser("Mercury").Page("List Of Sales").WebTable("Orders").RowCount
Parameter("TotalValue") = Browser("Mercury").Page("List Of Sales").WebTable("Orders").GetCellData(NumTableRows,"Total")

Associated Properties