v2.0.0
Karate 2.0.0
Important: 2.0.5 is available.
The first major release of Karate v2 — a ground-up rewrite of the test automation framework, built on Java 21+ virtual threads with a custom JavaScript engine.
Highlights
- Custom JS Engine — embedded JavaScript engine (
karate-js) replaces GraalJS. Minimal external dependencies, faster startup, native Java interop - Virtual Threads — parallel test execution on Java 21+ virtual threads. No thread pool tuning needed
- W3C WebDriver — full cross-browser support for Chrome, Firefox, Safari, and Edge alongside the existing CDP driver
- Browser Pooling — automatic browser instance reuse across parallel scenarios via
PooledDriverProvider - Karate CLI — single binary launcher, no Maven or Gradle required. Install from VS Code with one click:
- Rewritten CDP Driver — auto-wait, Shadow DOM support, smarter element location
- Gatling Integration — Java-only DSL for load testing (
karateProtocol(),karateFeature()) - Interactive HTML Reports — Alpine.js dashboard with timeline view, tag filtering, and nested call display
- Declarative Auth —
configure authfor Basic, Bearer, and OAuth2 with automatic token refresh - Soft Assertions — All JSON errors collected instead of first assertion failure.
continueOnStepFailuremode for features - Built-in Utilities —
karate.faker.*for test data,karate.expect()for Chai-style assertions
Documentation
- Migration Guide (v1 → v2)
- What's New in v2
- Install & Get Started
- Browser Automation (CDP + WebDriver)
- Design Principles
- VS Code Extension
- IntelliJ Plugin
- Karate CLI / Universal Installer
Breaking Changes
See the Migration Guide for details.
Artifacts Released
- Maven artifacts
- Standalone JAR (download below)
- CVE / SBOM report (download below)