(Automate Test) Behavior Driven Development-Specflow #3
2 min readNov 17, 2019
Assertion & Verification
- Assertion are the check points in the test.
- There are used to validate, whether the expected output and actual output are same or not.
- Base on the assertion, the test case either get passed or failed.
- The line at which assertion failed, after that line all the line the code will be skipped.
- For assertion we are going to use “Assert” class.
Type of verify : Using by Assert Class or can implement function for validate
Argument Passing
There are three ways by which one can pass the argument from feature file to step definition.
- Parameter : Specifying the parameter direct in step.
- Data Table : Use to pass multiple argument.
|Header1|Header2|Header3|Header4|…
|val1|val2|val3|val4|…
|val1|val2|val3|val4|…
It’s just a basic simple for using. I hope, everyone will be enjoy with Automate by specflow.