Skip to content
Advertisement

How to run a Cucumber Step multiple times with different data?

I am trying to automate one scenario using Cucumber.

Step Then Create item actually takes values from first row only.

What I want to do is execute step Then Create item 2 times, before moving to step Then assigns to CRSA.

But my code is taking values from first row only (0P00A). How to take values from both rows?

JavaScript

Advertisement

Answer

You can use foreach like below:

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement