Skip to content

Instantly share code, notes, and snippets.

@ptrthomas
Created April 2, 2017 06:15
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ptrthomas/d5a2d9e15d0b07e4f1b46f692a599f93 to your computer and use it in GitHub Desktop.
Save ptrthomas/d5a2d9e15d0b07e4f1b46f692a599f93 to your computer and use it in GitHub Desktop.
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