A state-based testing approach for aspect-oriented programming

被引:0
|
作者
Liu, Chien-Hung [1 ]
Chang, Chuan-Wen [1 ]
机构
[1] Natl Taiwan Univ Technol, Dept Comp Sci & Informat Engn, Taipei 106, Taiwan
关键词
software testing; aspect-oriented programming; aspect-oriented software development; aspect-oriented modeling; state-based testing; AOP testing; AspectJ;
D O I
暂无
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
In recent years, Aspect Oriented Programming (AOP) has become an emerging technology due to its ability to support the separation of concerns in software development. In particular, AOP allows application requirements to be implemented in separated modules while weaving them together without code tangling. However, this feature also raises a concern about the quality and reliability of AOP programs. Most specifically, the AOP programming constructs, such as join point, pointcut, advice, and aspect, can change the dynamic behavior(1) of original base modules and need to be tested thoroughly to ensure the correctness of AOP programs. In this paper, we propose a state-based testing approach for AOP programs. The approach considers the state-based behavior(2) changes introduced by different advices in multiple aspects. A test model is presented to abstract the state-based behavior of AOP program with the consideration of the interactions between the base modules and aspects. Based on the model, test cases can be derived so as to uncover the potential state behavior errors in the AOP programs. In addition, an example is provided to show the effectiveness of the proposed approach.
引用
收藏
页码:11 / 31
页数:21
相关论文
共 50 条
  • [21] Aspect-oriented programming - Introduction
    Elrad, T
    Filman, RE
    Bader, A
    [J]. COMMUNICATIONS OF THE ACM, 2001, 44 (10) : 28 - 32
  • [22] Cooperative aspect-oriented programming
    Hoffman, Kevin
    Eugster, Patrick
    [J]. SCIENCE OF COMPUTER PROGRAMMING, 2009, 74 (5-6) : 333 - 354
  • [23] Aspect-oriented programming and aspectj
    Grosso, William
    [J]. Dr. Dobb's Journal, 2002, 27 (08):
  • [24] Aspect-oriented programming with AspectJ
    Hilsdale, E
    [J]. TOOLS 39: TECHNOLOGY OF OBJECT-ORIENTED LANGUAGES AND SYSTEMS, PROCEEDINGS: SOFTWARE TECHNOLOGY FOR THE AGE OF THE INTERNET, 2001, 39 : 368 - 368
  • [25] An Aspect-Oriented Approach to the Undergraduate Programming Language Curriculum
    Sheldon, Mark A.
    Turbak, Franklyn
    [J]. ACM SIGPLAN NOTICES, 2008, 43 (11) : 124 - 129
  • [26] A Goal-Oriented Approach For Dynamic Execution of Services based on Aspect-Oriented Programming
    Neffati, Omnia Saidani
    [J]. 2015 IEEE 9TH INTERNATIONAL CONFERENCE ON RESEARCH CHALLENGES IN INFORMATION SCIENCE (RCIS), 2015, : 510 - 515
  • [27] Observability using aspect-oriented programming for OO software testing
    Meetei, Mutum Zico
    Goel, A.
    Wasan, Siri Krishan
    [J]. INTERNATIONAL JOURNAL OF SYSTEM ASSURANCE ENGINEERING AND MANAGEMENT, 2011, 2 (02) : 85 - 96
  • [28] Testing aspect-oriented programs with finite state machines
    Xu, Dianxiang
    El-Ariss, Omar
    Xu, Weifeng
    Wang, Linzhang
    [J]. SOFTWARE TESTING VERIFICATION & RELIABILITY, 2012, 22 (04): : 267 - 293
  • [29] Testing Aspect-Oriented Programs
    Moreira, Rodrigo M. L. M.
    Paiva, Ana C. R.
    Aguiar, Ademar
    [J]. SISTEMAS Y TECNOLOGIAS DE INFORMACION, 2010, : 271 - 276
  • [30] Resolving Synchronization and Analyzing Based on Aspect-Oriented Programming
    Zhang, Yang
    Zhang, Jingjun
    Chen, Yuejuan
    Wang, Qiaoling
    [J]. ISCSCT 2008: INTERNATIONAL SYMPOSIUM ON COMPUTER SCIENCE AND COMPUTATIONAL TECHNOLOGY, VOL 1, PROCEEDINGS, 2008, : 34 - +