No, you can enable parametrisation by delimiter names :

new MostUsefulConfiguration()
.useParameterControls(new ParameterControls().useDelimiterNamedParameters(true))

Have a look at example:

https://github.com/jbehave/jbehave-core/blob/master/examples/trader/src/main/java/org/jbehave/examples/trader/stories/parametrisation_by_delimited_name.story

Cheers

On 19/12/2012 00:23, Foley, Brooks (GE Healthcare) wrote:

I am looking to use the same method for a scenario but need to use different inputs

Given I set <field> to <value>

And  I set <field2> to <value2>

Then I expect save button enabled

|field|value|field2|value2|

|Q1 |Yes  |Q2    |No     |

|Q1 |No   |Q2    |Yes    |

@Given("I set <field > to <value >")

public void iSetValue (Sting field,String value) {

.....

}

Do I need to create an entry in the steps file for each "I set..." or is there a way to make it so that I can use my own values for the fields and values?

Brooks


Reply via email to