This topic explains how to customize a Responder suite’s properties. Topics include:
Note that many options available for Responder suites are also available for action suites.
To customize Responder suite properties, double-click its Virtual Asset Explorer node and use the controls that open in the configuration panel (on the right side of the GUI).
If you want to associate any notes with the Responder suite (e.g., a description of what it covers), you can do so in the Notes tab of the configuration panel.
The Variables tab allows you to configure variables that can be used to simplify tool definition and create flexible, reusable tools. After a variable is added, tools can parameterize against that variable.
You can set a variable to specific value, then use that variable throughout the current Responder suite to reference that value. This way, you don’t need to enter the same value multiple times—and if you want to modify the value, you only need to change it in one place.
As an alternative to manually setting a variable to a specific value, you can have a data bank tool (e.g., XML Data Bank) or Extension tool set the value of that variable "on-the-fly."
Variables are available as parameterized values within tool configuration panels (using the ${env_name} convention), as well as through scripting with com.parasoft.api.ExtensionToolContext.getValue(String) and setValue(String, String). Values are of type string, integer, boolean.
Variable values hold their values within the responder suite until the virtual asset is redeployed. This allows stateful virtualization scenarios. For example, assume you chained an XML Data Bank to the incoming request of a Message Responder. If you choose a variable as the target destination for the value (in the "Data Source Column" section of the extracted XPath), you can parameterize outgoing response messages with that variable from the same responder or from a different responder in this responder suite. Similarly, updating the variable value using the scripting API will result in the variable value persisting across multiple responder invocations. Redeploying the asset will erase the variable and reset it to the value that it is initialized within the variable editor (covered below).
Note that if the variable value is updated, then the new value will be used whenever the variable is accessed by a form view or by the scripting API. However, the variable declaration in the variables editor will not change. The variables editor will always display the initial value: the value that the variable will assume if the virtual asset is redeployed.
You can add a new variable as follows:
Once added, variables can be...
To configure Virtualize to show what variables are actually used at runtime, set Console preferences (Parasoft> Preferences> Parasoft> Console) to use normal or high verbosity levels.
The Console view (Show View> Parasoft> Console) will then display variables used at runtime.
Viewing such variables is useful for diagnosing the cause of any issues that occur.
You can customize the following options related to SOAP messaging in the SOAP Options tab of the configuration panel: