Test activity template inputs

You can test the input parameters of a custom activity during its development without having to run the activity in a workflow context.

Before you begin

Create input variables and map them to fields in the Execution Command form or provide actual values for these fields.

Role required: web_service_admin, activity_admin, activity_creator

About this task

An input test executes only the input parameters against an endpoint and not the pre-processing or post-processing scripts. You need to use a workflow to test a pre-processing or post-processing scritp. You do not need to check out the activity to test it, and you can test input variables from any stage in the activity designer, if your activity is properly configured. Typically, the Execution Command stage is the point at which your inputs are ready for testing.
Note: If you intend to use auto-mapping, you must test your input variables.

Procedure

  1. Click Test Inputs.
    The list of input source variables appears. If you added default values for these variables, those values appear in the Substitute Value column. Mandatory variables are marked with a red star. In this example, a SOAP endpoint returns a value for a stock quote variable.
    Test value for input variable
  2. Filter the variable list with these controls:
    • All Inputs: Displays all input variables. This is the default view.
    • Mandatory Inputs: Displays only mandatory input variables.
    • Inputs Without Defaults: Shows input variables that do not have assigned default values.
  3. Reset values as needed.
    • Reset default values: Replaces any test values set in this form with the default values, if they are present.
    • Clear values: Clears all values in the input variable list, even if default values exist.
  4. When your test values are configured correctly, click OK.
    The system runs the values for all the inputs configured against the specified target and returns the resulting payload. The buttons in the Response form display different views of the payload. The entire payload appears in the Raw Output window.
    Figure 1. Response payload from inputs test
  5. To map appropriate parameter values in the payload to variables in the Outputs stage automatically, select an auto-mapping option.
  6. Alternately, you can click Save for parsing rules to copy the entire payload to the parsing rules.
    This allows you to manually select values for the output variables directly from the payload. This action completely overwrites any previous payload that existed in the parsing rules.
  7. Click the X in the upper right corner of the window to close it.