Is there a way to save the “Examples” data table in a separate file from the script schema?
I am trying to execute the entire script once in a browser one by one.
This works for me with the following function:
Feature: OpenGoogleInChrome
Scenario Outline: Open Google in Chrome
Given a browser '<browser>'
When the browser points to 'https://www.google.co.uk/'
Then the title should be 'Google'
Examples:
| browser |
| Chrome |
| Edge |
| Firefox |
But that would mean keeping the example table in each individual test if I added another browser. Can I refer to one “Examples” table from each scenario schema?
Or call the script schema complete with a table of examples from the step definition?
(Using Specflow and Selenium WebDriver with NUnit)
"" , , -, . , , - (.feature) .
, , @Chrome, ( ), , , .