data driven

The same test script is executed with different test data, and the test data and test behavior are completely separated. Such a test script design pattern is called data-driven.
1) Write a test script, the script needs to support the program object, file or database to read test data
2) Store the test data used by the test script in the program object, file, or database and other external media
3) Run the script, and the loop calls are stored in Test data in external media
4) Verify that all test results meet the expected results


1.TestNG dataprovider
2.TestNG and CSV
3.TestNG, Apache POI and Excel
4.Mysel database

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326524649&siteId=291194637