Testing aspect-oriented programs with UML design models

被引:7
|
作者
Xu, Dianxiang [1 ]
Xu, Weifeng [1 ]
Wong, W. Eric [2 ]
机构
[1] N Dakota State Univ, Dept Comp Sci, Fargo, ND 58105 USA
[2] Univ Texas Dallas, Dept Comp Sci, Richardson, TX 75803 USA
关键词
software testing; model-based testing; aspect-oriented modeling; aspect-oriented programming; UML; test generation;
D O I
10.1142/S0218194008003672
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
The new construct in aspect-oriented programming bring new types of programming faults with respect to crosscutting concerns, such as incorrect point cuts and advice. This paper presents a UML-based approach to testing whether or not an aspect-oriented program conforms to its expected crosscutting behavior. We explore aspect-oriented UML design models to derive tests for exercising interactions between aspects and classes. Each aspect-oriented model consists of class diagrams, aspect diagrams, and sequence diagrams. For a method under test, we weave the sequence diagrams of the advice on the method into the method's sequencediagram. Based on the woven sequence diagram and class/aspect diagrams, we then generate an AOF (Aspect-Object Flow) tree by applying coverage criteria such as condition coverage, polymorphic coverage, and loop coverage to woven sequence diagrams. In the AOF tree, each path from the root to a leaf is an abstract message sequence, indicating a template of test cases. A concrete test case is obtained by creating objects that satisfy the collective constraints in the template. Our empirical study shows that the model-based testing approach is capable of revealing several types of aspect-specific faults, including incorrect advice type, incorrect (weaker or stronger) point cut strengths, and incorrect aspect precedence.
引用
收藏
页码:413 / 437
页数:25
相关论文
共 50 条
  • [1] Testing Aspect-Oriented Programs
    Moreira, Rodrigo M. L. M.
    Paiva, Ana C. R.
    Aguiar, Ademar
    SISTEMAS Y TECNOLOGIAS DE INFORMACION, 2010, : 271 - 276
  • [2] Performance analysis of aspect-oriented UML models
    Petriu, Dorina C.
    Shen, Hui
    Sabetta, Antonino
    SOFTWARE AND SYSTEMS MODELING, 2007, 6 (04): : 453 - 471
  • [3] Performance analysis of aspect-oriented UML models
    Dorina C. Petriu
    Hui Shen
    Antonino Sabetta
    Software & Systems Modeling, 2007, 6 : 453 - 471
  • [4] Designing and Weaving Aspect-Oriented Executable UML models
    Fuentes, Lidia
    Sanchez, Pablo
    JOURNAL OF OBJECT TECHNOLOGY, 2007, 6 (07): : 109 - 136
  • [5] Testing aspect-oriented programs with finite state machines
    Xu, Dianxiang
    El-Ariss, Omar
    Xu, Weifeng
    Wang, Linzhang
    SOFTWARE TESTING VERIFICATION & RELIABILITY, 2012, 22 (04): : 267 - 293
  • [6] Embedded System Design Based on Aspect-Oriented Executable UML
    Teruya, Akira
    Iwata, Eiichiro
    Sugai, Masahito
    Kimura, Masahiro
    Zakaria, Nurul Azma
    Matsumoto, Noriko
    Yoshida, Norihiko
    PROCEEDINGS OF THE 8TH WSEAS INTERNATIONAL CONFERENCE ON APPLIED COMPUTER SCIENCE (ACS'08): RECENT ADVANCES ON APPLIED COMPUTER SCIENCE, 2008, : 247 - +
  • [7] A Survey on UML-Based Aspect-Oriented Design Modeling
    Wimmer, Manuel
    Schauerhuber, Andrea
    Kappel, Gerti
    Retschitzegger, Werner
    Schwinger, Wieland
    Kapsammer, Elisabeth
    ACM COMPUTING SURVEYS, 2011, 43 (04)
  • [8] OOAspectZ and aspect-oriented UML class diagrams for Aspect-oriented software modelling (AOSM)
    Vidal Silva, C.
    Saens, R.
    Del Rio, C.
    Villarroel, R.
    INGENIERIA E INVESTIGACION, 2013, 33 (03): : 66 - 71
  • [9] ASPECT-ORIENTED MODELING: APPLYING ASPECT-ORIENTED UML USE CASES AND EXTENDING ASPECT-Z
    Vidal Silva, Cristian
    Saens, Rodrigo
    Del Rio, Carolina
    Villarroel, Rodolfo
    COMPUTING AND INFORMATICS, 2013, 32 (03) : 573 - 593
  • [10] Performance analysis of UML models using aspect-oriented modeling techniques
    Shen, H
    Petriu, DC
    MODEL DRIVEN ENGINEERING LANGUAGES AND SYSTEMS, PROCEEDINGS, 2005, 3713 : 156 - 170