Explain data driven framework.

JavascriptCSS Framework

Data driven framework is used for segregating test script logic from the test data. In this framework, we can run our test scripts using multiple sets of data in multiple combinations with the help of parameterization. The test data is maintained in separate files like excel, access, txt and so on.

The test scripts need to be connected to these external files for fetching the data. The primary aim of this framework is to run our test scripts against various sets of data thereby reducing the number of test cases.

Data driven framework has more test coverage, reusable features and is easy to maintain. Test execution can be triggered by only modifying the test data. Since the test logic and data are separated from each other, there is no effect on modifying the data.

Data driven framework development requires skilled programming knowledge. The test case gets the required input data from the external resources like excel, csv, txt, xml and so on files and holds them in a variable as a key value pair. During actual execution these variables serve the purpose both as an input as well as checkpoints.

In a data driven framework, there should be efficient programming techniques to read and write data from the external files. The process involves −

  • Set up and build the external file which contains test data and the expected results.

  • Develop mechanisms to feed those data to the test scripts.

The advantages of data driven framework are listed below −

  • Reduces the number of test scripts that need to be developed since data in multiple combinations can be used to cover the scenarios.

  • Any modification in test data input does not require any code changes.

  • Scalable and easy to maintain.

  • More than one set of data in more than one combinations can be used to test any functionality.

raja
Published on 11-Jun-2020 15:46:20
Advertisements