Automated Generation of Integration Test Sequences from Logical Contracts
Automated Generation of Integration Test Sequences from Logical Contracts
复制标题
从逻辑契约自动生成集成测试序列
DOI:
--
复制
发表时间:
2014
期刊:
影响因子:
--
通讯作者:
Manghui Tu
中科院分区:
文献类型:
--
作者:
Dianxiang Xu;Weifeng Xu;Manghui Tu
This paper exploits logical contracts (i.e., Preconditions and post conditions) to automatically generate integration tests. The approach transforms a contract-based test model into an operational model, which makes it feasible to analyze correctness of the test model and generate integration tests to meet coverage criteria of the test model. This approach has been implemented in MISTA, a tool for automated generation of executable tests. MISTA allows executable test code to be generated in a rich variety of programming languages (e.g., Java, C, C++, C#, and PHP) and test execution environments. We have evaluated the fault-detection capability of contract-based test models through fault injection. The results show that contract-based tests can be highly effective in fault detection and that robustness tests targeting the situations of broken contracts are critical to finding faults related to component interactions.