Where would this screenshot be displayed? In a custom report? Something else?
> I want this image to reside in something like target/feature/scenario/
> step.png so that it's easy to look up
>
> I would also prefer not to have to have the feature, scenario and step
> name hard coded into the step files
>
>
> Is there any way for me to ask cucumber what the currently executing
> feature, scenario &/or step is?
>
Not yet. You can add a hook:
@cucumber.annotation.After
public void howDidItGo(ScenarioResult result) {
// currently only has getStatus() and isFailed()
}
We'll add more methods to this object to address needs like this. In
your case I'm considering adding:
void embed(byte[] data, String mimeType)
That would allow you to embed an image. It would end up in the
built-in HTML report. Would this solve your problem?
Aslak
> --
> 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 http://groups.google.com/group/cukes?hl=en.
>
Yes: https://github.com/cucumber/cucumber/wiki/Hooks
> I thought
> they'd be per feature file or per run of feature files... Also I'm
> using the JRuby step definitions, so would I need to find the ruby
> hook?
>
Then this should do it:
After do |scenarioResult|
puts "ZOMG #{scenarioResult}"
end
>> We'll add more methods to this object to address needs like this. In
>> your case I'm considering adding:
>> void embed(byte[] data, String mimeType)
>> That would allow you to embed an image. It would end up in the
>> built-in HTML report. Would this solve your problem?
>
> I haven't played around with customising the report output at all yet,
> so I'm not entirely sure how that method would work...
> It seems like I'd just pass in the image bytes and "image/png" and
> it'd appear under the normal report data?
> If so then yes, that would work quite well
>
Good
> To unsubscribe from this group, send email to cukes+unsubscribe@googlegroups.com.
-- There are two rules:
1) Please prefix the subject with [Ruby], [JVM] or [JS]. This allows people to filter messages.
2) Please use interleaved answers http://en.wikipedia.org/wiki/Posting_style#Interleaved_style
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 post to this group, send email to cu...@googlegroups.com. To unsubscribe from this group, send email to cukes+unsubscribe@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 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
On Wednesday, 3 April 2013 at 06:37, Madhuri Sanap wrote:
Was any body success to get this in cucumber jvm (Java)?
--
-- 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.
--
-- 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.
On Wednesday, 3 April 2013 at 07:37, Madhuri Sanap wrote:
can you please give an example
Any update on this?
On Thursday, 4 April 2013 at 09:11, Madhuri Sanap wrote:
Sorry I am not sure about the rules, can you please share the link.