forked from karatelabs/karate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cats.feature
33 lines (26 loc) · 804 Bytes
/
cats.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
Feature: cats integration test
Background:
* url karate.properties['mock.cats.url']
Scenario: create cat
Given request { name: 'Billie' }
When method post
Then status 200
And match response == { id: 1, name: 'Billie' }
Given path 1
When method get
Then status 200
And match response == { id: 1, name: 'Billie' }
When method get
Then status 200
And match response == [{ id: 1, name: 'Billie' }]
Given request { name: 'Bob' }
When method post
Then status 200
And match response == { id: 2, name: 'Bob' }
Given path 2
When method get
Then status 200
And match response == { id: 2, name: 'Bob' }
When method get
Then status 200
And match response == [{ id: 1, name: 'Billie' },{ id: 2, name: 'Bob' }]