Hi Nayan,

with table parameters, the step patterns need to match exactly your step template. In your case, if the textual step is

Given a stock of symbol [symbol] and a threshold of [threshold]

then the pattern is

@Given("a stock of symbol [symbol] and a threshold of [threshold]")

and similarly for the other steps. It's the @Named parameters that come into play and are used to fetch the data from the table.

Have a look at the example, in particular the methods named *WithTableParams():

https://svn.codehaus.org/jbehave/trunk/core/examples/trader/src/main/java/org/jbehave/examples/trader/TraderSteps.java

I'll update the page

http://jbehave.org/reference/latest/table-examples.html

to make this clearer.

Cheers

Nayan Hajratwala wrote:
Folks,

I'm having trouble getting a simple table example working. I'm using jbehave-2.3-rc2

Attached are the files... i'm sure it's something simple and obvious :-/


------------------------------------------------------------------------


Any ideas?

Thanks!
---
Nayan Hajratwala
http://agileshrugged.com
http://twitter.com/nhajratw
734.658.6032



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to