计算机应用 ›› 2013, Vol. 33 ›› Issue (06): 1657-1745.DOI: 10.3724/SP.J.1087.2013.01657

• 计算机软件技术 • 上一篇    下一篇

坡度坡向量算程序蜕变测试方法

黄松1,2,丁瑞浩1,李辉1,2,姚奕1,2   

  1. 1. 解放军理工大学 指挥信息系统学院, 南京 210007
    2. 全军军事训练软件测评中心, 南京 210007
  • 收稿日期:2012-12-20 修回日期:2013-02-26 出版日期:2013-06-01 发布日期:2013-06-05
  • 通讯作者: 黄松
  • 作者简介:黄松(1970- ),男,江苏淮安人,教授,博士生导师,CCF高级会员,主要研究方向:系统软件测试、程序仿真;丁瑞浩(1988-),男,河南郑州人,硕士研究生,CCF会员,主要研究方向:软件测试;李辉(1974-),男,山东济南人,硕士,主要研究方向:软件工程、软件测试;姚奕(1981-),男,江苏南通人,讲师,博士,CCF会员,主要研究方向:软件测试。
  • 基金资助:

    国家863计划项目(2009AA01Z402);江苏省自然科学基金资助项目(BK2012059, BK2012060);解放军理工大学预研基金资助项目(20110202,20110210)

Research on metamorphic testing of slope and aspect calculating programs

HUANG SONG1,2,DING Ruihao1,LI Hui1,2,YAO Yi1,2   

  1. 1. Collage of Command Information System, PLA University of Science and Technology, Nanjing Jiangsu 210007, China
    2. PLA Military Software Testing and Evaluation Center, Nanjing Jiangsu 210007, China
  • Received:2012-12-20 Revised:2013-02-26 Online:2013-06-05 Published:2013-06-01
  • Contact: HUANG SONG
  • Supported by:

    ;The Natural Science Foundation of Jiangsu Province under Grant

摘要: 坡度、坡向量算是地理信息系统的主要功能之一。然而,由于截断误差、舍入误差以及误差传播的影响,导致测试判定难以获取。基于此,提出将蜕变测试应用于坡度、坡向量算程序的测试中,通过分析坡度、坡向量算程序功能的几何属性、数值计算特性以及具体实现算法等提出蜕变关系,并通过分析蜕变关系的适用范围,形成坡度坡向量算程序蜕变测试方法。最后,通过实例研究,验证了提出的蜕变关系在消除不同类型变异方面的有效性。实验结果表明,该方法可有效解决坡度、坡向量算程序的测试判定问题,同时也为解决地理信息系统中其他空间度量程序的测试判定问题提供了借鉴,进一步拓展了蜕变测试技术的应用范围。

关键词: 坡度, 坡向, 蜕变测试, 蜕变关系

Abstract: Slope and aspect calculating is a basic function of Geographic Information System (GIS). However, due to the existence of rounding and truncation errors, it is difficult to obtain the oracles of the implementation. In order to provide test oracles, this paper applied metamorphic testing technique into the testing of slope and aspected calculating programs, and designed several metamorphic relations by analyzing the geometric and numerical features, algorithm of slope and aspect calculating programs. It also analyzed the applicable range of these metamorphic relations, and formed the metamorphic testing method of slope and aspect calculating programs that was proved useful based on mutant testing. Our researches can not only be used as references for alleviating the oracle problem of other kinds of programs in GIS, but also help to promote the development of metamorphic testing technique.

Key words: slope, aspect, metamorphic testing, metamorphic relation

中图分类号: