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

Web应用基于模型测试中的覆盖率测量:工具支持与工业经验报告

Coverage measurement in model-based testing of web applications: Tool support and an industrial experience report

Vahid Garousi, Alper Buğra Keleş, Yunus Balaman, Alper Mermer, Zeynep Özdemir Güler

AI总结:

针对工业Web应用MBT中多类覆盖率数据需实时集成的需求,本文开发开源工具MBTCover,支持代码、需求与模型覆盖率的实时测量报告,并总结多个大型自动化测试项目的工业应用经验。

摘要:

目前有许多广泛使用的工具用于测量测试覆盖率和代码覆盖率。测试覆盖率是测试套件所覆盖的需求或其他非代码制品的比例,而代码覆盖率是测试所覆盖的源代码的比例。几乎所有覆盖率工具都只显示少数特定的覆盖率值子集,而且几乎总是只测量测试覆盖率或代码覆盖率中的一种。在大规模工业Web应用测试场景中,我们面临着“集成”多种类型覆盖率数据(包括前端和后端代码覆盖率以及需求覆盖率)的需求,并且需要在大型基于模型的测试套件运行时“实时”查看所有这些数据。由于找不到任何现成的工具集来满足上述需求,我们开发了一个专用于MBT(基于模型的测试)的开源测试覆盖率工具,名为MBTCover。除代码覆盖率外,该工具还会在给定的MBT测试套件执行过程中“实时”测量并报告需求覆盖率和模型覆盖率。在本文中,我们介绍了MBTCover工具的功能,以及我们在实践中多个大型测试自动化项目里使用它的经验。其他从事Web应用测试和MBT的软件测试工程师可能会发现该工具在其项目中很有用。

英文摘要:

There are many widely used tools for measuring test-coverage and code-coverage. Test coverage is the ratio of requirements or other non-code artifacts covered by a test suite, while code-coverage is the ratio of source code covered by tests. Almost all coverage tools show a few certain subset of coverage values, and almost always either test-coverage or code-coverage measures. In a large-scale industrial web-application-testing setting, we were faced with the need to "integrate" several types of coverage data (including front-end and back-end code coverage with requirements coverage), and to see all of them "live" as large model-based test suites were running. By being unable to find any off-the-shelf toolset to address the above need, we have developed an open-source test coverage tool, specific for MBT, named MBTCover. In addition to code coverage, the tool measures and reports requirements and model coverage, "live" as a given MBT test suite is executing. In this paper, we present the features of the MBTCover tool and our experience from using it in multiple large test-automation projects in practice. Other software test engineers, who conduct web application testing and MBT, may find the tool useful in their projects.

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

↑