Research on Methods for Unit Testing of Aspect-Oriented Software

Author
GuHaiBo
Advisor
LuYanSheng
School
Huazhong University of Science and Technology
Major
Computer Software and Theory
Classification
TP311.52 Software Development
Degree
Doctoral dissertation
Year
2008
Downloads
426
Citations
1

Request the full text

Abstract

Aspect-oriented development in the inheritance of object-oriented development methodology basis, using aspects of the problem in the field of cell crosscutting concerns for a modular package, improve the system's understandability and maintainability, reduce development costs. However, aspect-oriented software is still by hand to achieve and may be defective, the need for effective aspect-oriented software testing techniques to find defects. And object-oriented technologies, has added a new aspect-oriented language language components, the behavior of aspect-oriented software with multi quantization features, aspect-oriented testing procedures for study presents new challenges. Around aspect-oriented software technology aspects of unit testing, focusing on aspects of intervention points within the unit tests related research. From cell defect type, point of intervention predicate model, defect detection conditions and test adequacy criteria, test methods and test tools and support to achieve five aspects of aspects of the system unit testing techniques discussed. Defect model can provide test objectives. As measured by testing to prove the correctness of program behavior theoretical difficulties exist, so effective testing techniques almost all models with certain defects related defect model can be called for a test. Defect model for the tests in order to detect a particular type of defect is present in the test procedures. The validity of the test depends largely on the defect model definition is reasonable. Defect model in accordance with the various types of defect location and defect classification characteristics, from the characteristics of each type of defect, the external performance, testing the feasibility of in-depth study of the three angles, phase separation of the unit test to check the defect types, The unit can be measured for the subsequent construction of the model provides a reliable foundation. Measured object can be measured representation is made based testing technology. Point of intervention aspect-oriented programming unit testing is testing one of the core issues. Semantic point of intervention is the connection point in the program is expected to complete works screened a set of connected ideas, which uses the predicate model gives a point of intervention can be measured, said intervention points, including the Statute of the predicate representation and point of intervention to achieve the predicate representation. Statute represented as a point of intervention is expected to match the connection point collection, a collection of unexpected connection point is equal to the Statute of the corresponding complementary set of connection points. Point of intervention in order to achieve the connection point attribute represented as a Boolean function of atomic items matching Boolean expressions, including point of intervention and the product items and items with the plot. Point of intervention predicate intervention point model supports static testing and dynamic testing. Necessary and sufficient criteria for defect detection and test cases generated sufficient criterion is the theoretical basis of the test method. Static point of intervention test uses exhaustive testing strategy; dynamic intervention point test using selected test strategy. Exhaustive test strategy relies on the necessary and sufficient criteria for defect detection; selection test case generation strategy relies on the adequacy guidelines. Intervention points can be measured based on the predicate model, proven defect detection constitutes a necessary and sufficient condition exhaustive test basis, the dynamic test domain associated reduction theorem for the reduction test domain to provide a reliable basis, and the full test case generation criteria guiding the choice of dynamic test field test. The point of intervention entry points into static and dynamic point of intervention, and were tested. In the static point of intervention during the test, the first statute of the measured point of intervention is represented as entry points defined in the form, and then with the measured point of intervention to achieve a logical combination produces test cases, and then call the aspect-oriented language compilers compile complete weaving test execution, and finally through woven into bytecode analysis after the static point of intervention to get the matching results. Dynamic testing requires intervention points woven into the module after the dynamic test, the difficulty lies in the dynamic test domain too. To solve this problem, the dynamic point of intervention, a two-stage test method: The first stage involved in the static part of the test points and is based on the connection point raised by static analysis of flow diagrams obtained after reduction of the dynamic test domain, the cost is small; The second stage is performed in the dynamic test domain dynamic testing, and through the connection point flow graph based on node coverage, edge coverage and path coverage criteria such as adequate guidance test case generation. Through experiments indicate that the test method has applicability and effectiveness. AspectJ-based unit testing program provides a prototyping tool AJUTester aspects of unit testing support. AJUTester support point of intervention testing and notification tests. Provide users with the measured point of intervention point of intervention, after indicating the Statute, AJUTester can automatically perform static entry point of the test, you can automatically point about Introduction into the dynamic test domain and connection point flow graph based on the reduction of the test after the test field input coverage measurement, which aided testing to optimize test sets. The test is similar to the notification of the module test method. Experiments show support tools AJUTester has a certain practicality.

Table of contents

Abstract 4-6 ABSTRACT 6-12 1 Introduction 12-28 1.1 aspect-oriented development methods and challenges 12-16 1.2 AO program testing in question 16-20 1.3 AO program testing technology research status 20-22 1.4 This paper aims 22-24 1.5 The main research content 24-26 1.6 This organizational structure 26-28 2 AO program testing and unit testing technology infrastructure 28-43 2.1 AO programming paradigm testability 28-29 2.2 AO programming paradigm defect model 29-30 2.3 AO classification program testing 30-37 2.4 AO program testing and unit testing tool prototype 37-38 2.5 AO unit testing program faced major technical problems 38-42 2.6 Summary 42-43 3 AO program unit defect model 43-58 3.1 AO procedural defect model related research 43-45 3.2 connection point set defines the types of errors caused by analysis 45-51 3.3 connection point crosscutting function code defines the types of errors caused by analysis 51-56 3.4 Non- unit type of defect 56 3.5 Summary 56-58 4 predicate statute ASPECTJ based intervention program point static testing techniques 58-76 4.1 point of intervention in the test difficult issues 58-60 4.2 static point of intervention models and defect predicate statute indicates 60-61 4.3 static point of intervention necessary and sufficient criteria for the test 61-63 4.4 test method implementation process 63-68 4.5 Experimental 68-72 4.6 discussion 72-74 4.7 Summary 74-76 5 two-stage dynamic entry point test method 76-115 5.1 dynamic point of intervention in the test questions 76-78 5.2 point of intervention predicate model 78-91 5.3 AO process flow diagram connection point 91-96 5.4 test adequacy criteria and reduction rules 96-104 5.5 connection point flow graph based on dynamic phase of testing methods 104-105 5.6 dynamic point of intervention Test Methods for two-stage application 105-113 5.7 discussion 113-114 5.8 Summary 114-115 6 AO program unit testing support system design and implementation 115-136 6.1 unit testing support tools Research 115-116 6.2 unit testing prototype AJUTester overall structure 116-120 6.3 connection point flow graph JPFG realization 120-131 6.4 Dynamic test domain reduction algorithm experimental analysis 131-135 6.5 Summary 135-136 7 Summary and Outlook 136-140 7.1 The main work 136-137 7.2 Prospects for future research 137-140 Thanks 140-141 References 141-159 Appendix 1 PhD papers and awards during 159-160 PhD in Appendix 2 major research projects during the participating 160