Font Size: a A A

Research On Aspect-Oriented Testing Method Based On Use Case With Application

Posted on:2012-03-01Degree:MasterType:Thesis
Country:ChinaCandidate:W SuFull Text:PDF
GTID:2178330335464208Subject:Computer software and theory
Abstract/Summary:PDF Full Text Request
Aspect-oriented programming (AOP) is a new programming paradigm, which had been widely studied in 1990s and has been applied in a constantly increasing speed in this century. For object-oriented programming, the core concern of module dividing dimension is based on conceptual models (classes), but other crosscutting concerns are scattered and distributed in many classes. Aspect-oriented programming solves the modularizing crosscutting concerns problem that is difficult for object-oriented programming by providing a new abstraction mechanism. It realizes the separation of core concerns and crosscutting concerns. Although aspect-oriented programming has brought many benefits, the new dependencies between aspects and classes result some new errors too. It is difficult to find these errors with existing object-oriented testing methods. Therefore, it is necessary to explore new testing methods.This paper presents an aspect-oriented testing method based on use cases. The basic test sequences are generated based on use case scenarios, and test sequences weaving aspects are generated by gradually integrating aspects into basic test sequences in this approach. It is in a higher level than unit testing and aims to find errors in the process when aspects are weaved into classes.The method consists of two main phases. The first phase is the static analysis. Test sequences are generated based on interactions between classes in use cases and weaving of aspects in this phase. The second phase is the dynamic analysis. The execution of the selected sequences is verified in this phase. The method follows an incremental iterative process. One or more aspects are integrated into the classes'collaboration of use cases. New test sequences are generated according to testing criteria defined in this paper. These sequences are generated based on the introduction of advices of aspects to basic test sequences. An algorithm is proposed to find all basic test sequences related to aspects, and the test coverage can be computed. We have designed and implemented a special tool. It can find all basic test sequences related to aspects, and can generate test sequences weaving aspects through incremental iteratively and gradually integrating aspects into basic test sequences.
Keywords/Search Tags:Aspect-oriented Programming, Testing Based on Use Case, Aspect-oriented Software Development, Separation of Concerns, Testing Criteria, Testing Coverage
PDF Full Text Request
Related items