Test case generation with regular expressions and combinatorial techniques

被引:4
作者
Polo Usaola, Macario [1 ]
Ruiz Romero, Francisco [1 ]
Rodriguez-Bobada Aranda, Rosana [1 ]
Garcia Rodriguez, Ignacio [1 ]
机构
[1] Univ Castilla La Mancha, Dept Informat Syst & Technol, Ciudad Real, Spain
来源
10TH IEEE INTERNATIONAL CONFERENCE ON SOFTWARE TESTING, VERIFICATION AND VALIDATION WORKSHOPS - ICSTW 2017 | 2017年
关键词
Software testing; Test case generation; Oracles; Regular expressions;
D O I
10.1109/ICSTW.2017.38
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
A test case describes a specific execution scenario of the system under test (SUT). Its goal is to discover errors by means of its oracle, that emits a pass or fail verdict depending on the SUT behavior. The test case has a sequence of calls to SUT's operations with specific test data, which may come from the application of a combinatorial algorithm. This paper describes a method to describe generic test scenarios by means of regular expressions, whose symbols point to a SUT operation. The tester assigns values to each operation's parameter. A further step expands the regular expression and produces a set of operation sequences, which are then passed to a combinatorial algorithm to generate actual test cases. Regular expressions are annotated with a set of when clauses, that are processed by the combinatorial algorithm to include the oracle in the generated test cases.
引用
收藏
页码:189 / 198
页数:10
相关论文
共 19 条
  • [1] AMMANN P, 1994, COMPASS '94 - PROCEEDINGS OF THE NINTH ANNUAL CONFERENCE ON COMPUTER ASSURANCE, P69, DOI 10.1109/CMPASS.1994.318466
  • [2] An orchestrated survey of methodologies for automated software test case generation
    Anand, Saswat
    Burke, Edmund K.
    Chen, Tsong Yueh
    Clark, John
    Cohen, Myra B.
    Grieskamp, Wolfgang
    Harman, Mark
    Harrold, Mary Jean
    McMinn, Phil
    Bertolino, Antonia
    Li, J. Jenny
    Zhu, Hong
    [J]. JOURNAL OF SYSTEMS AND SOFTWARE, 2013, 86 (08) : 1978 - 2001
  • [3] Baresi Luciano., 2001, Test Oracles
  • [4] The Oracle Problem in Software Testing: A Survey
    Barr, Earl T.
    Harman, Mark
    McMinn, Phil
    Shahbaz, Muzammil
    Yoo, Shin
    [J]. IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2015, 41 (05) : 507 - 525
  • [5] AN AUTOMATIC GENERATOR FOR COMPILER TESTING
    BAZZICHI, F
    SPADAFORA, I
    [J]. IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 1982, 8 (04) : 343 - 353
  • [6] Beck K., 2000, MORE JAVA GEMS
  • [7] Software testing research: Achievements, challenges, dreams
    Bertolino, Antonia
    [J]. FOSE 2007: FUTURE OF SOFTWARE ENGINEERING, 2007, : 85 - 103
  • [8] Capgemini HP and Sogeti, WORLD QUAL REP 2015
  • [9] The AETG system: An approach to testing based on combinatorial design
    Cohen, DM
    Dalal, SR
    Fredman, ML
    Patton, GC
    [J]. IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 1997, 23 (07) : 437 - 444
  • [10] Experiments on the Test Case Length in Specification Based Test Case Generation
    Fraser, Gordon
    Gargantini, Angelo
    [J]. 2009 ICSE WORKSHOP ON AUTOMATION OF SOFTWARE TEST, 2009, : 18 - +