Automated Generation of Exploratory Test Cases Using Prompt Chaining and Reflective Evaluation
Exploratory testing uncovers latent defects, but the design of Exploratory Test Cases (ETC) is largely manual, incurring high costs, reliance on expert knowledge, and limited reproducibility. We propose IGEX, a fully automated approach to generate ETCs using Large Language Models. IGEX models test generation as a structured chain of prompts, leveraging Chain of Thought reasoning and learning in context. To ensure quality, a Reflective Evaluator scores ETCs according to expert criteria, triggering refinements as needed. In line with Whittaker’s hybrid ETC definition, our method combines structured scripting with tester-driven exploratory detours, enabling automation. In experiments with 300 Android test scenarios, IGEX achieved 97.67% accuracy before reflection and 100% after iterative evaluation. Although dataset-agnostic and extensible, current validation is limited to mobile applications. Furthermore, IGEX inherits the challenges of LLM, including evaluation subjectivity and computational costs. These results demonstrate the potential of LLM for scalable exploratory testing with reduced manual overhead.
Authors
- Yan F. F. Soares (ORCID: https://orcid.org/0000-0002-7151-141X)
- Bruno Sielly Jales Costa (ORCID: https://orcid.org/0000-0002-3039-4632)
- Igor Lima Maldonado (ORCID: https://orcid.org/0000-0001-6037-0407)
- Nikson Ferreira (ORCID: https://orcid.org/0000-0003-4249-7599)
- Arturo Peralta (ORCID: https://orcid.org/0000-0002-7717-2543)
- André Carvalho (ORCID: https://orcid.org/0000-0002-7903-6705)
- Gabriel Pacheco
- Hallyson Melo
Publication Details
- Published
- 2025-09-22
- DOI
- https://doi.org/10.5753/sbes.2025.11599
- Primary Topic
- Software Testing and Debugging Techniques
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- Universidade Federal do Amazonas
- Coordenação de Aperfeiçoamento de Pessoal de Nível Superior
- Conselho Nacional de Desenvolvimento Científico e Tecnológico
- Fundação de Amparo à Pesquisa do Estado do Amazonas