Automatic test data generation of character string.ppt


文档分类: | 页数:约40页 举报非法文档有奖
1/40
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/40
文档列表 文档介绍
Automatic Test Data Generation of Character String
Zhao Ruilian
Outline
Introduction
Automatic test data generation
Character string predicate
Automatic test data generation of character string
A example
Conclusion and Future work
Introduction
Software testing is usually difficult, expensive and time consuming.
Accounts for up to 50% of the cost
of whole software development .
If test data could be automatically generated,
the cost of software testing would be significantly reduced.
Introduction
There are many automatic test data generation approaches.
The most used are:
Random test data generation
Symbolic execution-based test data generation
Dynamic test data generation
Introduction
Each approach has its own advantages.
Little attention has been paid to the problem of test data
generation for programs whose inputs are character string.
Introduction
Character string is an important element in programming.
How to automatically generate test data of character string
Automatic test data generation
Random test data generation develops test data
at random until a useful input is found
Random test data generation is easy to implement.
Random test data generation
In fact, random test data generation is generally
ineffective on realistic programs.
Automatic test data generation
Symbolic execution-based test data generation
But, symbolic execution is putational intensive
and a number of technical problems are met in practice.
indefinite loops, subprogram call, array reference and so on
The basic idea in a symbolic execution system is to allow numeric
variables to take on symbolic values instead of numeric values.
Automatic test data generation
Symbolic execution-based test data generation
If input variable is character string variable
strncpy(tempstr,instr,5);
strupr(tempstr);
if (strcmp(tempstr,”LEFT”)<0);
instr is a input variable of
character string
It is difficult to express the value of variable tempstr in terms of
the sym

Automatic test data generation of character string 来自淘豆网m.daumloan.com转载请标明出处.

相关文档 更多>>
非法内容举报中心
文档信息
  • 页数40
  • 收藏数0 收藏
  • 顶次数0
  • 上传人1136365664
  • 文件大小421 KB
  • 时间2018-03-18