I have the following JSON file :
Input.json:
{
"fieldList1": [
{
"datatype": "timestamp",
"fieldName": "DATE_"
},
{
"datatype": "decimal",
"fieldName": "DECIMAL_"
},
{
"datatype": "double",
"fieldName": "FLOAT_"
}
]
}
I'm reading this in my background as passing this as my Examples, in my scenario outline as follows:
TestScenario.feature:
Feature: scenario outline test
Background:
* def fieldListJson = call read(Input.json)
* def fieldList = karate.jsonPath(fieldListJson,$.fieldList1)[0]
Scenario Outline: Test
* def print <datatype>
* def print <fieldName>
Examples:
|fieldList|
I want to run this scenario for the fieldList against another set of parameters say
|Sources|
|oracle |
|sql |
|csvfile|
Would this be possible? I couldn't find any such example for the dynamic scenario outline to achieve such a scenario. Any suggestions please.