Reputation: 69
Below is my feature file
Feature: Fetching user details
* url 'demourl'
Scenario: User Service
Given path 'demourl/User'
When method get
Then status 200
And Match response == { userId: '#number', username: 'XXX' }
* def userId = response.userId
Upvotes: 3
Views: 487
Reputation: 58058
And match response == { userId: '#number', username: 'XXX' }
Note that match
has to be all lower-case.
Upvotes: 1