In Scenario outlines, if there are 2 or more scenarios, then all the steps of feature will execute for both of the 2 more scenarios.
But I need to execute one of the step only once i.e. login step.
For Example:
Scenario Outline: Acceptance page has <Application> logo appearing on top
Given I am signing up in <Application> #I want to run this step only once
And I navigate to "Dashboard" page # I want to run this step only once
Then I should see "header logo" exist
And I should see "footer" exist
And I should expect the following elements to be visible
| element |
| Legal |
| Privacy |
| Security |
| Cookies |
Examples:
| Application |
| Gmail |
In above feature file, i want to log on application only once and verify rest of the steps.
Currently for every verification step, Logon thing happen again and again.
Please suggest how can i run login step only once and can check multiple items on page.