arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2310.08234cs.SE
收藏

CiRA:一个用于从自然语言需求自动生成测试用例描述的开源Python包

CiRA: An Open-Source Python Package for Automated Generation of Test Case Descriptions from Natural Language Requirements

Julian Frattini, Jannik Fischbach, Andreas Bauer

AI总结:

本文介绍CiRA工具,它从条件性自然语言需求中自动提取因果关系,生成全覆盖的最小测试用例集,并在61条需求上分别以84.5%和92.3%的准确率推断测试变量与配置。

摘要:

从实现全覆盖的高层自然语言需求中推导验收测试,是需求工程与测试接口处的一项主要人工挑战。条件性需求(例如,“如果A或B,那么C。”)蕴含因果关系,这些关系一旦被提取,即可自动生成这些验收测试。本文介绍了CiRA(需求工件中的因果关系)倡议中的一个工具,该工具自动处理条件性自然语言需求,并生成实现全覆盖的最小测试用例描述集。我们在德国Corona-Warn-App需求规范中公开可用的61条需求数据集上评估了该工具。该工具在所有案例中推断出正确测试变量的比例为84.5%,正确变量配置的比例为92.3%,这证实了我们方法的可行性。

英文摘要:

Deriving acceptance tests from high-level, natural language requirements that achieve full coverage is a major manual challenge at the interface between requirements engineering and testing. Conditional requirements (e.g., "If A or B then C.") imply causal relationships which - when extracted - allow to generate these acceptance tests automatically. This paper presents a tool from the CiRA (Causality In Requirements Artifacts) initiative, which automatically processes conditional natural language requirements and generates a minimal set of test case descriptions achieving full coverage. We evaluate the tool on a publicly available data set of 61 requirements from the requirements specification of the German Corona-Warn-App. The tool infers the correct test variables in 84.5% and correct variable configurations in 92.3% of all cases, which corroborates the feasibility of our approach.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑