TestQA
TestQA

Reputation: 69

com.intuit.karate.exception.KarateException: user.feature:11 - no step-definition method match found for: Match response

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

Answers (1)

Peter Thomas
Peter Thomas

Reputation: 58058

And match response == { userId: '#number', username: 'XXX' }

Note that match has to be all lower-case.

Upvotes: 1

Related Questions