Resource rules properties

You can work with resources to share data at runtime between different running simulations. Specify which values you want to reference by using resource rules properties in your simulation file. For example, you can read a specific value from a resource and insert paste it anywhere.

Always specify a rule within the resource property of a service step.

These are the rules properties you can use:

Rules property

Description

Example

name

This property is mandatory. Define a meaningful and unique name for your resource.

read

one

By default, the entire content of a resource is addressed. You can use this property to restrict the values that are to be used. Unlike the where property, only one value is returned (the first value found). Depending on the type of resource, define the following syntax:

  • Table: Define an SQL WHERE clause.

  • KeyValue: Enter the key for the expected value.

  • Value: Enter a constrained path to the desired value. For example, an XPath or JsonPath.

Example

ref

Specify the name of the data resource that you want to reference. This is the name that you defined in the simulation to access a data resource.

user

template

Specify this property, if you want to define a pattern for a requested resource. The received data is then structured according to this pattern. You can use any pattern format, such as JSON, XML, etc. Use this property within the resource steps property read.

Example

value

Enter any value.

GET

where

By default, the entire content of a resource is addressed. This property allows you to restrict the values that should be used. Depending on the type of resource, define the following syntax:

  • Table: Define an SQL WHERE clause.

  • KeyValue: Enter the key for the expected value.

  • Value: Enter a constrained path to the desired value. For example, an XPath or JsonPath.

Example