Karate

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

Github星跟踪图

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

主要指标

概览
名称与所有者karatelabs/karate
主编程语言Java
编程语言Java (语言数: 9)
平台BSD, Cross-platform, Linux, Mac, Solaris, Windows
许可证MIT License
所有者活动
创建于2017-02-07 15:59:17
推送于2025-08-04 19:08:24
最后一次提交2025-06-25 13:38:03
发布数56
最新版本名称v1.5.2.RC2 (发布于 )
第一版名称v0.1.2 (发布于 )
用户参与
星数8.6k
关注者数226
派生数2k
提交数4.6k
已启用问题?
问题数2140
打开的问题数73
拉请求数396
打开的拉请求数3
关闭的拉请求数151
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?