All Projects → authorjapps → Zerocode

authorjapps / Zerocode

Licence: apache-2.0
A community-developed, free, open source, microservices API automation and load testing framework built using JUnit core runners for Http REST, SOAP, Security, Database, Kafka and much more. Zerocode Open Source enables you to create, change, orchestrate and maintain your automated test cases declaratively with absolute ease.

Programming Languages

java
68154 projects - #9 most used programming language
dsl
153 projects
declarative
70 projects

Projects that are alternatives of or similar to Zerocode

Fastapi
FastAPI framework, high performance, easy to learn, fast to code, ready for production
Stars: ✭ 39,588 (+8113.28%)
Mutual labels:  api, rest, json, framework
Flask Restplus
Fully featured framework for fast, easy and documented API development with Flask
Stars: ✭ 2,585 (+436.31%)
Mutual labels:  api, rest, json
Ray
a framework that helps you to deliver well-designed python APIs
Stars: ✭ 215 (-55.39%)
Mutual labels:  api, rest, framework
Httpie
As easy as /aitch-tee-tee-pie/ 🥧 Modern, user-friendly command-line HTTP client for the API era. JSON support, colors, sessions, downloads, plugins & more. https://twitter.com/httpie
Stars: ✭ 53,052 (+10906.64%)
Mutual labels:  api, rest, json
Flexirest
Flexirest - The really flexible REST API client for Ruby
Stars: ✭ 188 (-61%)
Mutual labels:  api, rest, json
Jsonapi Utils
Build JSON API-compliant APIs on Rails with no (or less) learning curve.
Stars: ✭ 191 (-60.37%)
Mutual labels:  api, rest, json
Http Fake Backend
Build a fake backend by providing the content of JSON files or JavaScript objects through configurable routes.
Stars: ✭ 253 (-47.51%)
Mutual labels:  api, rest, json
Fastapi Crudrouter
A dynamic FastAPI router that automatically creates CRUD routes for your models
Stars: ✭ 159 (-67.01%)
Mutual labels:  api, rest, framework
Product Ei
An open source, a high-performance hybrid integration platform that allows developers quick integration with any application, data, or system.
Stars: ✭ 277 (-42.53%)
Mutual labels:  api, rest, soap
Horse
Fast, opinionated, minimalist web framework for Delphi
Stars: ✭ 295 (-38.8%)
Mutual labels:  api, rest, framework
Api
HeadHunter API: документация и библиотеки
Stars: ✭ 324 (-32.78%)
Mutual labels:  api, rest, json
Autoserver
Create a full-featured REST/GraphQL API from a configuration file
Stars: ✭ 188 (-61%)
Mutual labels:  api, json, framework
Api Diff
A command line tool for diffing json rest APIs
Stars: ✭ 164 (-65.98%)
Mutual labels:  api, rest, json
Magic
Create your .Net Core/Angular/Database CRUD Web apps by simply clicking a button
Stars: ✭ 214 (-55.6%)
Mutual labels:  api, rest, framework
Mono
Minimalist Framework on top of Express.js
Stars: ✭ 163 (-66.18%)
Mutual labels:  api, rest, framework
Horaires Ratp Api
Webservice pour les horaires et trafic RATP en temps réel
Stars: ✭ 232 (-51.87%)
Mutual labels:  api, rest, json
Gearbox
Gearbox ⚙️ is a web framework written in Go with a focus on high performance
Stars: ✭ 455 (-5.6%)
Mutual labels:  api, rest, framework
Grafanajsondatasource
Grafana datasource to load JSON data over your arbitrary HTTP backend
Stars: ✭ 146 (-69.71%)
Mutual labels:  api, rest, json
Restinstance
Robot Framework library for RESTful JSON APIs
Stars: ✭ 157 (-67.43%)
Mutual labels:  api, rest, json
Php Curl Class
PHP Curl Class makes it easy to send HTTP requests and integrate with web APIs
Stars: ✭ 2,903 (+502.28%)
Mutual labels:  api, json, framework

Zerocode Logo

Automated API testing has never been so easy

API Performance Testing Twitter Follow

Latest release:🏹 Maven
Continuous Integration: Build Status
Issue Discussions: Slack
Mailing List: Mailing List
License: Apache 2.0
LinkedIn: Zerocode

Zerocode Open Source makes it easy to create, change, orchestrate and maintain automated tests with the absolute minimum overhead for REST, SOAP, Kafka Real Time Data Streams and much more. Tests created in Zerocode Open Source can be easily shared between teams for reviewing, editing, and versioning. The platform incorporates the best feedback and suggestions from the community to make it incredibly powerful, and we’re seeing rapid adoption across the developer/tester community

Quick Links

To get started with Zerocode Open Source and its features, visit

Maven Dependency

Introduction

Zerocode Open Source is a lightweight, simple and extensible framework for writing test intentions in a simple JSON or YAML format that facilitates both declarative configuration and automation.

Put simply, Zerocode is a sollution for all API Development pain points. The objective is to bring simplicity to API automation. The framework provides a unified solution to manage response validations, target API invocations, perform load/stress testing and perform security testing using a the simple domain specific languages (DSL) JSON and YAML.

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, Zerocode Open Source can be easily used to validate API using as follows:

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.

Validators

Using YAML

---
url: api/v1/customers/123
method: GET
request:
  headers:
    Content-Type: application/json
retry:
  max: 3
  delay: 1000
validators:
- field: "$.status"
  value: 200
- field: "$.body.type"
  value: Premium High Value
- field: "$.body.addresses[0].line1"
  value: 10 Random St

or

Using JSON

{
  "url": "api/v1/customers/123",
  "method": "GET",
  "request": {
    "headers": {
      "Content-Type": "application/json"
    }
  },
  "retry": {
    "max": 3,
    "delay": 1000
  },
  "validators": [
    {
      "field": "$.status",
      "value": 200
    },
    {
      "field": "$.body.type",
      "value": "Premium High Value"
    },
    {
      "field": "$.body.addresses[0].line1",
      "value": "10 Random St"
    }
  ]
}

Matchers

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 High Value
    addresses:
    - type: Billing
      line1: 10 Random St
verifyMode: LENIENT

or

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 High Value",
      "addresses": [
        {
          "type": "Billing",
          "line1": "10 Random St"
        }
      ]
    }    
  },
  "verifyMode": "STRICT"
}

The test can then be run simply by pointing to the above JSON/YAML file from a Junit @Test method.

   @Test
   @Scenario("test_customer_get_api.yml")
   public void getCustomer_happyCase(){
        // No code goes here
   }

The bottom line is that Zerocode Open Source makes automated API testing declarative and simple. If you’d like to learn more, visit the quick-start guide to get started testing - fast!

Zerocode Open Source is used by many companies such as Vocalink, HSBC, HomeOffice(Gov) and many others to achieve an accurate production drop of their microservices. Learn more about Validators Vs Matchers here.

Happy testing!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].