Skip to content

Jcma14/Urban-Grocers-Automated-Testing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🛒 Urban Grocers Project

Automated API Tests with Pytest

API Testing Badge QA Learning Badge

Python Badge Pytest Badge Requests Badge Project Active Last Commit Repo Size


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 test_create_user.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 apiDoc

Author

Camilo — QA Engineer in Training

This repository is part of my QA Engineering learning journey, where I practice building real automated API tests using Pytest and Python.

Learning API testing, automation, and software quality assurance.

If you want to connect:

GitHub Badge
LinkedIn Badge

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

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages