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