I’m building a backend API for an app that requires logging in. I’d like to build test cases of a sequence:
- create account
- confirm account
- log in and get access token and refresh token
- create an app widget
- add a thingy to the widget
For each step, I want to test some successful cases and some failure cases (like password doesn’t meet complexity requirements).
I’d like to create more than 1 user account and do some success tests with some users and some failure tests with others. I want to ensure that widgets created in account A can’t be seen from account B.
I already have a collection with simple calls to my API but I don’t have them strung together in sequences.
What the general strategy for approaching this type of testing?