[go: up one dir, main page]
More Web Proxy on the site http://driver.im/ Skip to main content
Log in

Devising optimal integration test orders using cost–benefit analysis

基于成本收益分析的集成测试序列生成优化方法

  • Research Article
  • Published:
Frontiers of Information Technology & Electronic Engineering Aims and scope Submit manuscript

Abstract

Integration testing is an integral part of software testing. Prior studies have focused on reducing test cost in integration test order generation. However, there are no studies concerning the testing priorities of critical classes when generating integration test orders. Such priorities greatly affect testing efficiency. In this study, we propose an effective strategy that considers both test cost and efficiency when generating test orders. According to a series of dynamic execution scenarios, the software is mapped into a multi-layer dynamic execution network (MDEN) model. By analyzing the dynamic structural complexity, an evaluation scheme is proposed to quantify the class testing priority with the defined class risk index. Cost—benefit analysis is used to perform cycle-breaking operations, satisfying two principles: assigning higher priorities to higher-risk classes and minimizing the total complexity of test stubs. We also present a strategy to evaluate the effectiveness of integration test order algorithms by calculating the reduction of software risk during their testing process. Experiment results show that our approach performs better across software of different scales, in comparison with the existing algorithms that aim only to minimize test cost. Finally, we implement a tool, ITOsolution, to help practitioners automatically generate test orders.

摘要

集成测试是面向对象软件测试的重要组成部分。传统的类级集成测试顺序研究策略大多围绕如何降低测试成本开展工作, 并未考虑赋予可靠性风险较大的节点较高测试优先级, 从而影响软件测试效率。本文提出一种兼顾测试成本与测试效率的方法生成集成测试序列。根据软件在不同场景下的运行状态, 将其映射成多层动态执行网络 (multi-layer dynamic execution network, MDEN) 。借助该网络模型与概率风险评估方法为软件中每一个类赋予风险权重。利用成本收益分析方法, 在生成测试用例的过程中保证两条原则: 为高风险的类赋予较高权重, 同时最小化测试桩复杂度。在此基础上, 分析测试序列对软件系统总体运行风险的影响, 从而提出评估测试序列优劣的度量方案。通过与现有算法的实验对比分析, 证明所提算法生成的类级集成测试序列能有效降低测试代价。最后, 将所提算法实现为自动生成集成测试序列的开源工具ITOsolution。

This is a preview of subscription content, log in via an institution to check access.

Access this article

Subscribe and save

Springer+ Basic
£29.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or eBook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Price includes VAT (United Kingdom)

Instant access to the full article PDF.

Similar content being viewed by others

References

Download references

Author information

Authors and Affiliations

Authors

Contributions

Fanyi MENG and Ying WANG designed the research and processed the data. Fanyi MENG drafted the paper. Ying WANG helped organize the paper. Hai YU and Zhiliang ZHU revised and finalized the paper.

Corresponding author

Correspondence to Hai Yu  (于海).

Additional information

Compliance with ethics guidelines

Fanyi MENG, Ying WANG, Hai YU, and Zhiliang ZHU declare that they have no conflict of interest.

Project supported by the National Natural Science Foundation of China (Nos. 61902056, 61977014, and 61603082), the Shenyang Young and Middle-Aged Talent Support Program, China (No. ZX20200272), the Fundamental Research Funds for the Central Universities, China (No. N2017011), and the Open Fund of State Key Lab for Novel Software Technology, Nanjing University, China (No. KFKT2021B01)

Supplementary materials for

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Meng, F., Wang, Y., Yu, H. et al. Devising optimal integration test orders using cost–benefit analysis. Front Inform Technol Electron Eng 23, 692–714 (2022). https://doi.org/10.1631/FITEE.2100466

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1631/FITEE.2100466

Key words

关键词

CLC number

Navigation