生成式AI用于生成测试数据生成器
Generative AI to Generate Test Data Generators
AI总结:
本文评估生成式AI在不同领域生成测试数据的能力,设计了三种集成级别的提示,实验表明LLMs能在11个领域成功生成逼真的测试数据生成器。
摘要:
生成虚假数据是现代软件测试的一个重要维度,数据伪造库的数量和重要性证明了这一点。然而,伪造库的开发者无法跟上为不同自然语言和领域生成的各种数据的步伐。在本文中,我们评估了生成式AI在不同领域生成测试数据的能力。我们为大型语言模型(LLMs)设计了三种类型的提示,这些提示在不同的集成级别上执行测试数据生成任务:1)原始测试数据生成,2)用特定语言合成生成有用测试数据的程序,以及3)生成使用最先进伪造库的程序。我们通过提示LLMs为11个领域生成测试数据来评估我们的方法。结果表明,LLMs能够在所有三个集成级别上成功地在广泛的领域生成逼真的测试数据生成器。
英文摘要:
Generating fake data is an essential dimension of modern software testing, as demonstrated by the number and significance of data faking libraries. Yet, developers of faking libraries cannot keep up with the wide range of data to be generated for different natural languages and domains. In this paper, we assess the ability of generative AI for generating test data in different domains. We design three types of prompts for Large Language Models (LLMs), which perform test data generation tasks at different levels of integrability: 1) raw test data generation, 2) synthesizing programs in a specific language that generate useful test data, and 3) producing programs that use state-of-the-art faker libraries. We evaluate our approach by prompting LLMs to generate test data for 11 domains. The results show that LLMs can successfully generate realistic test data generators in a wide range of domains at all three levels of integrability.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。