I was wondering what was the best way to run my scenario for many times with different input data using SpecFlow. I have a basic understanding of Scenario Outline&Examples/Tables but I can't figure out on how to meet my goal, so here is what I really need:
I have a step that should fill out the form with data provided over .feature file. Form should accept the data in 'Dictionary <string, string>' format (where key - field name and value - value to be set to that field). First option is to make use of Table(below the step do the following):
When ... |Key |Value| |Name|Matt | |Age |20 | ...
then create a method that would transform Table variable(parameter) to Dictionary, but here I have to create several scenarios with different data in Value column.
Second option is to make use of Scenario Outline&Examples but I guess it also is not good because what if my form has a good amount of fields and for each one should be a corresponding placeholder.
So, it seems to me that solution i am looking for is somewhere between these two approaches. Hope you can help me with it and please don't be too hard on me, I am a very beginner)