Discussion:
[Cucumber] [cucumber][jvm] what named/tagged hook sequence/order of execution
Add Reply
Chetan Dewangan
2017-12-14 00:44:40 UTC
Reply
Permalink
Raw Message
Do we have specific order of execution for tagged hook in cucumber jvm?

Do we have option to select which tagged hook will run in specific order?
--
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+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Chetan Dewangan
2017-12-14 00:54:48 UTC
Reply
Permalink
Raw Message
Currently I see following output:

Current behavior:
@Before (No tagged)
@Before(@login)
@After (No tagged)
@After(@login)


The common expected would be:

@Before (No tagged)
@Before(@login)
@After(@login)
@After (No tagged)


My question was about: @android and @login should allowed to be run in
given order.

@Before (No tagged)
@Before(@android)
@Before(@login)
@After(@login)
@After(@android)
@After (No tagged)

OR

@Before (No tagged)
@Before(@login)
@Before(@android)
@After(@android)
@After(@login)
@After (No tagged)
Post by Chetan Dewangan
Do we have specific order of execution for tagged hook in cucumber jvm?
Do we have option to select which tagged hook will run in specific order?
--
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+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
aslak hellesoy
2017-12-14 07:13:22 UTC
Reply
Permalink
Raw Message
Post by Chetan Dewangan
Do we have specific order of execution for tagged hook in cucumber jvm?
Do we have option to select which tagged hook will run in specific order?
Yes, specify the order attribute on the annotation.

Aslak
Post by Chetan Dewangan
--
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
For more options, visit https://groups.google.com/d/optout.
--
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+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Marit van Dijk
2017-12-17 06:41:09 UTC
Reply
Permalink
Raw Message
Here's an exaple:
https://stackoverflow.com/questions/38309838/cucumber-junit-is-there-a-way-to-control-the-order-in-which-before-and-after
Post by aslak hellesoy
Post by Chetan Dewangan
Do we have specific order of execution for tagged hook in cucumber jvm?
Do we have option to select which tagged hook will run in specific order?
Yes, specify the order attribute on the annotation.
Aslak
Post by Chetan Dewangan
--
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
For more options, visit https://groups.google.com/d/optout.
--
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+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Chetan Dewangan
2017-12-21 19:04:04 UTC
Reply
Permalink
Raw Message
Cool, Thanks Aslak and Dijk
Post by aslak hellesoy
Post by Chetan Dewangan
Do we have specific order of execution for tagged hook in cucumber jvm?
Do we have option to select which tagged hook will run in specific order?
Yes, specify the order attribute on the annotation.
Aslak
Post by Chetan Dewangan
--
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
For more options, visit https://groups.google.com/d/optout.
--
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+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...