automating-api-testing
This skill automates API endpoint testing, including request generation, validation, and comprehensive test coverage for REST and GraphQL APIs. It is used when the user requests API testing, contract testing, or validation against OpenAPI specifications. The skill analyzes API
Installation
Pick a client and clone the repository into its skills directory.
Installation
About this skill
This skill automates API endpoint testing, including request generation, validation, and comprehensive test coverage for REST and GraphQL APIs. It is used when the user requests API testing, contract testing, or validation against OpenAPI specifications. The skill analyzes API endpoints and generates test suites covering CRUD operations, authentication flows, and security aspects. It also validates response status codes, headers, and body structure. Use this skill when the user mentions \
How to use
- Przygotuj definicję API — dostarczysz plik OpenAPI/Swagger, kod źródłowy endpointów lub opisz strukturę API, którą chcesz testować.
- Poproś skill o wygenerowanie testów — powiedz: "Wygeneruj testy API dla endpointów w pliku users.js" lub "Stwórz testy GraphQL dla mojego schematu".
- Skill analizuje definicję — parsuje plik OpenAPI, kod źródłowy lub inferencję z użycia, aby zrozumieć strukturę API.
- Generuje zestawy testów — tworzy przypadki testowe obejmujące operacje CRUD, autentykację, obsługę błędów i przepływy bezpieczeństwa.
- Wykonuje testy i waliduje — uruchamia wygenerowane testy, sprawdza kody statusu HTTP, nagłówki odpowiedzi i strukturę ciała odpowiedzi.
- Otrzymujesz raport — skill zwraca wyniki walidacji kontraktów API i wskazuje ewentualne problemy w endpointach.