I will show how the above is implemented in Postman.īy default, the Collection Runner will execute each request and test within a collection in the order they are created. Run test for Account Unlock with test user as parameter and admin auth token.If login successful, store admin auth token.Run test for Login API request with admin user credentials.Run test for Single Book Retrieval API request.If request unsuccessful, exit test with failure.Run test for Book Retrieval API request.If login unsuccessful with account lockout, go to step 9.If login unsuccessful with credential failure, exit test with failure.Run test for Login API request with test user credentials.To summarize the requirement as a test script sequence we have: The above test requirement can be implemented as a workflow using Postman test scripting with the collection runner. ![]() ![]() If the first test resulted in a locked test account, then we jump to the test to unlock the test account. I will create a basic sequence of tests that will login as a test user, call a secure request to retrieve a library book list, run two tests for invalid account credentials, then finish by running a test to unlocking the test account.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |