摘要
蜕变测试中的路径覆盖准则在实际应用中难以实现。文中利用路径相似度对程序进行分组,先测试每个分组程序的相同路径部分,在分组程序中利用分组程序的特殊性质寻找蜕变关系。以三角形面积计算程序为例进行分析,实验结果表明:文中方法能有效提高测试的效率,相比于针对整体程序的蜕变关系,文中的蜕变关系寻找方法在程序错误检测方面更加高效,且能更迅速定位到程序的错误路径。
In practical application,path-coverage criterion in metamorphic testing is difficult to achieve.This paper uses the path similarity to group which can reduce the repetition rate testing and running of the redundant path,uses the special nature of the group to find metamorphic relation which can find more metamorphic relations in the group.Triangle area calculation program as an example for analysis.The results show that the method in this paper can improve the efficiency of the test more effectively.Compared to the metamorphic relation pointing at the overall procedure,the ways of finding metamorphic relation in this paper are more efficient in the mistake detection and quicker location in the wrong path of the procedure.
出处
《计算机与数字工程》
2016年第11期2218-2223,2235,共7页
Computer & Digital Engineering
关键词
蜕变测试
蜕变关系
分组
错误定位
metamorphic testing
metamorphic relation
grouping
fault localization