--
-- 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.
I saw that you can add scenario object to After hook, but so far I didn't see it to have at least scenario name. I was trying to search for that, so far didn't find any good example.
Hi,I am also trying to figure out how to call the Scenario name. Before I was using ScenarioResult but I just upgraded and I saw that that class is no longer in the framework.I've been trying to call the Cucumber.Runtime classes, but so far no luck :(. I've been trying to transverse through the ScenarioImpl and other classes; and I haven't been able to dig up anything. Any pointers would be helpful
Any pointer on reading Feature, Scenario and Step name using Java.
You received this message because you are subscribed to a topic in the Google Groups "Cukes" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cukes/iMsZ_VyaTl0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cukes+un...@googlegroups.com.
I am creating a framework using Cucumber + Java. I have created customized HTML report & need Feature, Scenario & Step name to print in report.
Hey Aslak,
getName() method is not returning scenario & feature name.
Add following import in my code -
import gherkin.formatter.model.Feature;
import gherkin.formatter.model.Scenario;
My code is as follows -
Feature feat = null;
Scenario sc = null;
System.out.println("Feature Name"+sc.getName());
System.out.println("Feature Name"+feat.getName());
When I run my code, it throws error - .Error java.lang.NullPointerException
Can you please suggest what's wrong with my code?
--
Posting rules: http://cukes.info/posting-rules.html