计算机应用与软件2017,Vol.34Issue(4):1-5,21,6.DOI:10.3969/j.issn.1000-386x.2017.04.001
基于死锁的并发类单元测试用例自动生成
AUTOMATIC GENERATION OF CONCURRENT CLASS UNIT TEST CASES BASED ON DEADLOCK
摘要
Abstract
Automated generation of multithreaded program unit test cases is a technology to save test costs.In order to improve the efficiency of concurrent unit test case generation, the article analyzes the potential deadlock code in the concurrency class according to the characteristics of deadlock failure, and then automatically generates test cases for these codes.The experiment is carried out on the concurrent class of 7 commonly used Java class libraries.Experimental results show that the proposed method (CTCG) not only finds an existing deadlock failure, but also generates fewer test cases and less time when a deadlock failure is detected,and improve the efficiency of the automatic generation of concurrent class unit test cases.关键词
并发类/死锁/单元测试/测试用例生成Key words
Concurrent class/Deadlock/Unit test/Tests generating分类
信息技术与安全科学引用本文复制引用
臧丽娜..基于死锁的并发类单元测试用例自动生成[J].计算机应用与软件,2017,34(4):1-5,21,6.基金项目
国家自然科学基金项目(61472025,61170082). (61472025,61170082)