Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Karate Hello World
Feature: karate 'hello world' example
Scenario: create and retrieve a cat
Given url 'http://myhost.com/v1/cats'
And request { name: 'Billie' }
When method post
Then status 201
And match response == { id: '#notnull', name: 'Billie' }
Given path response.id
When method get
Then status 200
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment