我可以运行在场景大纲中举例n次吗?
Can I run example in scenario outline for n times?
我要运行实例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()|
这很像
您的示例应如下所示,
Examples:
|dq.getHotelid()|
请阅读此文档:Karate dynamic scenario
我要运行实例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()|
这很像
您的示例应如下所示,
Examples:
|dq.getHotelid()|
请阅读此文档:Karate dynamic scenario