Many API and website testing scenarios require chaining HTTP requests
and setting up pre-requisite dynamic data fixtures to validate an
endpoint's payload or status code. For this purpose, Assertible has
support for setup
and teardown steps but has always
been limited to a maximum of one setup and one teardown step, for a
total of three total steps in a test run(e.g.
setup -> test ->
Today, we are excited to roll out one of the most frequently requested features in Assertible - multiple setup steps.
Testing scenarios using multiple setup steps
Using multiple setup steps allows you to model more complicated API and website user scenarios and is critical to achieving reliable functional and synthetic monitoring for every workflow your API supports.
Multiple test steps shine when it comes to REST APIs with basic CRUD operations as well as website user-scenarios like multiple page visits or forms that require maintaining a session and dynamic data between all requests.
Setup steps can be run in a specific order. Simply enable two or more steps and use the drag and drop interface to change the step number. Setup steps can also use variables defined in a previous step.
Setup steps are very powerful. However, in order to keep tests as reliable as possible, we recommend using static environment variables whenever the data is not truly dynamic to model pre-requisite data. For example, static auth tokens and test user IDs. The more steps you add to a test, the more likely it is to have flaky results.
Of course, multiple setups steps would not be complete without multiple teardown steps. We're in the process of building out functionality to support multiple teardown steps and would love to get more community feedback so we can make sure it works for as many use-cases as possible.
:: Cody Reichert
The easiest way to test and
monitor your web services
Reduce bugs in web applications by using Assertible to create an automated QA pipeline that helps you catch failures & ship code faster.Get started with GitHubSign up for free
Automated API testing with TeamCity 03/12/2018
New feature: autocomplete for variables 11/03/2017