吉林大学学报(理学版) ›› 2020, Vol. 58 ›› Issue (6): 1429-1435.

• • 上一篇    下一篇

一种基于梯度下降算法的蜕变关系生成方法

穆翔宇1, 范钰1, 李苏吉1,2, 张鹏1, 刘磊1   

  1. 1. 吉林大学 计算机科学与技术学院, 长春 130012; 2. 吉林大学 口腔医院, 长春 130021
  • 出版日期:2020-11-18 发布日期:2020-11-26
  • 通讯作者: 李苏吉 lisuji@jlu.edu.cn

Method of Generating Metamorphic Relationship Based on Gradient Descent Algorithm

MU Xiangyu1, FAN Yu1, LI Suji1,2, ZHANG Peng1, LIU Lei1   

  1. 1. College of Computer Science and Technology, Jilin University, Changchun 130012, China;
    2. Hospital of Stomatology, Jilin University, Changchun 130021, China
  • Online:2020-11-18 Published:2020-11-26

摘要: 针对当前蜕变关系构造多数依赖测试人员测试程序时所在领域知识, 存在局限性和高成本的问题, 提出一种新的蜕变关系生成方法. 该方法将蜕变关系的构建与梯度下降算法相结合, 通过分析大量测试用例及其输出之间的数值关系生成对应的蜕变关系. 对比实验结果表明, 该方法可有效降低测试人员对相关领域知识的依赖性.

关键词: 蜕变测试, 软件测试, 梯度下降算法

Abstract: Aiming at the problem that the construction of the current metamorphic relationship mostly depended on the tester’s knowledge in the domain of the test program, which had limitations and high cost, we proposed a method of new generating metamorphic relationship. The method combined the construction of the transformation relationship with the gradient descent algorithm, and generated the corresponding transformation relationship by analyzing the numerical relationship between a large number of test cases and their outputs. The experimental results show that the method can effectively reduce the dependence of testers on knowledge in related fields.

Key words: metamorphic testing, software testing, gradient descent algorithm

中图分类号: 

  • TP311