I have a feature file that looks like this
Background:
* table parameters
| endpoint | url | token | sslConfig |
| 'U' | xxx | aaa | |
| 'A' | yyy | bbb | someConfig|
Scenario Outline: bla bla
Given url url
And header Authorization = token
When method GET
Then status 200
And match response == read('expectation.json')
Examples:
| parameters |
+ bunch of other similar scenario outlines
There are some task (setting ssl
config) I need to do for each scenario line depending on some condition (if sslConfig != null
) and for that I need to read the token param from the table / json. this can be done by check and configuring the ssl in individual scenario outline but I would prefer to do it once (probably in the background).
But I cannot access the variable sslConfig
in the background. Is there anyway to achieve this?