Skip to content

About

Automated API testing project for the Urban Grocers service using Python, Pytest, and the Requests library. Includes validation of user creation, edge-case handling, and structured test modules.

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

Repository files navigation

Urban Grocers — Automated API Tests

Automated API tests written in Python with Pytest and the Requests library.

Table of Contents

About the Project

This project contains automated API tests written in Python using Pytest and the Requests library. It focuses on validating the Kit Creation endpoint for a user via the API:

  • First, create a new user and retrieve their authToken.
  • Then, create a personal kit for that user using the authorization header.
  • Validate the name field of the kit through multiple positive and negative test scenarios.

The API documentation was structured following apiDoc guidelines.

How to Use

1. Install dependencies

pip install pytest requests

2. Run all tests

pytest

3. Run a specific file

pytest create_kit_name_kit_test.py

4. Verbose mode

pytest -v

What the Tests Check

Positive Scenarios (Expect HTTP 201)

  • Name with 1 character
  • Name with 511 characters
  • Name with special characters
  • Name with spaces
  • Name with numbers

Negative Scenarios (Expect HTTP 400)

  • Name with 0 characters
  • Name with 512 characters
  • Missing name parameter
  • name with incorrect data type (integer instead of string)

These cover boundary conditions, invalid type usage, absence of the required field, and functional validation.

Project Structure

qa-project-Urban-Grocers-app-es/
│── configuration.py
│── create_kit_name_kit_test.py
│── data.py
│── README.md
│── sender_stand_request.py

Technologies Used

  • Python 3.14.0
  • Pytest for automated testing
  • Requests for API communication
  • PyCharm as the development environment
  • Git & GitHub for version control
  • Documentation with apiDoc

Author

Camilo Morales — built during the QA Engineering bootcamp at TripleTen, practising real automated API tests with Pytest and Python.

I'm now studying a Master of Cyber Security at Edith Cowan University in Perth. Software testing is the background I came from, and it still shapes how I work: read the specification carefully, break things deliberately, document exactly what happens.

GitHub · LinkedIn

About

Automated API testing project for the Urban Grocers service using Python, Pytest, and the Requests library. Includes validation of user creation, edge-case handling, and structured test modules.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages