arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2409.12405cs.SEcs.AI
收藏

关于大语言模型在手动测试验证中的有效性

On the Effectiveness of LLMs for Manual Test Verifications

Federal University of Alagoas (UFAL)(阿拉戈斯联邦大学);The Pennsylvania State University(宾夕法尼亚州立大学);University of Waterloo(滑铁卢大学)

Myron David Lucena Campos Peixoto, Davy de Medeiros Baia, Nathalia Nascimento, Paulo Alencar, Baldoino Fonseca, Márcio Ribeiro

AI总结:

本研究探索使用大语言模型生成手动测试验证,通过两项研究评估8种LLMs,发现开源模型表现与闭源相当,但专业测试人员一致性仅略超40%,生成了37,040个验证的数据集,需进一步提升准确性。

摘要:

背景:手动测试对于发现自动化测试遗漏的问题至关重要,但指定准确的验证具有挑战性。目的:本研究旨在探索使用大语言模型(LLMs)为手动测试生成验证。方法:我们进行了两项独立且互补的探索性研究。第一项研究使用2个闭源和6个开源LLMs为手动测试步骤生成验证,并评估它们与原始验证的相似性。第二项研究招募了软件测试专业人员,评估他们对生成验证与原始验证相比的看法和一致性。结果:开源模型Mistral-7B和Phi-3-mini-4k在生成手动测试验证方面表现出与闭源模型如Gemini-1.5-flash和GPT-3.5-turbo相当的有效性和一致性。然而,专业测试人员之间的一致性水平略高于40%,表明既有前景也有改进空间。虽然一些LLM生成的验证被认为优于原始验证,但也存在对AI幻觉的担忧,即验证与预期显著偏离。结论:我们通过使用8种不同的LLMs生成了包含37,040个测试验证的数据集,做出了贡献。尽管模型显示出潜力,但相对适中的40%一致性水平突显了进一步改进的必要性。提高生成验证的准确性、相关性和清晰度对于确保在实际测试场景中更高的可靠性至关重要。

英文摘要:

Background: Manual testing is vital for detecting issues missed by automated tests, but specifying accurate verifications is challenging. Aims: This study aims to explore the use of Large Language Models (LLMs) to produce verifications for manual tests. Method: We conducted two independent and complementary exploratory studies. The first study involved using 2 closed-source and 6 open-source LLMs to generate verifications for manual test steps and evaluate their similarity to original verifications. The second study involved recruiting software testing professionals to assess their perception and agreement with the generated verifications compared to the original ones. Results: The open-source models Mistral-7B and Phi-3-mini-4k demonstrated effectiveness and consistency comparable to closed-source models like Gemini-1.5-flash and GPT-3.5-turbo in generating manual test verifications. However, the agreement level among professional testers was slightly above 40%, indicating both promise and room for improvement. While some LLM-generated verifications were considered better than the originals, there were also concerns about AI hallucinations, where verifications significantly deviated from expectations. Conclusion: We contributed by generating a dataset of 37,040 test verifications using 8 different LLMs. Although the models show potential, the relatively modest 40% agreement level highlights the need for further refinement. Enhancing the accuracy, relevance, and clarity of the generated verifications is crucial to ensure greater reliability in real-world testing scenarios.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑