Async Group
This module contains step implementations for the Async Group task.
Given async group start
Given an async request group with name "{name}"
Create an instance of the Async Group task.
All Request tasks created after this step will be added to the request group, until the group is closed.
See Async Group task documentation for more information.
Example:
Given an async request group with name "async-group-1"
Then post request with name "test-post-2" to endpoint "/api/test"
"""
{
"value": "i have good news!"
}
"""
Then get request with name "test-get-1" from endpoint "/api/test"
And close async request group
In this example, the put
and get
requests will run asynchronously, and both requests will block following requests until both are finished.
Then async group close
Then close async request group
Close the instance created in step_task_async_group_start.
Add the Async Group task to the list of tasks that the scenario is going to execute.
See Async Group task documentation for more information.
Example:
Given an async request group with name "async-group-1"
Then post request with name "test-post-2" to endpoint "/api/test"
"""
{
"value": "i have good news!"
}
"""
Then get request with name "test-get-1" from endpoint "/api/test"
And close async request group