Skip to content

Until

formatting...

Module contains step implementations for the Until task.

Client get endpoint until

Create an instance of a client task, actual implementation of the task is determined based on the URL scheme specified in endpoint.

Gets information, repeated from another host or endpoint than the scenario is load testing until the response matches expression.

See client task documentation for more information about client tasks.

Example

Then get from "https://www.example.org/example.json" with name "example-1" until "$.response[status='Success']
Then get from "http://{{ endpoint }}" with name "example-2" until "//*[@status='Success']"

Arguments

Name Type Description Default
endpoint str

information about where to get information, see the specific getter task implementations for more information

required
name str

name of the request, used in request statistics

required
condition str

JSON or XPath expression for specific value in response payload

required

Request with name endpoint until

Create an instance of the Until task to be executed by the load user.

See Until task documentation for more information.

Example

Then get request with name "test-get" from endpoint "/api/test | content_type=json" until "$.`this`[?success==true]"
Then receive request with name "test-receive" from endpoint "queue:receive-queue | content_type=xml" until "/header/success[. == 'True']"

Arguments

Name Type Description Default
method Method

type of "from" request

required
name str

name of the requests in logs, can contain variables

required
endpoint str

URI relative to host in the scenario, can contain variables and in certain cases user_class_name specific parameters

required
condition str

JSON or XPath expression for specific value in response payload

required