I am afraid that you will want to use an external data source to store variables to provide cucumber steps. That you could consider us using DataTable Scenario Outlines. In both cases, you can provide some local (intra-functional files) parameters. For instance:
Scenario: Scenario1
Given I have done "this"
Then these can be used:
| col1 | col2 | col3 |
| x | x1 | x2 |
| y | y1 | y2 |
Scenario Outline: <col1> test
Given I have done "<col2>"
Then I can see "<col3>"
| col1 | col2 | col3 |
| par1 | par2 | par3 |
source
share