https://github.com/prashantfarakate/api-automation-framework-python
This project is an automation framework for testing APIs using Python and pytest, integrated with CI/CD using GitHub Actions.
https://github.com/prashantfarakate/api-automation-framework-python
allure-report github-actions jenkins p pytest pytest-html requests-library-python restful-api
Last synced: 10 months ago
JSON representation
This project is an automation framework for testing APIs using Python and pytest, integrated with CI/CD using GitHub Actions.
- Host: GitHub
- URL: https://github.com/prashantfarakate/api-automation-framework-python
- Owner: prashantFarakate
- Created: 2024-10-12T12:12:29.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-13T19:08:17.000Z (about 1 year ago)
- Last Synced: 2025-01-22T13:42:44.828Z (about 1 year ago)
- Topics: allure-report, github-actions, jenkins, p, pytest, pytest-html, requests-library-python, restful-api
- Language: Python
- Homepage:
- Size: 9.35 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# API Automation Framework in Python
## Description
This project is an automation framework for testing APIs using Python and pytest, integrated with CI/CD using GitHub Actions.
## Features
- API Testing: Validate RESTful APIs using Pytest.
- CI/CD: Intergrate with GitHub Actions for Automated Testing and deployment
- Reporting: Generate detailed HTML reports of test execution.
## API Testing
- Validate RESTful APIs using Pytest.
- Supports GET, POST, PUT, DELETE operations.
- Ensure schema validation, status code checks, response validation.
- Handle authentication (e.g., API tokens) seamlessly in tests.
## CI/CD Integration
- GitHub Actions used for automated testing and deployment.
- Trigger tests on code push or pull requests.
## Reporting
- Generate detailed HTML reports of test execution with pytest-html.
- Include test summaries, passed/failed test details, logs, and timestamps.
- Easily shareable reports to analyze issues and monitor test progress.
- Example report: ```reports/Test_Execution_Report.html.```
## Installation
To install the necessary dependencies, run:
```bash
pip install -r requirements.txt
```
Run the test using:
```bash
pytest -v -s --html=reports/Test_Execution_Report.html
```
Auther Name - Prashant Farakate