6 Rapid data creation with AI
This chapter covers
- Generating basic test data using LLMs
- Transforming test data from one format to another
- Using complex data sets to prompt LLMs to create new datasets
- Integrating LLMs as a test data manager for automated checks
Managing test data can be one of the most challenging aspects of testing and software development. Typically, as the complexity of a system grows, so does its data requirements. Having to synthesize data that is relevant to our context for automated checks and human-driven testing that handles complex data structures and anonymizes at scale and on demand can be a huge drain on testing time and resources—which could be better spent on other testing activities.
However, we need test data. We simply cannot carry out most testing activities if we lack the necessary data to trigger actions and observe behavior. That’s why, in this chapter, we’ll explore how we can use large language models to generate test data for us. Exploring different prompts to create both simple and complex data structures and integrate LLM models into our automation frameworks via third-party APIs.