【问题标题】:com.intuit.karate.exception.KarateException: user.feature:11 - no step-definition method match found for: Match responsecom.intuit.karate.exception.KarateException: user.feature:11 - 找不到匹配的步骤定义方法:匹配响应
【发布时间】:2019-11-13 12:00:15
【问题描述】:

下面是我的功能文件

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

【问题讨论】:

    标签: karate


    【解决方案1】:
    And match response == { userId: '#number', username: 'XXX' }
    

    注意match 必须全部小写。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2017-03-26
      • 2018-12-01
      • 1970-01-01
      • 1970-01-01
      • 2018-06-20
      • 1970-01-01
      • 2019-01-20
      相关资源
      最近更新 更多