Forum Discussion

jayanth070782's avatar
jayanth070782
New Contributor
3 years ago

Externalize the data for Gherkin feature file

Can we externalize the data for Gherkin feature file. Currently, option for iteration is Scenario Outline which handles the data iteration within feature file. If we want to avoid users opening feature file to update the data for iteration we could externalize data. Please confirm if externalization of data is supported

1 Reply

  • A gherkin feature file is a plain text document. Not piece of code.

     

    If you rely a lot on data which changes a lot over time, you could describe that behavior in your features instead of describing the data itself, then implement it as part of your test support code (step definitions, hooks, ...)