我想运行示例n
次,n
是getHotelid
的数据长度。
Feature: match rates from ds api to pricing api.
Background:
* url ''
Scenario Outline: Calling production assert feature file.
* def DbNew = Java.type('DbNew')
* def dq = new DbNew()
* def activeHotels = <ds_hotel_id>
* def hotel_id = call read('StringConverter.js') { activeHotels:'#(activeHotels)'}
* print hotel_id
Examples:
|dq.getHotelid()|
答案 0 :(得分:1)
这看起来像Karate - Not able to run dynamic scenario outline in a loop
您的示例应如下所示,
Examples:
|dq.getHotelid()|
请阅读此文档:Karate dynamic scenario