Simon P.
2015-04-09 15:16:47 UTC
Does anyone know if there is a way to get all the tags from a .feature file
and use them in my .java step definition file?
I saw there are some gherkin.formatter.model.Tag and
gerkin.formatter.model.Scenario libs that exist and maybe .getTags() can be
used, but how do I reference the specific Scenario I want?
If that's not possible, do I need to convert my Gherkin file into json
first?
I've searched and haven't found anything about this.
example:
@HelloWorld @alive
Scenario: Say hello
When I say hello!
Given the world is around
Then the world says hi!
stepdefinition.java
// TODO: Is there a way to get all the tags in a feature file?
@Before("@alive")
public void beforeScenario()
{
// print a list of tags in this .feature file
}
and use them in my .java step definition file?
I saw there are some gherkin.formatter.model.Tag and
gerkin.formatter.model.Scenario libs that exist and maybe .getTags() can be
used, but how do I reference the specific Scenario I want?
If that's not possible, do I need to convert my Gherkin file into json
first?
I've searched and haven't found anything about this.
example:
@HelloWorld @alive
Scenario: Say hello
When I say hello!
Given the world is around
Then the world says hi!
stepdefinition.java
// TODO: Is there a way to get all the tags in a feature file?
@Before("@alive")
public void beforeScenario()
{
// print a list of tags in this .feature file
}
--
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.
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.