How to Iterate Datatable with type List<Class> in Cucumber
问题 I have below feature file with Given annotation Given user have below credentials |user |password | |cucumber1 |cucumber | |cucumber2 |cucumber | And i'm created below datamodel public Class DataModel{ public string user; public String password; } Trying to fetch data into the cucumber stepdefinition as below Public Class stepdefinition { @Given("^user have below credentials$") Public void user_have_below_credintials(List<DataModel> dm){ //Iterator or foreach is required to fetch row,column