首页> 外文会议>IEEE International Conference on Software Testing, Verification and Validation Workshops >MutRex: A Mutation-Based Generator of Fault Detecting Strings for Regular Expressions
【24h】

MutRex: A Mutation-Based Generator of Fault Detecting Strings for Regular Expressions

机译:MutRex:基于突变的故障检测字符串的正则表达式生成器

获取原文

摘要

Regular expressions (regexes) permit to describe set of strings using a pattern-based syntax. Writing a correct regex that exactly captures the desired set of strings is difficult, also because a regex is seldom syntactically incorrect, and so it is rare to detect faults at parse time. We propose a fault-based approach for generating tests for regexes. We identify fault classes representing possible mistakes a user can make when writing a regex, and we introduce the notion of distinguishing string, i.e., a string that is able to witness a fault. Then, we provide a tool, based on the automata representation of regexes, for generating distinguishing strings exposing the faults introduced in mutated versions of a regex under test. The basic generation process is improved by two techniques, namely monitoring and collecting. Experiments show that the approach produces compact test suites having a guaranteed fault detection capability, differently from other test generation approaches.
机译:正则表达式(regexes)允许使用基于模式的语法来描述字符串集。编写正确的正则表达式以准确捕获所需的字符串集非常困难,这也是因为正则表达式在语法上很少是错误的,因此很少在解析时检测到错误。我们提出了一种基于错误的方法来生成正则表达式的测试。我们确定代表用户在编写正则表达式时可能犯的错误的故障类别,并引入区分字符串的概念,即能够看到故障的字符串。然后,我们基于正则表达式的自动表示形式提供了一个工具,用于生成区分字符串,以暴露暴露在测试中的正则表达式的突变版本中引入的错误。通过两种技术(即监视和收集)改进了基本生成过程。实验表明,与其他测试生成方法不同,该方法可生成具有保证的故障检测能力的紧凑型测试套件。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号