This project contains automation tests for the new user creation functionality via the /api/v1/users/ endpoint on the Stand service.
The main objective is to guarantee the correct validation of the "firstName" parameter according to specifications, ensuring user data integrity.
The code follows the Single Responsibility Principle for easy maintainability and scalability:
- configuration.py: Contains the base URL (
URL_SERVICE) and the routes for the endpoints. - data.py: Contains the test request bodies (payloads) and the request headers.
- sender_stand_request.py: Functions for sending all HTTP requests (POST/GET) to the API.
- create_user_test.py: Main module with all validation tests for the
firstNameparameter (positive and negative cases).
To run the tests, Python 3.x and the necessary libraries are required.
Install the pytest and requests packages using pip:
pip install pytest requests