私のテストにいくつかの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]]