A data-driven framework will separate the test script logic from the test data, allowing QAs to reuse the same script logic with different data sets. In a data-driven framework, we store test data separately from the test script code, usually in a database or spreadsheet. After that, the test script code is designed to retrieve and execute the test using the data.