Forum Discussion

fairywang's avatar
New Contributor
3 years ago

How cucumber parses parameterized data depends on nodejs

Hi team:

When I customize the randomly generated data "${genRandStr(3)} ", how to load the data in the datatable and parse?

when I input "<acompanyId>""acompanyName"
| acompanyId | acompanyName |
| ${genRandStr(3)} | metuan |

1 Reply

  • Hi,


    You have to process the data by yourself as part of your support code, aka your step definition


    Cucumber won't evaluate the data from your feature file. It is up to you to implement that