Welcome to the Simple Book API Testing repository! This project provides a robust framework for testing a simple book API, utilizing modern tools and best practices in software development.
- Python: The programming language used for writing tests and implementing logic.
- Requests: A powerful library for making HTTP requests with ease.
- PyTest: A flexible testing framework that allows for writing simple as well as complex test cases.
- Allure Report: A beautiful reporting framework that provides a detailed overview of test results.
To get started, you'll need to install the required packages. You can do this by running the following command in your terminal:
pip install -r requirements.txt
To execute the test cases, use the following command:
pytest -n 2 -v --host=staging
Command Breakdown: -n 2: This runs the tests in parallel, utilizing 2 CPU cores for faster execution. -v: Enables verbose output, providing more details during the test run. --host=staging: Specifies the environment for the tests.
After running your tests, you can generate and view the Allure reports to get insights into your test results. Follow these steps:
Make sure you have Allure installed on your system. Run the following command to generate the report:
allure serve
Contributions are welcome! If you have suggestions for improvements or find bugs, please feel free to submit a pull request or open an issue.
Thank you for checking out this repository! Happy testing! 🎉