Large language model (LLM)-powered assistants are increasingly used for generating program code and unit tests, but their application in acceptance testing remains underexplored. To help address this gap, this paper explores the use of LLMs for generating executable acceptance tests for web applications through a two-step process: (i) generating acceptance test scenarios in natural language (in Gherkin) from user stories, and (ii) converting these scenarios into executable test scripts (in Cypress), knowing the HTML code of the pages under test. This two-step approach supports acceptance test-driven development, enhances tester control, and improves test quality. The two steps were implemented in the AutoUAT and Test Flow tools, respectively, powered by GPT-4 Turbo, and integrated into a partner company's workflow and evaluated on real-world projects. The users found the acceptance test scenarios generated by AutoUAT helpful 95% of the time, even revealing previously overlooked cases. Regarding Test Flow, 92% of the acceptance test cases generated by Test Flow were considered helpful: 60% were usable as generated, 8% required minor fixes, and 24% needed to be regenerated with additional inputs; the remaining 8% were discarded due to major issues. These results suggest that LLMs can,in fact, help improve the acceptance test process with appropriate tooling and supervision.
Streamlining Acceptance Test Generation for Mobile Applications Through Large Language Models: An Industrial Case Study
Critical TechWorks;Faculty of Engineering, University of Porto(波尔图大学工程学院);LIACC , Faculty of Engineering, University of Porto(波尔图大学工程学院计算科学与人工智能中心);INESC TEC , Faculty of Engineering, University of Porto(波尔图大学工程电信研究所)
Supplementary Material for the Information Sciences Paper: An Experimental Study of Hyper-Heuristic Selection and Acceptance Mechanism for Combinatorial t-way Test Suite Generation
An Evaluation of Monte Carlo-Based Hyper-Heuristic for Interaction Testing of Industrial Embedded Software Applications
超启发式算法是一种新的自适应混合元启发式算法,以获得一个通用的算法来解决优化问题。这项工作的重点是选择类型的超启发式,称为指数蒙特卡罗计数器(EMCQ)。当前实现依赖于无记忆选择,这可能是适得其反的,因为所选择的搜索运算符可能(历史上)不是当前搜索实例的最佳执行运算符。为了解决这个问题,我们建议将内存集成到EMCQ中,使用基于Q学习机制的强化学习(称为Q-EMCQ)进行组合t-wise测试集生成。组合测试生成在工业程序中的有限应用可能会影响Q-EMCQ等技术的使用。因此,有必要针对相关的工业软件评估这种方法,目的是显示覆盖代码以及查找错误所需的交互程度。我们将Q-EMCQ应用于37个用功能框图(FBD)语言编写的实际工业程序,这些程序用于在Bombardier Transportation Sweden AB开发训练控制管理系统。研究结果表明,Q-EMCQ是一种有效的测试用例生成技术。此外,与处理最小化问题的t-明智测试集生成不同,我们还将Q-EMCQ进行了涉及一般模块聚类的最大化问题,以证明我们方法的有效性。
Comprehensive Evaluation and Insights into the Use of Large Language Models in the Automation of Behavior-Driven Development Acceptance Test Formulation