For this use case I recommend using JSON instead of a table and it will import nicely and have the advantage of being editable by most IDE-s etc.* def dogs = read('dogs.json')* match dogs == [{name: 'Charlie', age: 2}, {name: 'Jack', age: 4}, {name: 'Rock', age: 9}]您也可以这样做:* call read('dogs.feature')* match dogs == [{name: 'Charlie', age: 2}, {name: 'Jack', age: 4}, {name: 'Rock', age: 9}]在dogs.featureFeature:Scenario:* table dogs | name | age | | 'Charlie' | 2 | | 'Jack' | 4 | | 'Rock' | 9 |由于某些团队坚持使用Excel(我不建议这样做),如果适用,也请参考此答案: https://stackoverflow.com/a/47954946/143475 since some teams insist on Excel (which I don't recommend) refer to this answer also if applicable: https://stackoverflow.com/a/47954946/143475 这篇关于如何从.feature文件中分离表(空手道框架)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
07-30 20:05