Is there other way (may be listener) where I can get test feature/scenario meta data?
If I am not able to use testNG annotation with full feature then what's the point using TestNG with cucumber JVM.
org.testng.annotations.BeforeMethod
or (@org.junit.BeforeClass) but, since they live in the TestNG (or JUnit) they does not know about the Cucumber-JVM domain. Also by relying on TestNG (or JUnit) mechanism you are blocking yourself from the opportunity to run individual features from the Eclipse or IntelliJ IDE's, both have plugins to edit and run Cucumber-JVM feature files, and both rely on the command line runner of Cucumber-JVM for executing individual feature files.Use @Before("@<yourScenarioTagname>")
I am running my cucumber test using testng runner in RunCukesByCompositionTest style with testng hooks.
I was trying to get all the tags defined in the current scenario in testNG @Before method.
Can someone please help me, I wanted to perfom some precondition steps for scenario which has specific tags.
--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.