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

Main metrics

Overview
Name With Ownerkaratelabs/karate
Primary LanguageJava
Program languageJava (Language Count: 9)
PlatformBSD, Cross-platform, Linux, Mac, Solaris, Windows
License:MIT License
所有者活动
Created At2017-02-07 15:59:17
Pushed At2025-04-19 08:59:58
Last Commit At2025-01-07 11:07:54
Release Count56
Last Release Namev1.5.2.RC2 (Posted on )
First Release Namev0.1.2 (Posted on )
用户参与
Stargazers Count8.5k
Watchers Count225
Fork Count2k
Commits Count4.6k
Has Issues Enabled
Issues Count2124
Issue Open Count67
Pull Requests Count394
Pull Requests Open Count3
Pull Requests Close Count148
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private