Getting error : no step-definition method match found for: form feild grant_type = 'client_credentials'
Getting error : no step-definition method match found for: form feild grant_type = 'client_credentials'
我正在尝试设置 oauth 2 但收到错误消息“未找到匹配的步骤定义方法:表单字段 grant_type = 'client_credentials'”
以下是我使用的步骤:
Given url 'https://abc-qf.company.com/st/token'
* configure ssl = true
* form feild grant_type = 'client_credentials'
* form feild client_id = 'Username'
* form feild client_secret = 'Password'
* form feild scope = '145'
When method post
Then status 200
* def accessToken = response.access_token
* print accessToken
你打错了,应该是form field
.
我正在尝试设置 oauth 2 但收到错误消息“未找到匹配的步骤定义方法:表单字段 grant_type = 'client_credentials'”
以下是我使用的步骤:
Given url 'https://abc-qf.company.com/st/token'
* configure ssl = true
* form feild grant_type = 'client_credentials'
* form feild client_id = 'Username'
* form feild client_secret = 'Password'
* form feild scope = '145'
When method post
Then status 200
* def accessToken = response.access_token
* print accessToken
你打错了,应该是form field
.