Basically the working here is as follows:-
Test Logic is fixed, test data may vary
Definition:- The Data Driven test design framework follows a design paradigm where test logic is fixed but varies the test data. The data itself can be in different repositories like a simple .csv file, .json file or database and can add the tests merely updating those external files or DB (instead of placing in test code itself).