Skip to content

support calling a scenario for data set up of dynamic scenario outlines #1905

@ptrthomas

Description

@ptrthomas

based on discussion in #1903

As of today this works:

Feature:

@ignore @setup
Scenario:
* def data = [{a: 1}, {a: 2}]

Scenario:
* def temp = karate.call('@setup').data
* match temp == [{a: 1}, {a: 2}]

what needs to work is this:

Feature:

@ignore @setup
Scenario:
* def data = [{a: 1}, {a: 2}]

Scenario Outline:
* print __row

Examples:
| karate.call('@setup').data |

right now the karate.call() fails, there is some work to do in sequencing the call, making sure it runs at the time we init the feature etc. cc @edwardsph @joelpramos

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions