📜  您如何在 testng 中实现数据驱动测试 - 无论代码示例

📅  最后修改于: 2022-03-11 14:56:03.244000             🧑  作者: Mango

代码示例1
TESTNG:
    1. @DataProvider annotation
    2. Excel file with the help of Apache POI
    3. JSON or CSV file for API testing
    4. Data which comes from Database and stores in collections

    To use the DataProvider feature in the test cases,
    you have to declare a method annotated by 
    @DataProvider and then use the said method 
    in the test method using the ‘dataProvider‘
    attribute in the @Test annotation.