karate
karate copied to clipboard
Test Automation Made Simple
based on discussion in #1903 As of today this works: ```cucumber Feature: @ignore @setup Scenario: * def data = [{a: 1}, {a: 2}] Scenario: * def temp = karate.call('@setup').data *...
refer conversation here: https://github.com/karatelabs/karate/pull/1861#issuecomment-1080562695 proposing the following for a start: ```cucumber # get single header * match karate.response.header('foo') == 'bar' # get all header values by key * match karate.response.headers('foo')...
mac or linux 1. open command prompt 2. cd ~ 3. git clone https://github.com/karatelabs/karate-npm 4. npm install 5. npm run test "/Users//karate-npm/karate/httpbin.feature:3" 6. notice feature file is found and test...
as of today this is how the `evaluate` command is handled: https://github.com/karatelabs/karate/blob/v1.2.1.RC1/karate-core/src/main/java/com/intuit/karate/debug/DapServerHandler.java#L331 we need to use the `ErrorResponse` for better IDE user-experience: https://microsoft.github.io/debug-adapter-protocol/specification#Base_Protocol_ErrorResponse
as reported here: https://stackoverflow.com/a/69536418/143475 to replicate the issue: ```cucumber * def foo = {} * set foo.a[0].b[0].c = 'hello' * print foo ``` error: ``` * set foo.a[0].b[0].c = 'hello'...
Currently, once the WebSocketClient produced by `karate.webSocket(url, handlerDelegate);` has responded to it's `listen` method, subsequent calls to `listen` will always return the first message returned. This is not helpful, particularly...
refer discussion [in 2009 on Jun 7](https://github.com/karatelabs/karate/issues/2009#issuecomment-1148019514) plan is: * version 1.3.0 of Karate (which solves the Graal JS issues) will be the last release that uses JDK 8 *...
I'm updating karate v1.01 to v1.2.0. This small scenario will fail in karate v1.2.0 but will succeed in v1.0.1 ``` @test_contains_only Scenario: Test contains only shortcut * def expected =...
[karate-sample-persistent-state-dynamic-scope.zip](https://github.com/karatelabs/karate/files/7705995/karate-sample-persistent-state-dynamic-scope.zip) Hello! I don't know if is intended or not, but the dynamic scope in MockServer features doesn't work, the test fails in the last line of the second `proxy.feature`...
# Description In Karate version 1.2.0.RC2, a bug seems to have been introduced where Karate now passes `url` and `header` (not sure if any other things as well) from a...