作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2020, Vol. 46 ›› Issue (6): 216-220. doi: 10.19678/j.issn.1000-3428.0054974

• 体系结构与软件技术 • 上一篇    下一篇

基于运行剖面的测试用例分配与选择方法

王一彻, 高建华   

  1. 上海师范大学 计算机科学与技术系, 上海 200234
  • 收稿日期:2019-05-21 修回日期:2019-07-03 发布日期:2019-07-13
  • 作者简介:王一彻(1994-),男,硕士研究生,主研方向为软件测试技术;高建华,教授、博士。
  • 基金资助:
    国家自然科学基金(61672355)。

Allocation and Selection Method of Test Cases Based on Operational Profile

WANG Yiche, GAO Jianhua   

  1. Department of Computer Science and Technology, Shanghai Normal University, Shanghai 200234, China
  • Received:2019-05-21 Revised:2019-07-03 Published:2019-07-13

摘要: 基于运行剖面的测试是在软件实际运行中找出高发生率失效的测试方法,但其不适用于已排除高发生率失效而可靠性要求较高的系统。为此,对传统的运行剖面测试技术进行改进,提出一种基于运行剖面的测试用例分配与选择方法。利用自适应的重要性抽样方法在每次迭代中动态改变测试用例的概率,并根据测试结果进行自动调整,选择更有效率的测试用例,以提高测试的有效性和软件的可靠性。针对5个子域的测试用例的分析结果验证了该方法的有效性。

关键词: 运行剖面, 基于运行剖面的测试, 测试用例分配, 测试用例选择, 抽样, 软件可靠性

Abstract: Testing based on operational profile is designed to find failures of high incidence rate,but it is not suitable for systems that has rule out failures of high incidence rates and requires high reliability.To address the problem,this paper proposes an allocation and selection method of test cases based on operational profile by improving traditional operational profile testing.The method uses the adaptive importance sampling method to dynamically change the probability of test cases in each iteration,and automatically makes adjustments according to the test results to select more efficient test cases to improve the effectiveness of the test and the reliability of the software.Analysis results of test cases in five subdomains verify the effectiveness of the proposed method.

Key words: operational profile, test based on operational profile, test case allocation, test case selection, sampling, software reliability

中图分类号: