I am writing a Selenium test to validate an input form on my web page. I would like to cover all combinations of input data, but I would not like to write a separate test for each. Right now, I’m using an excel spreadsheet as a data source and I have the combinations listed as each row.
I was hoping there would be a way to cover all the cases without needing to use the excel file or write a separate test for each case. Is there anything that can help with this?
do you just need a way to get all combinations to values?
You can do this with linq and various other techniques – see this questions as an example
So generate all input-combinations for your method and then just write a Unittest (potential very long running) in mstest or whatever to check each one.