Gherkin  Background / After


For initialisation and tear-down of your .Feature file script.



Background: Before / After:

To set the initial context of the Feature, you may want to perform some actions before starting the scenario, so you can add Given steps at the top of the feature (eg Navigate & Login), in the Background  section. Similarly, any actions that are to be performed at the end of the case (eg Logout) can be added at the end of the feature in the After section.




<<<<< Back to Scenario Examples                                                               Forward to Tags/Comments >>>>>