일부 JSON 데이터를 테스트에 가져오고 싶습니다. 문서하기 위해
나는 같은 것을 수행해야합니다공수 - json 데이터를 가져 오는 방법
Background:
* def data = call read('classpath:init/data.json')
Scenario:
* print data
: 이것은 내 코드입니다
{
"name": "ehsan"
}
:이 콘텐츠를 내 JSON 파일을 생성 한
* def data = read('classpath:init/data.json')
하지만 아무것도 인쇄하지 않는다고 말합니다 :
16:11:30.898 [main] WARN com.intuit.karate - not a js function or feature file: read('classpath:init/data.json') - [type: JSON, value: [email protected]]