计算机工程 ›› 2009, Vol. 35 ›› Issue (16): 29-31.doi: 10.3969/j.issn.1000-3428.2009.16.010

• 软件技术与数据库 • 上一篇    下一篇

基于正则表达式的测试数据自动生成技术

董 敏,毕 盛,齐德昱   

  1. (华南理工大学计算机科学与工程学院,广州 510640)
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2009-08-20 发布日期:2009-08-20

Automatic Test Data Generation Technology Based on Regular Expressions

DONG Min, BI Sheng, QI De-yu   

  1. (School of Computer Science & Engineering, South China University of Technology, Guangzhou 510640)

  • Received:1900-01-01 Revised:1900-01-01 Online:2009-08-20 Published:2009-08-20

摘要: 软件测试是提高软件可靠性、保证软件质量的重要手段。数据自动生成是测试自动化的重要组成部分。提出一种基于正则表达式的测试数据自动生成技术,生成的数据应该具有随机性、可控制、可定义、有意义、无错误等特性,特别是对大字段/专有类型等特殊类型的支持,可以解决目前测试数据自动生成存在的问题,具有良好的扩展性。

关键词: 软件测试, 正则表达式, 测试数据自动生成

Abstract: Software test is an important way to improve software quality assurance. Automatic test data generation is an important composition of test automation. This paper introduces a technique of automatic test data generation based on regular expressions. The data generated by this kind of techniques are random, can be controlled, can be defined, meaningful, error-free, and other characteristics. especially large object/special types are supported in this technique. It can solve the problem in automatic test data generation and has better expansibility.

Key words: software test, regular expressions, automatic test data generation

中图分类号: