Karthikeyan C
Karthikeyan C

Reputation: 1

How to get the array of input from scenario in gherkin (acceptance - java cucumber) and how to convert the data table into list

Writing step definitions while using array of inputs in Gherkin Acceptance Test(BDD - approach)

Example scenario :- 

Scenario: Assume something 
Given Assume something
When I have 3 numbers "<numbers>" as given below
       | numbers |
       |   1     |
       |   2     |
       |   3     |
Then Assume something

In java code :-

I don't know how to write the step definition for the above scenario without any regex in java code

Could someone write the step definition for the above scenario and change the data table into list of numbers

Upvotes: 0

Views: 44

Answers (0)

Related Questions