Hi guys.I want to find out if it possible to get the annotations on a Feature instead of a Scenario.
I know I can access some part with an @After and the Scenario. Which contains the Annotation on a Scenario which I found after some digging.However I can't seem to be able to find the name of the feature and annotations on it.For example:@Afterpublic static runAfterFeatures(Scenario sc) {logger.log("These are the annotations on a feature: " + sc.annotationsOnAFeature);}Where as a feature looks like this:@Oneannotation @web @storynumber @quickFeature: Do something interestingAnd I would like to be able to get these annotations from it.
Do I have to implement my own filter for that?
If so...where do I register the implementor with cucumber?thanks very much!Greg--
-- Rules --
1) Please prefix the subject with [Ruby], [JVM] or [JS].
2) Please use interleaved answers http://en.wikipedia.org/wiki/Posting_style#Interleaved_style
3) If you have a question, don't reply to an existing message. Start a new topic instead.
You received this message because you are subscribed to the Google Groups Cukes group. To post to this group, send email to cu...@googlegroups.com. To unsubscribe from this group, send email to cukes+un...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/cukes?hl=en
---
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/groups/opt_out.
Well if there is no other way... hacking it shall be...
Hi Aslak.Because based on the Tag I'd like to perform a certain action for example put it into a custom report.
Top post? I don't know what that is, I'll look into it.
-- Rules --
1) Please prefix the subject with [Ruby], [JVM] or [JS].
2) Please use interleaved answers http://en.wikipedia.org/wiki/Posting_style#Interleaved_style
3) If you have a question, don't reply to an existing message. Start a new topic instead.
On Wednesday, 17 April 2013 08:59:35 UTC+1, Matt Wynne wrote:On 17 Apr 2013, at 08:22, Gergely Brautigam <skarl...@gmail.com> wrote:Top post? I don't know what that is, I'll look into it.Here are the rules for this forum, pasted from the bottom of this email:-- Rules --
1) Please prefix the subject with [Ruby], [JVM] or [JS].
2) Please use interleaved answers http://en.wikipedia.org/wiki/Posting_style#Interleaved_style
3) If you have a question, don't reply to an existing message. Start a new topic instead.Rule 2 is about top-posting. Please read the linked article.
Excellent. Thanks. However this still does not solve my problem. :)As far as I could find I could only come up with listeners for ruby but not the java version one. :(So if there is a resource I maybe missed or something could you please point me into the right direction? :)Thanks!
Fixing Rule 2. Please stop breaking this rule, it's there for a reason.
Hi,I am getting error on the statement :Field executionRunnerField = reporter.getClass().getDeclaredField("executionUnitRunner");that executionUnitRunner is empty..From where do we get it.?? or do i need to write something else at its place ??
--
Posting rules: http://cukes.info/posting-rules.html