Large Language Models (LLMs) are widely used in Software Engineering (SE) for various tasks, including generating code, designing and documenting software, adding code comments, reviewing code, and writing test scripts. However, creating test scripts or automating test cases demands test suite documentation that comprehensively covers functional requirements. Such documentation must enable thorough testing within a constrained scope and timeframe, particularly as requirements and user demands evolve. This article centers on generating user requirements as epics and high-level user stories and crafting test case scenarios based on these stories. It introduces a web-based software tool that employs an LLM-based agent and prompt engineering to automate the generation of test case scenarios against user requirements.
翻译:大语言模型(LLMs)被广泛用于软件工程(SE)中的各类任务,包括生成代码、设计软件及编写文档、添加代码注释、审查代码以及编写测试脚本。然而,编写测试脚本或实现测试用例自动化需要涵盖功能需求的全面测试套件文档。此类文档必须在有限的范围和时间内支持彻底测试,特别是在需求与用户需求不断演变的背景下。本文聚焦于将用户需求生成为史诗级故事和高层级用户故事,并基于这些故事构建测试用例场景。文章介绍了一款基于Web的软件工具,该工具采用基于大语言模型的智能体与提示工程技术,能够根据用户需求自动生成测试用例场景。