对边界的理解:LLM生成的边界测试解释
Understanding on the Edge: LLM-generated Boundary Test Explanations
AI总结:
本文研究LLM生成的边界解释在软件测试中的有效性,通过调查和访谈发现,清晰结构、权威来源引用和可操作示例能提升解释质量,提出七项要求的检查表以指导未来工具设计。
摘要:
边界值分析和测试(BVT)在软件质量保证中至关重要,因为故障往往集中在输入极端处,但测试人员往往难以理解并说明为何某些输入输出对代表有意义的行为边界。大型语言模型(LLMs)可以通过生成自然语言理由来帮助,但其在BVT中的价值尚未经过实证评估。因此,我们进行了一项探索性研究,调查LLM生成的边界解释:在一项调查中,27名软件专业人员对GPT-4.1对20对边界对的解释在清晰性、正确性、完整性和感知有用性方面进行了评分,并有6人进行了后续访谈。总体而言,所有评分中有63.5%为正面(5分制的4-5分),而17%为负面(1-2分),表明了一致性但也存在感知的差异。参与者倾向于选择结构清晰、引用权威来源、并根据读者的专长调整深度的解释;他们也强调了需要可操作的示例来支持调试和文档。从这些见解中,我们提炼出了一项七项要求的检查表,定义了未来LLM基于边界解释工具的具体设计标准。结果表明,随着进一步的完善,基于LLM的工具可以通过使边界解释更具可操作性和可信度来支持测试流程。
英文摘要:
Boundary value analysis and testing (BVT) is fundamental in software quality assurance because faults tend to cluster at input extremes, yet testers often struggle to understand and justify why certain input-output pairs represent meaningful behavioral boundaries. Large Language Models (LLMs) could help by producing natural-language rationales, but their value for BVT has not been empirically assessed. We therefore conducted an exploratory study on LLM-generated boundary explanations: in a survey, twenty-seven software professionals rated GPT-4.1 explanations for twenty boundary pairs on clarity, correctness, completeness and perceived usefulness, and six of them elaborated in follow-up interviews. Overall, 63.5% of all ratings were positive (4-5 on a five-point Likert scale) compared to 17% negative (1-2), indicating general agreement but also variability in perceptions. Participants favored explanations that followed a clear structure, cited authoritative sources, and adapted their depth to the reader's expertise; they also stressed the need for actionable examples to support debugging and documentation. From these insights, we distilled a seven-item requirement checklist that defines concrete design criteria for future LLM-based boundary explanation tools. The results suggest that, with further refinement, LLM-based tools can support testing workflows by making boundary explanations more actionable and trustworthy.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。