Parameters are special script-level variables that you can define in the Recorder and can then later modify in the Synthetic Classic Portal. After you create the parameters in the Recorder and then upload the script to the Synthetic Classic Portal, you can then modify the values of the parameters globally and by node.
Refer to the online help in the Synthetic Classic Portal for more information about changing the value of parameters in the Synthetic Classic Portal.
The process to set parameters is:
Record the script and make sure that the script plays back successfully.
Define the parameters in the script.
Use the parameters.
Define a parameter by entering the value that you entered when the script was recorded and by providing a descriptive name to identify the parameter within the Recorder and in the Synthetic Classic Portal. For example, you may have originally recorded a script with an account number of 12345. After the recording is complete, you can specify a parameter that has the value of
12345 and the descriptive name of
Parameters are defined at the script level:
Select Script .
If the script settings tabs are not displayed, click below the timeline to display the script settings.
Select the Parameters tab.
Click located to the far right to display fields for the new parameter.
Enter the name and value.
Repeat to create new additional parameters.
Click to the right of the parameter to delete.
Repeat for all the parameters to delete.
After you define the parameter, it can be accessed by the parameters object in a Custom action. For instance, using the Account Number example described above, you can define the following:
document.forms['form1].elements["accountNum"] = parameters["Account Number"];
To use a Form Fill action with parameters, add the action to the script in an appropriate place and define the target window and locator (as described in Element locators). In the Value field, use the following syntax to define the parameter in the Value field:
Using the Account Number example, enter the following in the Value field:
After you define a parameter, you can have the Text (for Type actions) and/or Value (for FormFill actions) fields automatically populated with the appropriate syntax for using a parameter.
Specify parameter syntax
Click Apply Parameter located next to the Text field (for Type actions) or Value (for FormFill actions). The possible parameters appear in a drop-down list.
Select the parameter to apply. The parameter syntax for the selected parameter appears in the Text field.