Framework API — Python Requests + Pytest-BDD + Agents IA
Couverture
- 51 scénarios BDD (Gherkin) couvrant 8 endpoints Restful Booker
- 8 feature files : auth, booking list/get/create/update/patch/delete, health check
- Page Object Model API : BaseAPI → AuthPage, BookingPage, HealthPage
- Step definitions en français (common_steps + 7 modules)
Endpoints testés
| Méthode |
Endpoint |
TCs |
| POST |
/auth |
5 |
| GET |
/booking |
7 |
| GET |
/booking/{id} |
7 |
| POST |
/booking |
12 |
| PUT |
/booking/{id} |
6 |
| PATCH |
/booking/{id} |
7 |
| DELETE |
/booking/{id} |
6 |
| GET |
/ping |
1 |
Agents IA (8 agents)
| Agent |
Rôle |
| test-case-agent |
Génération Gherkin + mapping Jira |
| status-agent |
Sync Allure → Jira (51 TCs, HBAPI-11..61) |
| report-agent |
Pipeline Allure complet |
| git-agent |
Commit/push automatisé |
| jira-agent |
Setup projet + sprint |
| bug-analyzer |
Analyse des échecs |
| qa-agent |
Revue qualité |
| api-spec-agent |
Génération specs OpenAPI |
Résultats Allure
- 48/51 PASSED (94%)
- 3 défauts API documentés (totalprice négatif, dates inversées, XSS non filtré)
- Rapport Allure généré et publié
Intégration Jira
- 51 test cases Jira (HBAPI-11 à HBAPI-61) mis à jour automatiquement
- Statuts : 48 → Terminé | 3 → En cours
Stack
Python · Requests · Pytest-BDD · Allure · Groq LLaMA · Jira REST API v3