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 条
  • [1] From Early Aspect to Aspect-Oriented Programming: A State-Based Join Point Model Approach
    Hsu, Kuo-Hsun
    Tsai, Chang-Yen
    [J]. JOURNAL OF INFORMATION SCIENCE AND ENGINEERING, 2018, 34 (03) : 649 - 670
  • [2] Automated State-Based Unit Testing for Aspect-Oriented Programs: A Supporting Framework
    Badri, Mourad
    Badri, Linda
    Bourque-Fortin, Maxime
    [J]. JOURNAL OF OBJECT TECHNOLOGY, 2009, 8 (03): : 121 - 146
  • [3] Aspect-Oriented Programming for Guided Testing
    Liu, Siyuan
    Yang, Yang
    [J]. PROCEEDINGS OF THE 2015 4TH INTERNATIONAL CONFERENCE ON SENSORS, MEASUREMENT AND INTELLIGENT MATERIALS, 2016, 43 : 432 - 437
  • [4] A generative approach to aspect-oriented programming
    Smith, DR
    [J]. GENERATIVE PROGRAMMING AND COMPONENT ENGINEERING 2004, PROCEEDINGS, 2004, 3286 : 39 - 54
  • [5] Aspect-oriented Programming Techniques in Unit Testing
    Voesgen, Matthias
    Sokenou, Dehla
    [J]. COMPUTER SCIENCE-RESEARCH AND DEVELOPMENT, 2005, 20 (1-2): : 57 - 71
  • [6] Aspect-oriented programming
    Lopes, CV
    Kiczales, G
    [J]. TECHNOLOGY OF OBJECT-ORIENTED LANGUAGES AND SYSTEMS - TOOLS 34, PROCEEDINGS, 2000, : 461 - 461
  • [7] Aspect-oriented programming
    Bergmans, L
    Lopes, CV
    [J]. OBJECT-ORIENTED TECHNOLOGY, 1999, 1743 : 288 - 313
  • [8] Aspect-oriented programming
    Lopes, CV
    Kiczales, G
    [J]. TECHNOLOGY OF OBJECT-ORIENTED LANGUAGES - TOOLS 33, PROCEEDINGS, 2000, : 468 - 468
  • [9] Aspect-oriented programming
    Kiczales, G
    [J]. ICSE 05: 27th International Conference on Software Engineering, Proceedings, 2005, : 730 - 730
  • [10] Aspect-oriented programming
    Murphy, C
    Schwanninger, C
    [J]. IEEE SOFTWARE, 2006, 23 (01) : 20 - 23