How to RowTest with MSTest?
[TestMethod] Test1Row1 { Test1(1,4,5); } [TestMethod] Test1Row2 { Test1(1,7,8); } private Test1(int i, int j, int k) { //all code and assertions in here }
[TestMethod] Test1Row1 { Test1(1,4,5); } [TestMethod] Test1Row2 { Test1(1,7,8); } private Test1(int i, int j, int k) { //all code and assertions in here }
CSV is only for “flat” structures, so trying to mix that with JSON is too ambitious in my honest opinion. Please look for another framework if needed 🙂 That said I see 2 options: a) use proper quoting and escaping in the CSV b) refer to JSON files Here is an example: Scenario Outline: * … Read more
The web has many tutorials on data driving Coded UI tests. The basic steps for data driving with a CSV file are as follows. Create the CSV file. Add the CSV file to the project. Make sure the CSV file is deployed. Add the CSV file as a data source for an individual test. Read … Read more