Systers, an AnitaB.org community

Test the Register API using Postman (Mentorship-Backend)

Prerequisites

Install and verify the mentorship backend, and install Postman (HowTo )

Steps

  1. Run the mentorship-backend repository locally by following the steps in README.md given here
  2. Launch Postman and import the repository using Import -> Import Folder
  3. Under Collections, the project shows along with 11 available requests. POST Screenshot#1 of the left bar.
  4. Perform a POST request POST/register, enter the required details and POST Screenshot#2 of the response of the user successfully created.
  5. Perform additional POST requests for POST/register, with different combinations of usernames and passwords, and ensure the error messages are correct:
    • Use the same username again
    • Use a three character username
    • Use a fifteen character username
    • Use a blank username
    • Use a blank password
    • Explore other ways to generate error messages from the POST/register API Screenshot #3 of one of your error responses.

Work Submission

Share Screenshot #1, Screenshot #2, and Screenshot #3, by uploading them in a Google Drive folder / Pastebin Images and sharing a link which is publicly accessible.

Resources

Task tags

  • flask
  • qa
  • api
  • postman
  • backend

Students who completed this task

asawesome07, BartekPacia, smsingh, HardikJH

Task type

  • code Code
  • done_all Quality Assurance
close

2019