This chapter introduces users to the concept of encapsulating data for use in data-driven testing. It will teach users how to design and build a TestNG Data Provider class in the native JavaScript Object Notation (JSON) format. The following topics will be covered:
- Introduction
- TestNG Data Provider class
- Extracting JSON data into Java objects
- Filtering test data
- JSON Data File formats
- The JSONObject class