What is Data Driven Framework?
When we talked about different types of frameworks. We talked about the data-driven framework. Data in an application flows across different modules and layers of the application. We need to think about how to structure our data and pass it to different layers. The layers can be a database, API, messaging engines, browser UI. We focused on test data here, we would talk how to input and output data through an Automation framework. What capabilities do we have to help that movement of Data Driven Framework Training in Hyderabad.Where is it useful?
In financial and healthcare sector, data is an important piece of IT system. In fact, data handling is to with extreme care. On Automation to think about how we can set data on the browser UI through selenium. We have the number of examples in Test Data section data-driven capabilities.
The situations where already have data in an existing format. We want to re-use set values during Automation. That means have different data formats. We already covered dealing with test data in many formats again in the Test Data Section. The number of layers in an integrated application, depending on data at each layer. It might become tricky at times each layer managed by a different team. The each team has different timelines and priorities. We have to rely on data virtualization talk about data over time in other posts. We already have capabilities to parse data in following formats.- Excel
- XML
- JSON
- YML
- Database
Data Structures:
Some of the data structures will be helpful while designing a data driven framework. It is not rocket science for sure
1. Hash (key, value pairs)
2. Arrays
3. Data Tables
Why do we need these data structures?
We build a loop and repeat set of actions for data sets.
Cucumber already supports Data Tables using Scenario Outline. So we need not sweat over that. But if we are creating the data from scratch, cucumber data tables are very helpful. But if we already have data in existing files, we could use one of the formats mentioned. We have covered the parsers for each of the format above in Test Data section.
Comments
Post a Comment