C# NUnit 3 Data Driven from Excel

前端 未结 3 1551
深忆病人
深忆病人 2021-01-16 17:44

Hello I have the following file: testexcel.xlsx > sheet 1

I want to execute this test twice as there are 2 rows with data.

[Test]
[TestCase         


        
3条回答
  •  余生分开走
    2021-01-16 18:17

    If your intention is to separate the test data and code. Please take a look at JsonSectionReader.

    This package provides the support for storing the test data in embedded json file, and it has excellent support of deserialization.

提交回复
热议问题