Until
This module contains step implementations for the Until task.
Then request with name endpoint until
Then {method:Method} request with name "{name}" from endpoint "{endpoint}" until "{condition}"
Create an instance of the Until task, see 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:
method
Method - type of "from" requestname
str - name of the requests in logs, can contain variablesdirection
RequestDirection - one ofto
orfrom
depending on the value ofmethod
endpoint
str - URI relative tohost
in the scenario, can contain variables and in certain casesuser_class_name
specific parameterscondition
str - JSON or XPath expression for specific value in response payload
Then client get endpoint until
Then get from "{endpoint}" with name "{name}" until "{condition}"
Create an instance of a Clients 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 Clients 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:
endpoint
str - information about where to get information, see the specific getter task implementations for more informationname
str - name of the request, used in request statisticscondition
str - JSON or XPath expression for specific value in response payload