| Improving evolutionary class testing in the presence of non-public methods |
| Full text |
Pdf
(171 KB)
|
Source
|
Automated Software Engineering
archive
Proceedings of the twenty-second IEEE/ACM international conference on Automated software engineering
table of contents
Atlanta, Georgia, USA
POSTER SESSION: Posters
table of contents
Pages 381-384
Year of Publication: 2007
ISBN:978-1-59593-882-4
|
|
Authors
|
|
| Sponsors |
|
| Publisher |
|
| Bibliometrics |
Downloads (6 Weeks): 9, Downloads (12 Months): 65, Citation Count: 0
|
|
|
ABSTRACT
Automating the generation of object-oriented unit tests is a challenging task. This is mainly due to the complexity and peculiarities that the principles of object-orientation imply. One of these principles is the encapsulation of class members which prevents non-public methods and attributes of the class under test from being freely accessed. This paper suggests an improvement of our automated search-based test generation approach which particularly addresses the test of non-public methods. We extend our objective functions by an additional component that accounts for encapsulation. Additionally, we propose a modification of the search space which increases the efficiency of the approach. The value of the improvement in terms of achieved code coverage is demonstrated by a case study with 7 real-world test objects. In contrast to other approaches which break encapsulation in order to test non-public methods, the tests generated by our approach inherently guarantee that class invariants are not violated. At the same time, refactorings of the encapsulated class members will not break the generated tests
REFERENCES
Note: OCR errors may be found in this Reference List extracted from the full text article. ACM has opted to expose the complete List rather than only correct and linked references.
| |
1
|
Agitar Software, Inc. Agitator. http://www.agitar.com, 2006.
|
| |
2
|
|
| |
3
|
Instantiations, Inc. CodePro. http://www.instantiations.com, March 2007.
|
| |
4
|
B. F. Jones, H. Sthamer, and D. E. Eyres. Automatic test data generation using genetic algorithms. Software Engineering Journal, 11(5):299--306, September 1996.
|
| |
5
|
|
| |
6
|
X. Liu, B. Wang, and H. Liu. Evolutionary search in the context of object-oriented programs. In MIC2005: The Sixth Metaheuristics International Conference, September 2005.
|
| |
7
|
|
| |
8
|
Parasoft, Inc. Jtest. http://www.parasoft.com.
|
| |
9
|
R. P. Pargas, M. J. Harrold, and R. R. Peck. Test-data generation using genetic algorithms. Journal of Software Testing, Verification and Reliability, 9(4):263--282, 1999.
|
| |
10
|
K. Sen and G. Agha. Cute and jcute: Concolic unit testing and explicit path model-checking tools. In 18th International Conference on Computer Aided Verification (CAV'06), Lecture Notes in Computer Science. Springer, 2006. (To Appear. Tool Paper).
|
 |
11
|
|
 |
12
|
|
 |
13
|
|
| |
14
|
S. Wappler and J. Wegener. Evolutionary unit testing of object-oriented software using a hybrid evolutionary algorithm. In Proceedings of the IEEE World Congress on Computational Intelligence (WCCI-2006), pages 3193--3200, Vancouver, Canada, July 2006. IEEE Press.
|
 |
15
|
|
| |
16
|
J. Wegener, A. Baresel, and H. Sthamer. Evolutionary test environment for automatic structural testing. Information and Software Technology, 43(1):841--854, 2001.
|
| |
17
|
|
| |
18
|
T. Xie, D. Marinov, W. Schulte, and D. Notkin. Symstra: A framework for generating object-oriented unit tests using symbolic execution. In Proceedings of the 11th International Conference on Tools and Algorithms for the Construction and Analysis of Systems (TACAS 05), pages 365--381, April 2005.
|
|