Karate

测试自动化变得简单。(Test Automation Made Simple)

Github stars Tracking Chart

Karate

Test Automation Made Simple.

Maven Central Build Status GitHub release Support Slack Twitter Follow

Karate is the only open-source tool to combine API test-automation, mocks, performance-testing and even UI automation into a single, unified framework. The BDD syntax popularized by Cucumber is language-neutral, and easy for even non-programmers. Powerful JSON & XML assertions are built-in, and you can run tests in parallel for speed.

Test execution and report generation feels like any standard Java project. But there's also a stand-alone executable for teams not comfortable with Java. You don't have to compile code. Just write tests in a simple, readable syntax - carefully designed for HTTP, JSON, GraphQL and XML. And you can mix API and UI test-automation within the same test script.

Hello World

If you are familiar with Cucumber / Gherkin, the big difference here is that you don't need to write extra "glue" code or Java "step definitions" !

It is worth pointing out that JSON is a 'first class citizen' of the syntax such that you can express payload and expected data without having to use double-quotes and without having to enclose JSON field names in quotes. There is no need to 'escape' characters like you would have had to in Java or other programming languages.

And you don't need to create additional Java classes for any of the payloads that you need to work with.

Index

Overview

Name With Ownerkaratelabs/karate
Primary LanguageJava
Program languageJava (Language Count: 9)
PlatformBSD, Cross-platform, Linux, Mac, Solaris, Windows
License:MIT License
Release Count51
Last Release Namev1.5.0.RC3 (Posted on )
First Release Namev0.1.2 (Posted on )
Created At2017-02-07 15:59:17
Pushed At2024-04-22 20:38:28
Last Commit At2024-04-03 11:58:39
Stargazers Count7.9k
Watchers Count225
Fork Count1.9k
Commits Count4.4k
Has Issues Enabled
Issues Count2033
Issue Open Count58
Pull Requests Count367
Pull Requests Open Count4
Pull Requests Close Count143
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private
To the top