Skip to content

Instantly share code, notes, and snippets.

@haigopi
Created July 15, 2018 21:43
Show Gist options
  • Save haigopi/4faf4e2aa14e4c7cca2ee934f0c2895d to your computer and use it in GitHub Desktop.
Save haigopi/4faf4e2aa14e4c7cca2ee934f0c2895d to your computer and use it in GitHub Desktop.
Feature: A simple payload that can kick off the API
Background:
* url baseURL+'/test'
* configure headers = read('classpath:headers.js')
* def payload = read('payload.json')
Scenario: Create and Retrieve a menu by Id
And request payload
When method post
Then status 200
And request payload
When method get
Then status 200
And request payload
When method post
Then status 200
And request payload
When method get
Then status 200
And request payload
When method post
Then status 200
And request payload
When method get
Then status 200
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment