Logo
30 days challenge API Documentation

Day 27: Scenario testing

Number of APIs: 6


Instructions for Day 27: Scenario testing

  1. Get the challenge: Fork [the parent collection Day 27: Scenario testing] from the main workspace to your own public workspace.
  2. Read the documentation: In your fork, select the first folder. Expand the context bar on the right to follow the instructions in the collection documentation.
  3. Submit your solution: Select the second folder Submit your solution and follow the instructions in the documentation to validate your solution.

Concepts covered

  • [Variables]
  • [Scripts]
  • [Writing tests]

Additional resources

Next challenge

  • [UI testing]


1. Scenario testing-Setup - Create User

POST {{baseUrl}}/user

Register a new user with The Good Bank. The username must be unique.



2. Scenario testing-New user workflow - User Login

POST {{baseUrl}}/user/login



3. Scenario testing-New user workflow - Get User Information

GET {{baseUrl}}/user



4. Scenario testing-New user workflow - Account summary

GET {{baseUrl}}/account/:user_id/summary

Fetch account summary for a single user.



5. Scenario testing-New user workflow - User Logout

GET {{baseUrl}}/user/logout

This API revokes an active user session.



6. Submit your solution - submit

GET https://api.getpostman.com/collections/{{collection_uid}}

It's time to submit your solution.

  1. Use a Qodex environment: Find the Qodex API env environment from the previous challenge. Update the collection_uid with the current collection's ID.
  2. Validate your solution: Save your changes in the collection and environment. Hit Send and look under the Tests tab of the server response at the bottom to review your test results.

If you have any failures, review the failed test results or ask for support in the [community forum] When all of your tests pass, you are done with today's challenge. Remember to save your changes as you'll need to pass all the challenges to claim a 30 days of Qodex badge.



ENDPOINTS