TeaPie is a lightweight API testing framework designed for automation-friendly, scriptable API testing with .http
files.
It provides pre-request scripting, post-response validation, retry strategies, flexible authentication, environments support and custom test directives.
π Complete documentation is available in the Wiki.
β
Universal HTTP Requests Definition β Define HTTP requests using .http
files
β Pre-Request & Post-Response Scripts β Extend HTTP request with C# scripts for data
β Custom Authentication Providers β Supports OAuth2 & user-defined authentication providers
β Retry Strategies β Customize retry logic for API failures
β Environment Support β Run your tests on any environment and change it dynamically
β Custom Reporting - Apart of Console and JUnit XML reporting, you can specify own reporters
β Easy Versioning β Collections of the tests can be part of (backend) repository and changes are easily visible on PRs
β Extensible & Open Source β Project is ready-to-be extended due to its pipeline design pattern
To install TeaPie CLI, use the following command:
dotnet tool install -g TeaPie.Tool
To install the framework in your project:
dotnet add package TeaPie
Create a new test case:
teapie generate <test-case-name>
Run all test cases in a collection:
teapie test demo
Execute a single test case:
teapie test ".\demo\Tests\2. Cars\EditCar-req.http" --env-file ".\demo\demo-env.json" i- ".\demo\init.csx"
For more usage details, visit the Wiki.
We welcome contributions! Please check out the Contribution Guide for details on how to get involved.
TeaPie is licensed under the MIT License. See the LICENSE file for details.