arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2304.12671cs.SE
收藏

用户-数据库交互的测试充分性评估:一种基于规格说明的方法

Test adequacy evaluation for the user-database interaction: a specification-based approach

Raquel Blanco, Javier Tuya, Ruben V. Seco

AI总结:

本文提出基于规格说明的数据库应用测试方法,通过 IDM、业务规则和 MCDC 准则生成测试需求并自动评估充分性,在 TPC-C 上验证可发现过程代码故障。

摘要:

测试数据库应用程序是一项具有挑战性的过程,在设计测试用例时必须同时考虑数据库和用户交互。本文描述了一种基于规格说明的方法,用于指导数据库应用程序测试输入(包括测试数据库和用户输入)的设计,并自动评估测试充分性。首先,对应用程序的系统规格说明进行建模:(1)将数据库结构和用户界面表示在一个称为集成数据模型(Integrated Data Model,IDM)的单一模型中;(2)将功能需求表示为一组依据 IDM 编写的业务规则。随后,在业务规则之上应用基于 MCDC 的准则,以自动推导需要测试的关注情形(测试需求),并由其指导测试输入的设计。最后,自动评估这些测试输入的充分性,以确定测试需求是否得到覆盖。该方法已应用于 TPC-C 基准测试。结果表明,它能够设计出可检测位于实现过程代码中的有趣故障的测试用例。

英文摘要:

Testing a database application is a challenging process where both the database and the user interaction have to be considered in the design of test cases. This paper describes a specification-based approach to guide the design of test inputs (both the test database and the user inputs) for a database application and to automatically evaluate the test adequacy. First, the system specification of the application is modelled: (1) the structure of the database and the user interface are represented in a single model, called Integrated Data Model (IDM), (2) the functional requirements are expressed as a set of business rules, written in terms of the IDM. Then, a MCDC-based criterion is applied over the business rules to automatically derive the situations of interest to be tested (test requirements), which guide the design of the test inputs. Finally, the adequacy of these test inputs is automatically evaluated to determine whether the test requirements are covered. The approach has been applied to the TPC-C benchmark. The results show that it allows designing test cases that are able to detect interesting faults which were located in the procedural code of the implementation.

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

↑