Add Module Attributes

To add Module Attributes for the elements of a message in Tosca Commander, follow the steps below:

  1. Select one or more of the following elements:

  2. Access the OSV menu.

  3. Click Add in the OSV menu. This opens the Attribute Assistant window.

  4. The Attribute Assistant window displays the following columns:

    • Module Attribute lists all Module Attributes that you can add for the selected elements

    • Values indicates the value of the Module Attribute

    • # Modules indicates in how many Modules the system creates the Module Attribute

    • Variation indicates how many different values the system can find for the Module Attribute

    • Direction indicates if the related message is outbound or inbound

    • Type indicates the type of Module Attribute, e.g. Status Code

    • Path an XPath or JPath expression links the Module Attribute to the XML or JSON element in the payload. You can find the relevant XPath or JPath expressions in the Properties pane under the parameter Path.

  5. To add a Module Attribute, select it and click Add. You can select multiple Module Attributes by holding CTRL.

Attribute Assistant window

The system adds the buffered Module Attributes to the Modules they belong to. If you selected an element that contains both Modules and Scenarios, the system also adds the respective XTestSteps and XTestStepValues, jumps to the Scenario, and expands the TestSteps.

Added Module Attributes and XTestSteps

To jump from a Module Attribute in the Attribute Assistant window to the corresponding Module, right-click it and select Find Corresponding Modules from the context menu. This triggers a TQL search at the project root element level.

Alternatively, you can add Module Attributes manually. To do so, select a Module and switch to the Technical View. Highlight an element in the payload with your mouse and click Add in the OSV menu.

Add a Module Attribute for a response time delay

You can increase the Response Time to delay a response message by milliseconds. To do so, follow the steps below:

  1. In Tosca Commander, click on the respective response message.

  2. Switch to the Technical View and click into the Response Time (ms) field.

  1. Click Add in the OSV menu. The added Module Attribute has the same name as the marked element.

Module Attribute Response Time

  1. Enter a desired value in your Scenario to increase response time. For more information see chapter "Values".