Specflow -Part3(Working with tables using Specflow.Assist.Dynamic)
In the previous lecture, we learned how can we work with tables to handle test data from the feature file.I will paste the feature and step definitions from earlier lecture and then we will talk about the shortcomings and how Specflow.Assist.Dynamic can help us to overcome them Feature File Feature : SpecFlowFeature2 In order to show specflow capabilities for working on tables We are going to write some scenarios here Scenario : Verify specflow can read data from table and print on console Given I have dummy student data as below | StudentId | StudentName | Division | Age | | 100 | James | Engineering | 30 | | 101 | Jon | Medical | 40 | | 102 | Steve | Engineering | 50 | Then I print details on console Custom Class public class Student { public int StudentId ; public string StudentName ; public string Division ; public int Age ;
Comments
Post a Comment