Font Size: a A A

Design And Implementation Of Testing Aspects Interaction Tool For Aspect-Oriented Programs

Posted on:2008-06-10Degree:MasterType:Thesis
Country:ChinaCandidate:X J ZhuangFull Text:PDF
GTID:2178360242976939Subject:Computer application technology
Abstract/Summary:PDF Full Text Request
As the main programming paradigm of software development for many years, Object-Oriented Programming (OOP) has greatly improved the modularity, reusability of software codes and reduced the complexity of software and its maintenance cost. However,the problems of code scattering and code tangling have become more and more important with the development of object-oriented programming. Aspect-Oriented Programming (AOP), a newer programming paradigm which is based on object-oriented programming, can solve the problems of code scattering and code tangling very well. It can make the software system easy to design, extend and improve the quality of codes and the efficiency of development, also the modularity and reusability of software. AOSD(Aspect-Oriented Software Development) that improves separations of concerns in software development will be one of the future direction of software development. As a newer programming paradigm, little research of program analysis, program understanding, testing and software maintenance has been done for Aspect-Oriented Programming. The current research so far on AOP testing is still not well development, especially on testing interactions among aspects. In this paper, we analyze the fault model of aspects interaction, which includes aspect precedence and aspect interference. Through analyzing the byte code of the woven class, picking up the aspect elements, then encapsulating them applying the principle of the aspect interaction, Aspat will output interfaces for designing the test case to identify the faults of aspects interaction.The main contributions of this paper are as follows: First, the aspect interaction idea introduced in this paper is presented at the first time for testing AOP. Second, we propose the architecture and tool Aspat for testing the interaction of aspect, which can help programmers and testers to identify the fault in their programs. Third, we propose an available way for testing the aspect programs and make our tool more extendable, which can help followers on the process of testing AOP.
Keywords/Search Tags:fault model, Aspect-Oriented Programming (AOP), AspectJ, Aspat, test case
PDF Full Text Request
Related items