Created
April 2, 2017 06:15
-
-
Save ptrthomas/d5a2d9e15d0b07e4f1b46f692a599f93 to your computer and use it in GitHub Desktop.
Karate Hello World
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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