Gauge test specifications are made of one or more scenarios. If we need to repeat a set of steps before the execution of each scenario, we can use Context Steps. For example:
Delete project
==============
These are context steps
* User is logged in as "mike"
* Navigate to the project page
Delete single project
---------------------
* Delete the "example" project
* Ensure "example" project has been deleted
Delete multiple projects
------------------------
* Delete all the projects in the list
* Ensure project list is empty
I would like to define steps that are executed only one time and before all scenarios of a test specification. Is that possible? I couldn't find a way to do it reading the Gauge documentation.
Aucun commentaire:
Enregistrer un commentaire