This paper aims to present an upgraded "Stubs and Drivers Generating Tool" from our previous research [1] which proposed a web-application for generating stubs and drivers for unit testing. However, the tool...
详细信息
ISBN:
(纸本)9781450376495
This paper aims to present an upgraded "Stubs and Drivers Generating Tool" from our previous research [1] which proposed a web-application for generating stubs and drivers for unit testing. However, the tool has limitations in generating stubs and drivers from a class diagram with abstraction and it allows a tester to select only one class under test for generating them while generated drivers do not include test input values. This enhanced tool generates stubs and drivers with test input values using UML sequence and class diagrams. A tester can perform class integration testing automation with the tool by importing both sequence and class diagrams in XML format. Then, extracting and analyzing elements to produce a call graph. The tester can select a group of classes under test. After that, the tool generates a set of stub and driver files for class integration testing. The tool also randomly generates test input values and expected result for drivers. Finally, the tester can customize the source code generated from the tool and export these files for using in class integration testing process.
Search-based approaches have been used in the literature to automate the process of creating unit test cases. However, related work has shown that generated tests with high code coverage could be ineffective, i.e., th...
详细信息
Search-based approaches have been used in the literature to automate the process of creating unit test cases. However, related work has shown that generated tests with high code coverage could be ineffective, i.e., they may not detect all faults or kill all injected mutants. In this paper, we propose Cling, an integration-level test case generation approach that exploits how a pair of classes, the caller and the callee, interact with each other through method calls. In particular, Cling generates integration-level test cases that maximize the Coupled Branches Criterion (CBC). Coupled branches are pairs of branches containing a branch of the caller and a branch of the callee such that an integration test that exercises the former also exercises the latter. CBC is a novel integration-level coverage criterion, measuring the degree to which a test suite exercises the interactions between a caller and its callee classes. We implemented Cling and evaluated the approach on 140 pairs of classes from five different open-source Java projects. Our results show that (1) Cling generates test suites with high CBC coverage, thanks to the definition of the test suite generation as a many-objectives problem where each couple of branches is an independent objective;(2) such generated suites trigger different class interactions and can kill on average 7.7% (with a maximum of 50%) of mutants that are not detected by tests generated randomly or at the unit level;(3) Cling can detect integration faults coming from wrong assumptions about the usage of the callee class (25 for our subject systems) that remain undetected when using automatically generated random and unit-level test suites.
Software testing is one of the essential and expensive tasks in software development. Hence, many approaches were introduced to automate different software testing tasks. Among these techniques, search-based test gene...
详细信息
Software testing is one of the essential and expensive tasks in software development. Hence, many approaches were introduced to automate different software testing tasks. Among these techniques, search-based test generation techniques have been vastly applied in real-world cases and have shown promising results. These strategies apply search-based methods for generating tests according to various test criteria such as line and branch coverage. In this thesis, we introduce new search objectives and techniques using various knowledge carved from resources like source code, hand-written test cases, and execution logs. These novel search objectives and approaches (i) improve the state-of-the-art in search-based crash reproduction, (ii) present a new search-based approach to generate class-integration tests covering interactions between two given classes., and (iii) introduce two new search objectives for covering common/uncommon execution patterns observed during the software production.
It is very important how to find the test order ofclasses in OO programs to make the test work reduced. Inthis Paper, An order-assigned strategy of classesintegrationtesting is presented. It considers not only thesta...
详细信息
ISBN:
(纸本)0780379411
It is very important how to find the test order ofclasses in OO programs to make the test work reduced. Inthis Paper, An order-assigned strategy of classesintegrationtesting is presented. It considers not only thestatic dependency but also dynamic dependency relationbetween classes in OO programs. Based on it, the testinglevel of all classes are defined and ordered. A testinglevel order automatic generating tool--TLOGOS,implements the above strategy. This tool has been used inYSS2000 Electric Power Monitor&Control System, andreduced the test works obviously.
暂无评论