Ask a Question

How cucumber parses parameterized data depends on nodejs

fairywang
New Contributor

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"
Examples:
| acompanyId | acompanyName |
| ${genRandStr(3)} | metuan |

1 REPLY 1

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

 

 

cancel
Showing results for 
Search instead for 
Did you mean: