Use one Module for multiple messages

When you set a payload Module Attribute for your Module but do not use it, the system removes the corresponding node by default (see chapter "Keep inactive nodes ").

The responsible InactiveNodes property allows you to use the same Module for multiple, different messages. If you use the same Module for multiple messages, Tosca Commander applies any changes to the Module automatically to the corresponding request messages.

To utilize the property, follow the steps below:

  1. Define Module Attributes for your Module as described in chapter "Module Attributes overview".

    The corresponding request contains the Module Attributes as initial XTestStepValues.

Initial XTestStepValues in the TestCase

  1. Select an initial XTestStepValue.

  2. Click on Auto fill Values in the API Testing menu, to turn the initial XTestStepValue into a generated XTestStepValue.

  3. Repeat for all XTestStepValues you want to steer.

Generated XTestStepValues and initial XTestStepValue status

All unused Module Attributes are removed from the XTestStep payload:

status removed from the XTestStep payload

  1. Copy and paste the request as well as the response message.

  2. Enter new XTestStepValues for the new request-response-pair.

Generated XTestStepValues