【发布时间】:2020-02-17 11:01:36
【问题描述】:
我正在尝试循环遍历空手道功能文件中的数组值。 在 Feature1.feature - Scenario1 中,我在数组 ["UUID1","UUID2","UUID3"] 中有一些值,我想调用另一个功能文件 (Feature2.feature)(有一个调用 DELETE 端点的代码) 服务
Feature2.feature:
@ignore
Feature: Delete
Background:
* url baseUrl
* headers {content-type:'application/json'}
Scenario: Delete Test Assets
Given headers {uid: '#(UId)', cid:'#(CId)'}
And path 'type', Type, 'id', AssetId
When method delete
Then status 204
我应该对 Feature1.feature 使用什么方法来循环调用 Feature2.feature?
【问题讨论】:
标签: loops automation bdd karate