一个功能文件正在调用另一个功能文件,并传递一个值作为参数。我在另一个项目中尝试了相同的方法,但它确实起作用。当我现在尝试时,出现以下错误消息
com.intuit.karate.exception.KarateException:get-id.feature:10-JavaScript评估失败:PID,ReferenceError:第1行未定义“ PID” 在✽。给出参数p_id = PID(get-id.feature:10)
通话功能:
Background:
And def response = call read('classpath:docGen/get-id.feature') {PID: '123456'}
And print response
And def ID = response.response['id-abc']
-------------------------------------------------------------------------------------------
get-id.feature
Feature: Authorization using id-abc
Background:
* url idURL
Scenario: Get the id-abc from member number
Given param p_id = PID
When method GET
Then status 201