satish gowda
2015-06-16 04:10:03 UTC
I am trying extract the feature and scenario at run time
import gherkin.formatter.model.Scenario;
import cucumber.api.java.Before;
@Before
public void before(Scenario s) {
System.out.println("currently executig scenario " + s.getName());
}
getting error "cucumber.runtime.CucumberException: When a hook declares an
argument it must be of type cucumber.api.Scenario. "
could some one tell how to extract the feature and scenario at run time
import gherkin.formatter.model.Scenario;
import cucumber.api.java.Before;
@Before
public void before(Scenario s) {
System.out.println("currently executig scenario " + s.getName());
}
getting error "cucumber.runtime.CucumberException: When a hook declares an
argument it must be of type cucumber.api.Scenario. "
could some one tell how to extract the feature and scenario at run time
--
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.