Affiliation:
1. Faculty of Information Engineering and Automation, Kunming University of Science and Technology, Kunming 650093, China
2. Institute of Software, School of Electronics Engineering and Computer Science, Peking University, Beijing 100871, China
3. No. 14, P. O. Box 15, Sub-post Office 27, Lanzhou 732750, China
Abstract
Component Based Software Development (CBSD) is gaining popularity in recent years. In this way of software development, software components, which are typically black-box components, are intensively reused to construct new systems. To ensure the quality of software systems composed of black-box components, a primary concern is how to ensure the quality of black-box components. Thus, adequate testing of those black-box components that will be reused is a necessary step in CBSD. However, due to the unavailability of the source code of black-box components, ensuring test adequacy becomes one of the hardest issues for testing black-box components. To tackle this problem, it is a natural idea to apply mutation testing, which is a fault-based testing method used for measuring test adequacy, for component contracts, whose aim is to improve the testability of the component. Though powerful, mutation testing is usually very computation-expensive, as many mutants need to be produced and executed in mutation testing. In this paper, we propose a contract-based mutation technique for testing black-box components. Based on the discordance between contracts and specification, our approach employs a set of high level contract mutation operators. The experimental results show that these operators can greatly reduce the number of mutants compared with traditional mutation operators. At the same time, the contract-based mutation using our contract mutation operators can provide almost the same ability as that of using traditional mutation operators. Therefore, our approach can produce effective test suites to reduce the cost of testing black-box components.
Publisher
World Scientific Pub Co Pte Lt
Subject
Artificial Intelligence,Computer Graphics and Computer-Aided Design,Computer Networks and Communications,Software
Cited by
11 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献
1. Mutation Operators for Decision Table-Based Contracts Used in Software Testing;2020 Turkish National Software Engineering Symposium (UYMS);2020-10-07
2. Predictive Mutation Testing;IEEE Transactions on Software Engineering;2019-09-01
3. An Empirical Comparison of Mutant Selection Assessment Metrics;2019 IEEE International Conference on Software Testing, Verification and Validation Workshops (ICSTW);2019-04
4. Applying Mutation Testing for Assessing Test Suites Quality at Model Level;Annals of Computer Science and Information Systems;2016-10-02
5. Predictive mutation testing;Proceedings of the 25th International Symposium on Software Testing and Analysis;2016-07-18