Towards Automated Boundary Value Testing with Program Derivatives and Search

被引:5
作者
Feldt, Robert [1 ]
Dobslaw, Felix [1 ]
机构
[1] Chalmers Univ Technol, Div Software Engn, Dept Comp Sci & Engn, Gothenburg, Sweden
来源
SEARCH-BASED SOFTWARE ENGINEERING, SSBSE 2019 | 2019年 / 11664卷
关键词
Automated software testing; Search-based software testing; Boundary value analysis; Information theory; Partition testing;
D O I
10.1007/978-3-030-27455-9_11
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
A natural and often used strategy when testing software is to use input values at boundaries, i.e. where behavior is expected to change the most, an approach often called boundary value testing or analysis (BVA). Even though this has been a key testing idea for long it has been hard to clearly define and formalize. Consequently, it has also been hard to automate. In this research note we propose one such formalization of BVA by, in a similar way as to how the derivative of a function is defined in mathematics, considering (software) program derivatives. Critical to our definition is the notion of distance between inputs and outputs which we can formalize and then quantify based on ideas from Information theory. However, for our (black-box) approach to be practical one must search for test inputs with specific properties. Coupling it with search-based software engineering is thus required and we discuss how program derivatives can be used as and within fitness functions. This brief note does not allow a deeper, empirical investigation but we use a simple illustrative example throughout to introduce the main ideas. By combining program derivatives with search, we thus propose a practical as well as theoretically interesting technique for automated boundary value (analysis and) testing.
引用
收藏
页码:155 / 163
页数:9
相关论文
共 21 条
[1]  
Alshahwan N, 2012, PROC INT CONF SOFTW, P1345, DOI 10.1109/ICSE.2012.6227083
[2]  
Bath G., 2012, SOFTWARE TEST ENG HD
[3]   Information distance [J].
Bennett, CH ;
Gacs, P ;
Li, M ;
Vitanyi, FMB ;
Zurek, WH .
IEEE TRANSACTIONS ON INFORMATION THEORY, 1998, 44 (04) :1407-1423
[4]   Algorithmic clustering of music based on string compression [J].
Cilibrasi, R ;
Vitányi, P ;
de Wolf, R .
COMPUTER MUSIC JOURNAL, 2004, 28 (04) :49-67
[5]   A CLOSE LOOK AT DOMAIN TESTING [J].
CLARKE, LA ;
HASSELL, J ;
RICHARDSON, DJ .
IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 1982, 8 (04) :380-390
[6]  
Cruciani E., 2019, 41 INT C SOFTW ENG I
[7]   Test Set Diameter: Quantifying the Diversity of Sets of Test Cases [J].
Feldt, Robert ;
Poulding, Simon ;
Clark, David ;
Yoo, Shin .
2016 9TH IEEE INTERNATIONAL CONFERENCE ON SOFTWARE TESTING, VERIFICATION AND VALIDATION (ICST), 2016, :223-233
[8]   Broadening the Search in Search-Based Software Testing: It Need Not Be Evolutionary [J].
Feldt, Robert ;
Poulding, Simon .
2015 IEEE/ACM 8TH INTERNATIONAL WORKSHOP ON SEARCH-BASED SOFTWARE TESTING (SBST), 2015, :1-7
[9]  
Feldt R, 2013, PROC INT SYMP SOFTW, P350, DOI 10.1109/ISSRE.2013.6698888
[10]  
Glass Robert L, 2001, IEEE software, V18, P112, DOI [DOI 10.1109/MS.2001.922739, 10.1109/MS.2001.922739, DOI 10.1109/MS.2001.965816]