JAOUT: Automated generation of aspect-oriented unit test

被引:0
|
作者
Xu, GQ
Yang, ZY
Huang, HT
Chen, Q
Chen, L
Xu, FB
机构
关键词
D O I
暂无
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Unit testing is a methodology for testing small parts of an application independently of whatever application uses them. It is time consuming and tedious to write unit tests, and it is especially difficult to write unit tests that model the pattern of usage of the application they will be used in. Aspect-Oriented Programming (AOP) addresses the problem of separation of concerns in programs which is well suited to unit test problems. What's more, unit tests should be made from different concerns in the application instead of just from functional assertions of correctness or error. In this paper, we firstly present a new concept, application-specific Aspects, which mean top-level aspects picked up from generic low-level aspects in AOP for specific use. It can be viewed as the separation of concerns on applications of generic low-level aspects. Second, this paper describes an Aspect-Oriented Test Description Language (AOTDL) and techniques to build top-level aspects for testing on generic aspects. Third, we generate JUnit unit testing framework and test oracles from AspectJ programs by integrating our tool with AspectJ and JUnit. We use runtime exceptions thrown by testing aspects to decide whether methods work well. Finally, we present a double-phase testing way to filter out meaningless test cases in our framework.
引用
收藏
页码:374 / 381
页数:8
相关论文
共 50 条
  • [1] Automated Test Data Generation for Aspect-Oriented Programs
    Harman, Mark
    Islam, Fayezin
    Xie, Tao
    Wappler, Stefan
    AOSD'09: 8TH INTERNATIONAL CONFERENCE ON ASPECT-ORIENTED SOFTWARE DEVELOPMENT, 2009, : 185 - 196
  • [2] The Research of Automated Select Test Cases for Aspect-oriented Software
    Wang, Peng
    Zhao, Xiaochun
    2012 INTERNATIONAL CONFERENCE ON MECHANICAL, INDUSTRIAL, AND MANUFACTURING ENGINEERING, 2012, 1 : 2 - 7
  • [3] Approach for Automated Test Data Generation for Path Testing in Aspect-Oriented Programs using Genetic Algorithm
    Khandelwal, Juhi
    Tomar, Pradeep
    2015 INTERNATIONAL CONFERENCE ON COMPUTING, COMMUNICATION & AUTOMATION (ICCCA), 2015, : 854 - 858
  • [4] An approach to test aspect-oriented programs
    Qamar, M. N.
    Nadeem, A.
    Aziz, R.
    WORLD CONGRESS ON ENGINEERING 2007, VOLS 1 AND 2, 2007, : 211 - +
  • [5] Aspect-Oriented Test Case Generation from Matlab/Simulink Models
    Tekaya, Manel
    Bennani, Mohamed Taha
    Alagui, Mohamed Abidi
    Ben Ahmed, Samir
    THEORY AND ENGINEERING OF COMPLEX SYSTEMS AND DEPENDABILITY, 2015, 365 : 495 - 504
  • [6] Automated inference of pointcuts in aspect-oriented refactoring
    Anbalagan, Prasanth
    Xie, Tao
    ICSE 2007: 29TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING, PROCEEDINGS, 2007, : 127 - +
  • [7] Aspect-oriented Programming Techniques in Unit Testing
    Voesgen, Matthias
    Sokenou, Dehla
    COMPUTER SCIENCE-RESEARCH AND DEVELOPMENT, 2005, 20 (1-2): : 57 - 71
  • [8] FlexTest:: An aspect-oriented framework for unit testing
    Sokenou, D
    Vösgen, M
    QUALITY OF SOFTWARE ARCHITECTURES AND SOFTWARE QUALITY, PROCEEDINGS, 2005, 3712 : 257 - 270
  • [9] Automated State-Based Unit Testing for Aspect-Oriented Programs: A Supporting Framework
    Badri, Mourad
    Badri, Linda
    Bourque-Fortin, Maxime
    JOURNAL OF OBJECT TECHNOLOGY, 2009, 8 (03): : 121 - 146
  • [10] A comparison of program generation with aspect-oriented programming
    Mezini, M
    Ostermann, K
    UNCONVENTIONAL PROGRAMMING PARADIGMS, 2005, 3566 : 342 - 354