Skip to content

Now you can write your API tests in simple YAML syntax with solid assertions and powerful html and xml reports

Notifications You must be signed in to change notification settings

ymhmd/koala-restful-api-testing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Koala

  • Now you can write your API tests in yaml format with very solid assertions generating powerful report in xml and html. For example:
description: "First test suite ever"
steps:
  - description: Get token and validate it exists
    url: '{@global_vars:api_url}'
    type: GET
    headers:
    body:
    statusCode: 200
    validations: Token, null, string
    wait: 0

  - description: Get token and validate response
    url: '{@global_vars:api_url}'
    type: GET
    headers:
    body:
    statusCode: 200
    validations: 'Value_float, 123.123, float; Value_boolean, true, boolean'
    wait: 0

How import Koala in your gradle project

  • Gradle Example
allprojects {
        repositories {
            jcenter()
            maven { url "https://jitpack.io" }
        }
   }
   dependencies {
        implementation 'com.github.ymhmd:koala:master'
   }
  • Now Koala is imported to gradle project.

  • Create KoalaExample class to trigger tests execution

import com.koala.apitesting.yaml.YamlRunner;

public class KoalaExample {

    private static String YAMLFiles = "execution/sample-1.yaml, execution/sample-2.yaml";
    private static String GlobalVarsFile = "execution/globalVars.bueno";

    public static void main(String[] args) {

        YamlRunner yamlRunner = new YamlRunner();

        yamlRunner.executeYamlSuite(YAMLFiles, GlobalVarsFile);

    }

}

About

Now you can write your API tests in simple YAML syntax with solid assertions and powerful html and xml reports

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages