Before introducing the concept of data-driven testing, the framework will need a mechanism to extract data that is encapsulated in a format that can be easily passed into test methods. There are various ways to store data in automated testing; CSV files, JSON files, SQL databases, MS-Excel files, property files, and many more.
Since the technologies covered in this framework are Java and TestNG, this chapter will cover how to design and build a Data Provider class using Java and the JSON protocol. This is a common standard in Java development and testing, and TestNG has a feature to include any Data Provider method with TestNG-based test class methods.
As per Wikipedia (https://en.wikipedia.org/wiki/JSON):
"In computing, JavaScript Object Notation or JSON, is an open-standard file format that uses human-readable text to transmit...