首页> 外国专利> Test data generation program, test data generation device and test data generation method

Test data generation program, test data generation device and test data generation method

机译:测试数据生成程序,测试数据生成装置和测试数据生成方法

摘要

PROBLEM TO BE SOLVED: To automatically generate the data of descriptions to be input to a constraint solver in which the path conditions of a processing path are correctly described in the case of generating test data for making the program of language having the concept of digits execute a specific processing path.;SOLUTION: A constraint description generation part 120 generates the data of descriptions to be input to a constraint solver from the information of conditions for making a program execute a specific processing path. In this case, the constraint description generation part 120 defines variables for comparison corresponding to numeric type of variables, and as for the constraint of the comparison conditions between the numeric type of variables and character string type of variables, sets constraints using the variables for comparison instead of the numeric type of variables. Also, when there exist the comparison conditions of variables whose digit numbers are different, the constraint description generation part 120 compensates the digits of the variables whose digit number is smaller to match the number of digits. As for the numeric type of variables, the constraint description generation part 120 performs setting of compensating "0" from the head, and as for the character string type of variables, performs setting of compensating a blank from the tail.;COPYRIGHT: (C)2014,JPO&INPIT
机译:解决的问题:在生成测试数据以使具有数字概念的语言程序执行的测试数据的情况下,自动生成要输入到约束求解器的描述数据,其中正确描述了处理路径的路径条件解决方案:约束描述生成部分120从用于使程序执行特定处理路径的条件的信息生成要输入到约束求解器的描述的数据。在这种情况下,约束条件描述生成部120定义与变量的数字类型相对应的用于比较的变量,并且对于变量的数字类型和变量的字符串类型之间的比较条件的约束,使用用于比较的变量来设置约束。而不是数值类型的变量。而且,当存在位数不同的变量的比较条件时,约束描述生成部分120补偿位数较小的变量的位数以匹配位数。约束条件描述生成部120对变量的数字类型进行从头开始的补偿“ 0”的设定,对于变量的字符串类型,进行对从尾部开始的空白的补偿的设定。 )2014,JPO&INPIT

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号