Service steps

Use service steps in your simulation file to define what your virtual service does and in which order.

This topic lists all steps properties and includes examples that show how to use them.

Steps property

Description

Example

buffer

Collection of rules that save values from messages in buffers.

Example

connection

Defines the connection that the step uses to send or receive messages. Use the connection properties to configure it.

Example

counter

Defines how many times the step sends or receives the specified message before the simulation proceeds to the next step.

5

description

Description of what the step does.

contract verification

direction

Defines whether the step sends or receives messages. To send messages, enter the value Out. To receive messages, enter the value In.

If you leave the value blank, the simulation derives the direction logically (implicit). The simulation assumes that the first step is In, the next step Out, and so on.

Out

from

Reference a connection by its name to receive messages.

To use this property, set the direction property to In.

myConnection

insert

Collection of rules that insert values.

Example

message

Defines the message to send. Use the message properties to configure it.

Example

name

Name of the step.

step 1

order

Defines whether the step receives messages in a specific order.

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, use a rule 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 its name to send messages.

To use this property, set the direction property to Out.

myConnection

trigger

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

Example

use

References predefined services that you set as templates. You can reuse these services in other service steps.

OAuth template

verify

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

Example

Examples

The following examples show how to use the insert, save, trigger, and verify properties.