Seedlabs
Source research

Automated User Story Generation with Test Case Specification Using Large Language Model

Tajmilur Rahman, Yuecai Zhu · 2024 · 53 citationsRead the paper

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.

What the full text shows

Working prototype
  • The GeneUS tool generates user stories with high acceptance rates among developers. — 5% missing technical details, 1% ambiguous task-description, and 0.5% duplicates (Based on a RUST survey of 50 developers)
  • The Refine and Thought (RaT) prompting technique improves consistency and reduces hallucinations compared to standard CoT. (When processing requirements documents with redundant or unrecognizable tokens)
Setup
Tested on 7 mid-sized requirements engineering (RE) documents (6 from Ian Sommerville's textbook, 1 from a local company); validated via a RUST survey of 50 developers.
How
Developed 'GeneUS', a tool using GPT-4.0 and a custom 'Refine and Thought' (RaT) prompting technique (a variant of Chain of Thought) to extract requirements and generate user stories and test cases. The process involves three RaT prompting blocks: requirements extraction, user story generation with deliverables, and test case generation.
Limitations
The tool can only process text inputs; diagrams and UI mockups must be removed manually. · The study relies on a relatively small sample of 7 RE documents.

Summarized by Gemma 4 from the open-access full text · 24 Nov 2026. Read it