Exploring Better Black-Box Test Case Prioritization via Log Analysis

Author:

Chen Zhichao1ORCID,Chen Junjie1ORCID,Wang Weijing1ORCID,Zhou Jianyi2ORCID,Wang Meng3ORCID,Chen Xiang4ORCID,Zhou Shan5ORCID,Wang Jianmin5ORCID

Affiliation:

1. College of Intelligence and Computing, Tianjin University, Tianjin, China

2. Key Laboratory of High-Confidence Technologies (Peking University), MoE, Beijing, China

3. Department of Computer Science, University of Bristol, Bristol, United Kingdom

4. School of Information Science and Technology, Nantong University, Nantong, China

5. Technology and Engineering Center for Space Utilization, Chinese Academy of Sciences, Beijing, China

Abstract

Test case prioritization (TCP) has been widely studied in regression testing, which aims to optimize the execution order of test cases so as to detect more faults earlier. TCP has been divided into white-box test case prioritization (WTCP) and black-box test case prioritization (BTCP) . WTCP can achieve better prioritization effectiveness by utilizing source code information, but is not applicable in many practical scenarios (where source code is unavailable, e.g., outsourced testing). BTCP has the benefit of not relying on source code information, but tends to be less effective than WTCP. That is, both WTCP and BTCP suffer from limitations in the practical use. To improve the practicability of TCP, we aim to explore better BTCP, significantly bridging the effectiveness gap between BTCP and WTCP. In this work, instead of statically analyzing test cases themselves in existing BTCP techniques, we conduct the first study to explore whether this goal can be achieved via log analysis. Specifically, we propose to mine test logs produced during test execution to more sufficiently reflect test behaviors, and design a new BTCP framework (called LogTCP), including log pre-processing, log representation, and test case prioritization components. Based on the LogTCP framework, we instantiate seven log-based BTCP techniques by combining different log representation strategies with different prioritization strategies. We conduct an empirical study to explore the effectiveness of LogTCP. Based on 10 diverse open-source Java projects from GitHub, we compared LogTCP with three representative BTCP techniques and four representative WTCP techniques. Our results show that all of our LogTCP techniques largely perform better than all the BTCP techniques in average fault detection, to the extent that they become competitive to the WTCP techniques. That demonstrates the great potential of logs in practical TCP.

Funder

National Natural Science Foundation of China

Fund projects in the technical field of the foundation strengthening plan

Publisher

Association for Computing Machinery (ACM)

Subject

Software

Cited by 4 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. A Regression Test Case Prioritization Framework for Software Sustainability;Communications in Computer and Information Science;2024

2. Black-Box Test Case Prioritization Using Log Analysis and Test Case Diversity;2023 IEEE 34th International Symposium on Software Reliability Engineering Workshops (ISSREW);2023-10-09

3. Regression Fuzzing for Deep Learning Systems;2023 IEEE/ACM 45th International Conference on Software Engineering (ICSE);2023-05

4. Understanding and predicting incident mitigation time;Information and Software Technology;2023-03

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3