Hi Cristiano,

rows in the table have no identifier so cannot be "named".
If you want to work with an entire row, you can inject the whole table and retrieve the single rows by row number.

Cheers

Cristiano Gavião wrote:
Hi Mauro,

Is there a way to inject the entire row from a table example as a table parameter instead of had to create named parameter for each column on table?

@Given("a stock with this information <row_table>")
public void theTraders(@named("row_table") ExamplesTable tradersTable) {

//TODO  work with the entire row here...

}


Given a stock with this information <row_table>
When user solds the stoks
Then system should do something

Examples:
|symbol|threshold|price|status|
|STK1|10.0|5.0|OFF|
|STK1|10.0|11.0|ON|

regards

Cristiano


Thanks

Cristiano


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

   http://xircles.codehaus.org/manage_email





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

   http://xircles.codehaus.org/manage_email


Reply via email to