Re: Accessing "Examples" Data at Step Level

2018-02-12 Thread neha . zensar
Hi Mauro 

Thanks for the reply . I need to access each row of examples provided at 
scenario level ( not individual values ) , at the step definition 
implementation level . 
I guess it can be done using nullPointerReporter , but not sure how to get 
current story context in that . Any example would be really helpful . Many 
Thanks .
This is what I am looking for .

Scenario :

Given ABC

When PQR

Then XYZ

 

Examples :

Queue1 | Queue 2|

Value1| value2 

 

I want to access “Examples” data at each Implementation for “Given ABC “ , 
“When PQR” , “Then XYZ” 

 

Eg

 

@Given(“ABC)

Public void ABC(ExamplesTable Examples ) 






On Tuesday, February 13, 2018 at 2:43:14 AM UTC+5:30, mauro.talevi wrote:
>
> Hi,
>
> not really sure what you mean.   There are several ways to parametrise the 
> scenarios: 
>
> http://jbehave.org/reference/stable/parametrised-scenarios.html
>
> http://jbehave.org/reference/stable/meta-parametrisation.html
>
> It’d be easier if you can provide a use case?
>
> Thanks
>
> On 12 Feb 2018, at 11:18, neha@gmail.com  wrote:
>
> Hi,
>
> I need to access data given under "Examples" keyword ( Scenario level) at 
> each step of the scenario as an argument . Any way to achieve the same ? 
> Thanks in advance ,
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "JBehave User" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to jbehave-user...@googlegroups.com .
> To post to this group, send email to jbehav...@googlegroups.com 
> .
> To view this discussion on the web, visit 
> https://groups.google.com/d/msgid/jbehave-user/ce2a5182-dd66-45c0-9369-a212828179e4%40googlegroups.com
>  
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"JBehave User" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jbehave-user+unsubscr...@googlegroups.com.
To post to this group, send an email to jbehave-user@googlegroups.com.
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/jbehave-user/f9fdbd2f-8db2-4f39-9dcc-c610a663180d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Accessing "Examples" Data at Step Level

2018-02-12 Thread Mauro Talevi
Hi,

not really sure what you mean.   There are several ways to parametrise the 
scenarios: 

http://jbehave.org/reference/stable/parametrised-scenarios.html 


http://jbehave.org/reference/stable/meta-parametrisation.html 


It’d be easier if you can provide a use case?

Thanks

> On 12 Feb 2018, at 11:18, neha.zen...@gmail.com wrote:
> 
> Hi,
> 
> I need to access data given under "Examples" keyword ( Scenario level) at 
> each step of the scenario as an argument . Any way to achieve the same ? 
> Thanks in advance ,
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "JBehave User" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to jbehave-user+unsubscr...@googlegroups.com 
> .
> To post to this group, send email to jbehave-user@googlegroups.com 
> .
> To view this discussion on the web, visit 
> https://groups.google.com/d/msgid/jbehave-user/ce2a5182-dd66-45c0-9369-a212828179e4%40googlegroups.com
>  
> .
> For more options, visit https://groups.google.com/d/optout 
> .

-- 
You received this message because you are subscribed to the Google Groups 
"JBehave User" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jbehave-user+unsubscr...@googlegroups.com.
To post to this group, send an email to jbehave-user@googlegroups.com.
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/jbehave-user/3CD0F6B4-D206-480D-BF8F-6A2200556B5F%40aquilonia.org.
For more options, visit https://groups.google.com/d/optout.


Accessing "Examples" Data at Step Level

2018-02-12 Thread neha . zensar
Hi,

I need to access data given under "Examples" keyword ( Scenario level) at 
each step of the scenario as an argument . Any way to achieve the same ? 
Thanks in advance ,

-- 
You received this message because you are subscribed to the Google Groups 
"JBehave User" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jbehave-user+unsubscr...@googlegroups.com.
To post to this group, send an email to jbehave-user@googlegroups.com.
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/jbehave-user/ce2a5182-dd66-45c0-9369-a212828179e4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.