Veriflow is a CLI tool designed for declarative and deterministic end-to-end API testing. By using a simple JSON configuration file, Veriflow enables seamless definition and execution of API test flows, ensuring that your API behaves as expected across various scenarios with minimal setup and no code changes required.
Veriflow is an efficient and straightforward command line interface (CLI) tool designed for executing effective and deterministic end-to-end API testing. This tool leverages a simple JSON configuration file to define and run declarative test flows, allowing for easy testing of APIs without requiring any code changes on the server.
The following JSON snippet demonstrates how to configure a user authentication flow:
{
"baseUrl": "http://localhost:8080",
"flows": {
"user-auth": {
"steps": [
{
"name": "register",
"request": {
"method": "POST",
"path": "/api/auth/v3/register",
"json": {
"email": "user+{{RUN_ID}}@example.com",
"password": "secret"
}
},
"assert": {
"status": 201,
"all": [
{ "jsonpath": "$.data.username", "exists": true }
]
},
"exports": { "username": "$.data.username" }
},
{
"name": "login",
"request": {
"method": "POST",
"path": "/api/auth/v3/login",
"json": {
"username": "{{bind:username}}",
"password": "secret"
}
},
"assert": {
"status": 200,
"all": [
{ "jsonpath": "$.data.email", "contains": "{{RUN_ID}}" }
]
}
}
]
}
}
}
Veriflow embodies a clear design philosophy focused on deterministic execution and transparency, making it an ideal solution for developers and testers aiming to ensure consistent and reliable API performance.
No comments yet.
Sign in to be the first to comment.