Create body Module Attributes

You can create Module Attributes from the elements of a message or the whole body of a message.

Use the dynamic menu API Testing to create body Module Attributes from the body of your request message or your response message.

Create body Module Attributes from a request message

To add or buffer the body of your request message, follow the steps below:

  1. Select the Module and switch to the Technical View.

  2. Access the API Testing menu.

  3. Click Body and select one of the following options from the dropdown menu:

    • To mark the entire payload and add it as a Module Attribute, click Insert Message.

    • To mark the entire payload and buffer it as a Module Attribute, click Insert from Buffer.

    • To load a payload from file as a Module Attribute, click Load from File ....

      In the subsequent dialog, select a file name and click Open.

Body Module Attribute

Create body Module Attributes from a response message

To add or buffer the body of your response message, follow the steps below:

  1. Select the Module and switch to the Technical View.

  2. Access the API Testing menu.

  3. Click Body and select one of the following options from the dropdown menu:

    • To mark the entire payload and add it as a Module Attribute, click Verify Message.

    • To mark the entire payload and buffer it as a Module Attribute, click Buffer Message.

    • To save the payload of your message as a Module Attribute, click Save to File ....

      In the subsequent dialog, define a file name and click Save.

Body Module Attribute

For information on how to steer Body Module Attributes in your TestCases, see chapter "Steer Module Attributes".