This framework is designed for API testing using the Behave BDD (Behavior-Driven Development) framework. It allows for writing tests in a natural language style, making the test cases easy to read and understand.
- BDD Approach: Utilizes the Behave framework for Python to write tests in Gherkin syntax.
- Configurable: Customizable settings through
behave.inifor different testing environments. - Reporting: Supports generating reports in multiple formats, including Allure and JUnit, through Behave's formatter options.
- Integration: Can be integrated with CI/CD pipelines for automated testing.
- Python 3.x
- Behave
- Allure (for Allure reports)
- Clone the repository to your local machine.
- Install the required Python packages:
pip install -r requirements.txt
To run all tests, use the following command:
behave
To run a specific feature file:
behave features/my_feature.feature
The framework's behavior can be customized by editing the behave.ini file. For example, to change the reports directory:
9|ALLURE_REPORTS_DIR=new_reports_directoryTo generate Allure reports, run:
behave -f allure_behave.formatter:AllureFormatter -o test_reports/allure.reports
Contributions are welcome. Please read the contributing guidelines before submitting pull requests.
This project is licensed under the MIT License - see the LICENSE file for details