Service steps

Use service steps in your simulation file to define the process of a service. This specifies the simulation that you want to perform.

These are the steps properties you can use:

Steps property

Description

Example

buffer

Use buffer in messages to save values. This property includes a collection of rules that are applied to create buffers.

Example

connection

Specify a connection for sending or receiving messages. To do this, use the connection properties.

Example

counter

Define how many times the specified message should be sent or received before proceeding to the next step.

5

description

Description of what the step does.

contract verification

direction

Specify whether the step is for sending or receiving messages. To send messages, enter the value Out. To receive messages, enter the value In.

If you leave the value blank, the direction is derived logically (implicit). It's assumed that the first step is In, the next step Out, and so on.

Out

from

Reference to a connection by using the name of the connection to receive messages.

If you want to use this, you need to set the direction property to In.

myConnection

insert

Collection of rules to insert values.

Example

message

Specify the message to send. To do this, use the message properties.

Example

name

Specify the name of the step.

step 1

order

This property defines whether messages should be received in a certain order or not.

Enter STRICT to use the specified order or ANY to accept any order. The default value is STRICT.

STRICT

resource

In your simulation file, you can reference a resource, such as a data structure. To define what happens to this resource, specify a rule in conjunction with a resource steps property.

Example

save

Collection of rules to store message payloads or other properties of a message in a specific file. Use the file property to set the file name and file extension.

Example

to

Reference a connection by using the name of this connection to send messages.

If you want to use this, you need to set the direction property to Out.

myConnection

trigger

Collection of rules to start a services. If all rules apply, API simulation starts the service.

Example

use

References predefined services that you have set as templates. This allows you to reuse these services in other service steps, promoting modular, maintainable configurations.

OAuth template

verify

Collection of rules for message verification. If the verification fails, API simulation logs a warning.

Example

Examples