String Generation for Testing Regular Expressions. (11th January 2019)
- Record Type:
- Journal Article
- Title:
- String Generation for Testing Regular Expressions. (11th January 2019)
- Main Title:
- String Generation for Testing Regular Expressions
- Authors:
- Zheng, Lixiao
Ma, Shuai
Wang, Yuanyang
Lin, Gang - Editors:
- Hierons, Rob
- Abstract:
- Abstract: Regular expressions have been widely studied due to their expressiveness and flexibility for various applications. A common yet challenging way to ensure the quality of regular expressions is regular expression testing. In this work, we study coverage criteria-based string generation for testing regular expressions. First, we propose a notion of pairwise coverage criterion for regular expressions and analyze the subsumption relationships with existing coverage criteria for both regular grammars and finite automata. Second, we design an algorithm that given as an input a regular expression, outputs a small set of strings that satisfies the pairwise coverage criterion. Third, we extend the coverage criterion and the generation algorithm to further deal with regular operators counting and interleaving. Fourth, we experimentally demonstrate the effectiveness and efficiency of our algorithms by testing element-type definitions of real-world XML schemas. Finally, we identify more applications of pairwise coverage and its corresponding generation algorithm and show that they can be used to generate characteristic samples for certain regular expression learning algorithms that follow Gold's learning paradigm of learning (identification) in the limit. These results are not only theoretically meaningful but also useful for practical applications involved with regular expressions.
- Is Part Of:
- Computer journal. Volume 63:Number 1(2020)
- Journal:
- Computer journal
- Issue:
- Volume 63:Number 1(2020)
- Issue Display:
- Volume 63, Issue 1 (2020)
- Year:
- 2020
- Volume:
- 63
- Issue:
- 1
- Issue Sort Value:
- 2020-0063-0001-0000
- Page Start:
- 41
- Page End:
- 65
- Publication Date:
- 2019-01-11
- Subjects:
- string generation -- testing -- regular expressions -- finite automata -- regular grammars -- coverage criterion
Computers -- Periodicals
005.1 - Journal URLs:
- http://comjnl.oxfordjournals.org/ ↗
http://ukcatalogue.oup.com/ ↗ - DOI:
- 10.1093/comjnl/bxy137 ↗
- Languages:
- English
- ISSNs:
- 0010-4620
- Deposit Type:
- Legaldeposit
- View Content:
- Available online (eLD content is only available in our Reading Rooms) ↗
- Physical Locations:
- British Library DSC - 3394.060000
British Library DSC - BLDSS-3PM
British Library HMNTS - ELD Digital store - Ingest File:
- 24947.xml