On 12 July 2016 at 06:42, Vinoth Kannan <
vinothk...@gmail.com> wrote:
> is there any difference between @before hook and Background.
>
> both of them executes before every scenario
>
You can have multiple @before methods and exeute them in a specific
order by setting their priority.
The background is localizeed to the current feature file. Try having
two different feature files and you will notice that the background is
only executed for the scenarios in the feature file where it is
defined.
HTH
Thomas
> Thanks in advance
>
> Vinoth
>
> --
> Posting rules:
http://cukes.info/posting-rules.html
> ---
> You received this message because you are subscribed to the Google Groups
> "Cukes" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
cukes+un...@googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.
--
Thomas Sundberg
M. Sc. in Computer Science
Mobile:
+46 70 767 33 15
Blog:
http://www.thinkcode.se/blog
Twitter: @thomassundberg
Better software through faster feedback
Interested in a BDD Kickstart in Stockholm?
https://cucumber.io/events/bdd-kickstart-stockholm-16