[论文解读] Automated User Story Generation with Test Case Specification Using Large Language Model
本文介绍 GeneUS,一种使用 GPT-4 和 Refine and Thought (RaT) 提示来从需求文档自动生成用户故事和测试用例的工具,输出用于下游集成的 JSON。它还通过 practitioners 的 RUST 调查验证质量。
Modern Software Engineering era is moving fast with the assistance of artificial intelligence (AI), especially Large Language Models (LLM). Researchers have already started automating many parts of the software development workflow. Requirements Engineering (RE) is a crucial phase that begins the software development cycle through multiple discussions on a proposed scope of work documented in different forms. RE phase ends with a list of user-stories for each unit task identified through discussions and usually these are created and tracked on a project management tool such as Jira, AzurDev etc. In this research we developed a tool "GeneUS" using GPT-4.0 to automatically create user stories from requirements document which is the outcome of the RE phase. The output is provided in JSON format leaving the possibilities open for downstream integration to the popular project management tools. Analyzing requirements documents takes significant effort and multiple meetings with stakeholders. We believe, automating this process will certainly reduce additional load off the software engineers, and increase the productivity since they will be able to utilize their time on other prioritized tasks.
研究动机与目标
- 在敏捷环境中减少将需求转化为可执行的用户故事和测试用例的工作量。
- 自动化 RE 阶段的输出,以支持与项目管理工具的下游集成。
- 开发并验证一种提示技术 (RaT),以提升大语言模型在处理长且复杂的需求文本时的表现。
- 证明自动生成的用户故事在软件工程专业人员中的可行性和接受度。
提出的方法
- 从需求文档中提取功能性和非功能性需求的提示工程。
- Refine and Thought (RaT) 提示,一种两步的精炼和思考过程,作为 Chain-of-Thought 的变体,以减少无意义的记号并提升一致性。
- 一个三级 RaT 提示链,从提取的需求中生成用户故事、交付物和测试用例。
- 一个自动化的 REST API 用于测试 GeneUS 的工作流程。
- 以七份 RE 文档和一个包含 50 名开发者的调查的 RUST 问卷进行评估。
- 以 JSON 格式输出,便于与 Jira、Azure DevOps 和其他工具的集成。
实验结果
研究问题
- RQ1RQ1: Can RaT prompting improve LLM-generated user stories and test specifications from requirements documents?
- RQ2RQ2: Are the automatically generated user stories and test cases acceptable to software engineering professionals across diverse backgrounds?
主要发现
- RaT prompting improves consistency and reduces hallucinations compared to non-RaT prompts.
- GeneUS outputs detailed user stories with a defined 'Done', functional/non-functional constraints, and test specifications in JSON.
- In a survey of 50 developers, the generated stories were rated as Good (4/5) overall, with room for improvement in Specifiability and Technical Aspects.
- Process tested on seven RE documents showed high acceptance by SE professionals, with median RUST scores around 4.
- The study reports 5% missing technical details, 1% ambiguous task descriptions, and 0.5% duplicates in the generated outputs.
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。