首页> 外国专利> Method and system for generating a computer program test suite using dynamic symbolic execution

Method and system for generating a computer program test suite using dynamic symbolic execution

机译:使用动态符号执行生成计算机程序测试套件的方法和系统

摘要

A method and system for generating a test suite for a computer program. The computer program comprises program statements and program variables, including at least one input statement having one or more input variables, that are grouped into code blocks and stored in a program database. The test suite comprises sets of inputs. Each of the sets of inputs corresponds to each of the input statements. The program statements corresponding to a candidate code block are read from the program database. Each of the input variables for each input statement and each of the program variables are represented in symbolic form as a symbolic memory value and transforming each program statement dependent on such an input variable into a symbolic expression. A trial set of inputs for each of the input statements is created by finding a solution to the symbolic expression comprising actual input values corresponding to each symbolic memory value using dynamic symbolic exeuction. An execution run of the computer program is performed using the trial set of inputs and analyzing results obtained from the execution run for coverage of the candidate code block. The trial set of inputs are stored into the test suite if coverage of the candidate code block was obtained.
机译:一种用于为计算机程序生成测试套件的方法和系统。该计算机程序包括程序语句和程序变量,包括至少一个具有一个或多个输入变量的输入语句,这些语句被分组为代码块并存储在程序数据库中。测试套件包含输入集。每个输入集对应于每个输入语句。从程序数据库中读取与候选代码块相对应的程序语句。每个输入语句的每个输入变量和每个程序变量都以符号形式表示为符号存储值,并将依赖于这种输入变量的每个程序语句转换为符号表达式。通过使用动态符号执行找到包含与每个符号存储值相对应的实际输入值的符号表达式的解,来创建每个输入语句的输入的试验集。使用试验输入集并分析从该执行运行中获得的结果来执行计算机程序的执行运行,以覆盖候选代码块。如果获得了候选代码块的覆盖范围,则将试验的输入集存储到测试套件中。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号