testing - Can i have data tables in the examples of cucumber? -


i looking below . let me know if have way .

scenario outline : verify  examples : | name  | rollno |  marks                         | | raj   | 110    | |science | maths | test      | |                    | 95     | 20    | finaltest |                    | 100    | 20    | midterm   | 

nested data tables not supported in examples.

why not move science, maths marks level instead?

or use delimited string of subject , marks in 1 column - science$95@maths$20... split in step definition create objects etc.

or 1 column delimited string of subjects , delimited string marks of respective subjects. makes things clearer 1 string need splitting logic twice.


Comments