Re: [jbehave-user] jbehave with testng

2012-01-05 Thread Mauro Talevi
You can easily support TestNG, as described here: http://jbehave.org/reference/stable/faq.html On Thu Jan 5 12:15:04 2012, Graham Abell wrote: Hi All, is there a working example of jbehave integrated with testng? thanks! graham

Re: [jbehave-user] jbehave with testng

2012-01-05 Thread Graham Abell
Thanks, I'd read that alright... I thought one of the samples might include it's usage but not to worry :) On 5 January 2012 13:21, Mauro Talevi mauro.tal...@aquilonia.org wrote: You can easily support TestNG, as described here: http://jbehave.org/reference/stable/faq.html On Thu Jan  5

Re: [jbehave-user] jbehave with testng

2012-01-05 Thread Mauro Talevi
Pull latest trader example and you'll find a TestNGTraderStories class which you can run via TestNG. http://jira.codehaus.org/browse/JBEHAVE-698 On Thu Jan 5 14:27:05 2012, Graham Abell wrote: Thanks, I'd read that alright... I thought one of the samples might include it's usage but not to

Re: [jbehave-user] jbehave with testng

2012-01-05 Thread Graham Abell
ignore this, found the details :) On 5 January 2012 16:08, Graham Abell nicegra...@gmail.com wrote: Thanks Mauro, How do I pull the latest? On 5 January 2012 14:01, Mauro Talevi mauro.tal...@aquilonia.org wrote: Pull latest trader example and you'll find a TestNGTraderStories class which

Re: [jbehave-user] jbehave with testng

2012-01-05 Thread Mauro Talevi
Moved TestNG example to its own module trader-testng. On Thu Jan 5 17:34:36 2012, Graham Abell wrote: ignore this, found the details :) On 5 January 2012 16:08, Graham Abellnicegra...@gmail.com wrote: Thanks Mauro, How do I pull the latest? On 5 January 2012 14:01, Mauro

[jbehave-user] Re: Can I reuse stories with two different implementations?

2012-01-05 Thread Sheldon
On 1/4/12 3:09 PM, Mauro Talevi wrote: Hi Sheldon, the recommended way to approach your problem would be to inject both service builder impls and then have a parameter to determine which is going to be used. E.g. Given I use the [HTTP or JMS] protocol The protocol would be stored in a member

Re: [jbehave-user] Re: Can I reuse stories with two different implementations?

2012-01-05 Thread Mauro Talevi
If you want to run the same story but passing in a different parameter for each run, one option to create a new uber-story that executes the stories as given stories. http://jbehave.org/reference/stable/given-stories.html Something along these lines: Scenario: A scenario that verifies

[jbehave-user] Re: Can I reuse stories with two different implementations?

2012-01-05 Thread Sheldon
On 1/5/12 10:10 AM, Sheldon wrote: On 1/4/12 3:09 PM, Mauro Talevi wrote: Hi Sheldon, the recommended way to approach your problem would be to inject both service builder impls and then have a parameter to determine which is going to be used. E.g. Given I use the [HTTP or JMS] protocol The

[jbehave-user] Re: Can I reuse stories with two different implementations?

2012-01-05 Thread Sheldon
On 1/5/12 11:14 AM, Sheldon wrote: On 1/5/12 10:10 AM, Sheldon wrote: On 1/4/12 3:09 PM, Mauro Talevi wrote: Hi Sheldon, the recommended way to approach your problem would be to inject both service builder impls and then have a parameter to determine which is going to be used. E.g. Given I