Property-based testing of web services by deriving properties from business-rule models

被引:5
作者
Aichernig, Bernhard K. [1 ]
Schumi, Richard [1 ]
机构
[1] Graz Univ Technol, Inst Software Technol, Graz, Austria
关键词
Model-based testing; Test case generation; Property-based testing; QuickCheck; FsCheck; Web services; Business-rule models; QUICKCHECK;
D O I
10.1007/s10270-017-0647-0
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Property-based testing is well suited for web-service applications, which was already shown in various case studies. For example, it has been demonstrated that JSON schemas can be used to automatically derive test case generators for web forms. In this work, we present a test case generation approach for a rule engine-driven web-service application. Business-rule models serve us as input for property-based testing. We parse these models to automatically derive generators for sequences of web-service requests together with their required form data. Property-based testing is mostly applied in the context of functional programming. Here, we define our properties in an object-oriented style in C# and its tool FsCheck. We apply our method to the business-rule models of an industrial web-service application in the automotive domain.
引用
收藏
页码:889 / 911
页数:23
相关论文
共 32 条
[1]   Property-based Testing with FsCheck by Deriving Properties from Business Rule Models [J].
Aichernig, Bernhard K. ;
Schumi, Richard .
2016 IEEE NINTH INTERNATIONAL CONFERENCE ON SOFTWARE TESTING, VERIFICATION AND VALIDATION WORKSHOPS (ICSTW), 2016, :219-228
[2]  
[Anonymous], 2006, P 2006 ACM SIGPLAN W
[3]  
[Anonymous], 2015, 2015 IEEE 8 INT C SO
[4]  
Benac Earle C., 2014, ERLANG 14, P33, DOI [DOI 10.1145/2633448.2633454, 10.1145/2633448.2633454]
[5]  
Charfi A., 2004, ICSOC 04, P30
[6]  
CHENG KT, 1993, ACM IEEE D, P86
[7]   TESTING SOFTWARE DESIGN MODELED BY FINITE-STATE MACHINES [J].
CHOW, TS .
IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 1978, 4 (03) :178-187
[8]   Testing monadic code with QuickCheck [J].
Claessen, K ;
Hughes, J .
ACM SIGPLAN NOTICES, 2002, 37 (12) :47-59
[9]   QuickCheck: A lightweight tool for random testing of Haskell programs [J].
Claessen, K ;
Hughes, J .
ACM SIGPLAN NOTICES, 2000, 35 (09) :268-279
[10]  
Francisco M.A., 2013, ERL WORKSH, P79