authorjapps/zerocode
소개
zerocode-tdd는 커뮤니티가 개발한 무료 오픈 소스 결과 중심 자동화 테스트 프레임워크입니다. 데이터 파이프라인, ETL, REST API, Kafka(데이터 스트림), 데이터베이스 및 부하 시나리오를 지원하며, 모든 항목을 간단한 JSON 또는 YAML로 정의할 수 있어 코딩이 필요하지 않습니다.
데이터 및 분석측정된 스타 증가
- in 24h
- 0
- in 7 days
- -1
- in 15 days
- -1
- in 1 month
- +1
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Original
Zerocode
ZerocodeTDD is a no-code low-code automated testing tool for Data streams(Kafka), microservices APIs, and databases using JSON.
See also, CLI only tool Steply to run tests directly from the terminal.
Latest release: [ All releases 🏹 ]
CI Testing:
Issue Discussions: Slack
Mailing List: Mailing List
License: Apache 2.0
Zerocode makes it easy to create and maintain automated tests with absolute minimum overhead for REST,SOAP, Kafka Real Time Data Streams and much more. It has the best of best ideas and practices from the community to keep it super simple, and the adoption is rapidly growing among the developers & testers community.
Quick Start
Install Steply CLI from here and run an automated validation test:
steply --scenario tests/validate_github_user.json --target-env env/sit.properties
Documentation
Visit here :
- Documentation - Indexed & instantly finds you the results
- Want to amend or improve any documentation? Steps and guidelines are here
IDE Support By
Maven Dependency
Introduction
Zerocode is a modern, lightweight, and extensible open-source framework designed for writing executable test scenarios using simple JSON or YAML formats. It supports both declarative configuration and automation, making it user-friendly and efficient.
In essence, Zerocode simplifies the complexities of modern API and data-streaming automation, including Kafka. The framework seamlessly handles response validations, target API invocations, load/stress testing, and security testing, all through straightforward YAML/JSON/Fluent steps.
For example, if your REST API URL https://localhost:8080/api/v1/customers/123 with GET method and "Content-Type": "application/json" returns the following payload and a http status code 200(OK) ,
Response:
{
"id": 123,
"type": "Premium High Value",
"addresses": [
{
"type":"home",
"line1":"10 Random St"
}
]
}
then, we can easily validate the above API using Zerocode like below.
- Using JSON
{
"url": "api/v1/customers/123",
"method": "GET",
"request": {
"headers": {
"Content-Type": "application/json"
}
},
"retry": {
"max": 3,
"delay": 1000
},
"verify": {
"status": 200,
"headers": {
"Content-Type" : [ "application/json; charset=utf-8" ]
},
"body": {
"id": 123,
"type": "Premium Visa",
"addresses": [
{
"type": "Billing",
"line1": "10 Random St"
}
]
}
},
"verifyMode": "LENIENT"
}
- or Using YAML
---
url: api/v1/customers/123
method: GET
request:
headers:
Content-Type: application/json
retry:
max: 3
delay: 1000
verify:
status: 200
headers:
Content-Type:
- application/json; charset=utf-8
body:
id: 123
type: Premium Visa
addresses:
- type: Billing
line1: 10 Random St
verifyMode: LENIENT
The beauty here is, we can use the payload/headers structure for validation as it is without any manipulation or use a flat JSON path to skip the hassles of the entire object hierarchies.
Looks simple & easy? Why not give it a try? Visit the quick-start guide or user's guide to check out more scenarios.
Zerocode-TDD is used by many companies such as Vocalink, HSBC, HomeOffice(Gov) and many others to achieve accurate production drop of their micro-services, data-pipelines etc.
Also, learn more about Validators Vs Matchers here.
JSON Schema for Test Scenario
A JSON Schema (Draft-07) for scenario files is published at schema/zerocode-scenario-schema.json and pointed to from robots.txt at the project root. See here how to validate if you're developing custom tools.
AI Prompt | Generate a Test Scenarios using Claude Code | CoPilot | Codex or others:
Write a Zerocode scenario that conforms to
schema/zerocode-scenario-schema.jsonfor<your API or Kafka or Database test idea>. Use theassertionsblock (notverify) and include retry of 3 attempts with 500ms delay.
Happy Testing! 🐼
🔆 Visit Documentation - Indexed, searchable & instantly finds you the results
관련 프로젝트 살펴보기
불러오는 중…