You don't need a unique id to call (execute?) a specific scenario. Just:
cucumber path/to/the.feature:98
If I misunderstood what you're trying to accomplish, please give an example.
Aslak
> I've been looking around Gherkin, trying to find a spot where I could use
> its parser so, when he reads the .feature files for the scenarios, I could
> write the tag, creating the mentioned unique ID.
>
> However, I've had a hard time, since I can't really find out where the
> parser reads the files and how to create this functionality. Do you have
> any idea where the best place to make this change is or where I could start?
>
> Thank you for the help. Best regards
>
> --
> You received this message because you are subscribed to the Google Groups
> "Cukes" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/cukes/-/FE-TqAtwwSMJ.
> 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
> http://groups.google.com/group/cukes?hl=en.
--
If you look at the feature file in an text editor you will see the
line numbers. That's hard to mess up.
I don't understand what higher level problem you are trying to solve.
Do you have a lot of people who each need to run their individual
scenarios?
Aslak
> --
> You received this message because you are subscribed to the Google Groups
> "Cukes" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/cukes/-/Y5H1YOtZyYYJ.
I don't know what "Basically yes" is a reply to. Please use
interleaved posting style so we can follow the conversation:
http://en.wikipedia.org/wiki/Posting_style
> I really need this feature, for later usages in this
> project.
>
> Any idea where I could start?
>
You'd have to start by convincing us why this feature is needed, by
explaining what you are trying to accomplish.
Aslak
> --
> You received this message because you are subscribed to the Google Groups
> "Cukes" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/cukes/-/AWQKOoS8pQoJ.
--
You received this message because you are subscribed to the Google Groups "Cukes" group.
To view this discussion on the web visit https://groups.google.com/d/msg/cukes/-/fFiHH4U3Yo8J.
Well that was one of my problems, I want to avoid having two or more issues for just one scenario. If I can link one specific scenario (using something that can make it unique) to one specific issue (which already has a ticket number created automatically), I can just update the information with what went wrong in the latest testing round.
To unsubscribe from this group, send email to cukes+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/cukes?hl=en.
>
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Cukes" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/cukes/-/ECXKVGCi5KMJ.
> To post to this group, send email to cu...@googlegroups.com.
> To unsubscribe from this group, send email to cukes
Doing it by line isn't really an option, because the feature files will be done by more than one person, a single slip and the lines could get messed up.
That will output unique ids in the JSON format, but those ids can't
(yet) be used to specify a scenario to run.
Aslak
> cheers,
> Matt
>
> --
> Freelance programmer & coach
> Author, http://pragprog.com/book/hwcuc/the-cucumber-book
> Founder, http://www.relishapp.com/
> Twitter, https://twitter.com/mattwynne
>
>
> --
> 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.
So you want cucumber to modify the gherkin source for you and insert a
unique tag everywhere?
Please respond interleaved, don't top post:
http://en.wikipedia.org/wiki/Posting_style#Interleaved_style
Aslak
>> > cukes+un...@googlegroups.com.
>> > For more options, visit this group at
>> > http://groups.google.com/group/cukes?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Cukes" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/cukes/-/eDQx0_JGcyoJ.
>
> 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
>> > http://groups.google.com/group/cukes?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Cukes" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/cukes/-/eDQx0_JGcyoJ.
>
> To post to this group, send email to cu...@googlegroups.com.
> To unsubscribe from this group, send email to
Sorry, still getting the hang of this, first time I'm using google groups.
Yes, I'd like Gherkin to insert a unique ID in every cenario it finds in the feature files. Is that possible?
Sure, basically i just run the tests by maven - surefire plugin and let
it create the usual junit xml report.
The TestLink Plugin does the rest. You can find a tutorial here:
https://wiki.jenkins-ci.org/display/JENKINS/TestLink+Plugin
(It explains everything from Testlink, Jenkins installation and
configuration)
The strategy is to match the case class name, the pattern is /TEST-*.xml
and the xml is found in target/surefire-reports/.
Every scenario can be linked to a testcase in testlink. I am looking at
a huge amount of old testcases i cant throwaway and there will always be
some manual tests anyways. So i thought to combine the reporting in
testlink.
I dont believe that writing the same testcase twice happens often. And
analogously i dont think ppl title their scenarios the same besides that
they shouldnt :)
Most examples concentrate on a few scenarios, so they end up with really
short and basic titles. In reality we write 100s and 1000s of scenarios
and the scenario title should already give us a great idea about whats
going on. Otherwise we will have to read all scenarios to a feature and
even if so we could make sure there is no duplication of titles.
I also thought alot about dont ending up with duplications of stepdefs,
but i think its just unrealistic to happen. If the existing scenarios
are not read, there shouldnt be new ones added.
> https://groups.google.com/d/msg/cukes/-/9aF1_Ai8RX4J.
Not even when the parser is reading the feature files?
>> > For more options, visit this group at
>> > http://groups.google.com/group/cukes?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Cukes" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/cukes/-/eDQx0_JGcyoJ.
>
> To post to this group, send email to cu...@googlegroups.com.
> To unsubscribe from this group, send email to
> For more options, visit this group at
> http://groups.google.com/group/cukes?hl=en.
--
You received this message because you are subscribed to the Google Groups "Cukes" group.
To view this discussion on the web visit https://groups.google.com/d/msg/cukes/-/bwmI9dYBHyIJ.
To unsubscribe from this group, send email to cukes+un...@googlegroups.com.
Wouldnt mind at all.
I hope to find time to look at Jira integration, would be nicer for
plain bugreports.
> https://groups.google.com/d/msg/cukes/-/PfpsHbgFZMAJ.
>> > For more options, visit this group at
>> > http://groups.google.com/group/cukes?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Cukes" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/cukes/-/eDQx0_JGcyoJ.
>
> To post to this group, send email to cu...@googlegroups.com.
> To unsubscribe from this group, send email to
> For more options, visit this group at
> http://groups.google.com/group/cukes?hl=en.
--
You received this message because you are subscribed to the Google Groups "Cukes" group.
To view this discussion on the web visit https://groups.google.com/d/msg/cukes/-/bwmI9dYBHyIJ.
To post to this group, send email to cu...@googlegroups.com.
To unsubscribe from this group, send email to cukes+unsubscribe@googlegroups.com.