计算机科学 ›› 2017, Vol. 44 ›› Issue (11): 221-225.doi: 10.11896/j.issn.1002-137X.2017.11.033

• 第六届全国软件分析测试与演化学术会议 • 上一篇    下一篇

面向不同数据模式的测试用例检索方法

李园园,黄松,惠战伟,李留义   

  1. 中国电子科技集团公司第三十二研究所 上海201800,中国人民解放军理工大学指挥信息系统学院 南京210007;全军军事训练软件测评中心 南京 210007,中国人民解放军理工大学指挥信息系统学院 南京210007,中国人民解放军理工大学指挥信息系统学院 南京210007
  • 出版日期:2018-12-01 发布日期:2018-12-01
  • 基金资助:
    本文受江苏省自然科学基金项目(BK20141072,BK20160769),解放军理工大学预研基金项目(20110202,0)资助

Test Case Retrieval Method for Different Data Model

LI Yuan-yuan, HUANG Song, HUI Zhan-wei and LI Liu-yi   

  • Online:2018-12-01 Published:2018-12-01

摘要: 软件测试的核心是设计和执行测试用例。为了提高软件测试的效率,实现不同单位测试用例的共享和复用,提出面向不同数据模式的测试用例检索方法。该方法首先对测试用例进行刻面分类和描述,提出测试用例的刻面分类模型并将其实例化,为测试用例的检索提供线索;然后,在实例化测试用例刻面分类模型的基础上提出测试用例索引树,把测试用例组织成有利于用户检索的结构;最后,在进行面向不同数据模式的测试用例检索时,通过检索条件查询树与测试用例索引树的匹配和不同异构数据库中测试用例关键字的匹配,从不同的异构数据库中检索出符合用户需求的测试用例。通过实验验证了该方法在实际应用中的可行性和有效性,为测试用例的共享和复用奠定了基础,提高了软件测试的效率。

关键词: 异构数据库,用例复用,用例检索,刻面分类

Abstract: The core of software testing is to design and execute test cases.In order to improve the efficiency of software testing,retrieve and share the test cases in different departments,this paper proposed the retrieval method of test case for different data model.Firstly,the test case is facetedly classified and descripted in this method,and the test case facet classification model and instantiates are proposed to provide the clues for the test case retrieval.Secondly,the test case index tree is proposed based on the instantiation of test case facet classification model,and the test cases are organized into a structure which is beneficial to the user’s retrieve.Lastly,at the time of test case retrieval for different data mo-del,through the matching of query tree and the test case index tree and keyword retrieval,it retrieves the test cases that meet the requirement from different heterogeneous databases.The experiment proves the feasibility and effectiveness of the retrieval method proposed in this paper in the practical application,which lays the foundation of test case sharing and reuse,and improves the efficiency of software testing.

Key words: Heterogeneous database,Test case reuse,Test case retrieval,Faceted classification

[1] MA L,XIE B,YANG F Q.The Unified Facet-Based Method to Retrieve Component in Multi-Library[J].Acta Electronica Sinica,2002,30(12a):2149-2152 .(in Chinese) 马亮,谢冰,杨芙清.多构件库统一刻面检索机制[J].电子学报,2002,30(12a):2149-2152.
[2] LI W W,DUAN M Y.A Study on the Software Test Case Reu-se Model of Featuire Oriented[C]∥Proceedings of 2014 IEEE 3rd International Conference on Cloud Computing and Intelligence Systems.2014:241-246.
[3] YIN P.Study on reusable test case[J].Computer Applications,2010,30(5):1309-1311.(in Chinese) 尹平.可复用测试用例研究[J].计算机应用,2010,30(5):1309-1311.
[4] ZHANG J,TONG W Q,CAI L Z.Reusing Test Case Based on the Function Point[J].Journal of Donghua University(English Edition),2014,31(4):441-446.
[5] SHANG D J,HAO K G,GE W,et al.A Study of Test Cases and Reuse in Software Testing[J].Computer Technology and Deve-lopment,2006,6(1):69-72.(in Chinese) 尚冬娟,郝克刚,葛玮,等.软件测试中的测试用例及复用研究[J].计算机技术展,2006,6(1):69-72.
[6] JIANG H,NIE L,SUN Z,et al.ROSF:Leveraging Information Retrieval and Supervised Learning for Recommending Code Snippets[C]∥IEEE Transactions on Services Computing.1999.
[7] LIU X Q,YANG G X,CAI L Z,et al.Ontology D decription and Retrieval of Test Case Based on Reuse Behaviour[J].Computer Applications and Software,2011,28(10):65-68.(in Chinese) 刘小齐,杨根兴,蔡立志,等.基于复用行为的测试用例本体描述和检索[J].计算机应用与软件,2011,28(10):65-68.
[8] PENG X,ZHAO W G,XIAO J.Description and R etrieval of Component Based on Ontology[J].Journal of Nanjing University,2005,41(z1):470-476.(in Chinese) 彭鑫,赵文耕,肖军.基于本体的构件描述和检索[J].南京大学学报,2005,41(z1):470-476.
[9] 马锟.基于刻面分类模式的构件检索技术研究[D].大连:大连海事大学,2006.
[10] ZHANG J G,ZHANG W S,ZHANG X G,et al.Research on Retrieving Method for Facet Classified Component Based on Term- Space Coding[J].Computer Engineering and Applications,2006,42(17):153-156.(in Chinese) 张聚广,张维石,张秀国,等.基于空间编码的刻面分类构件检索方法研究[J].计算机工程与应用,2006,42(17):153-156.
[11] CHEN Y,SHEN J.Description and Retrieval of ComponentBasedo on Ontology[J].Computer Applications and Software,2007,24(7):30-32.(in Chinese) 陈颖,沈军.基于本体的构件描述与检索[J].计算机应用与软件,2007,24(7):30-32.
[12] SHENG Y F,ZHANG W S,ZHANG X G,et al.Research on Transformation Mechanism of Component Retrieval Condition in Multi-Library[J].Computer Engineering and Applications,2006,42(25):23-26.(in Chinese) 盛义芳,张维石,张秀国,等.面向多构件库的检索条件转换机制研究[J].计算机工程与应用,2006,42(25):23-26.
[13] 岳慧敏.基于语义描述的构件检索技术研究[D].青岛:中国海洋大学,2012.
[14] GAO Q,ZHANG X M,BIAN X F.The Study of Faceted Classification Scheme of the Specific Domain-Based RSL[J].Compu-ter Engineering and Applications,2003,39(30):82-84.(in Chinese) 高强,张晓明,边小凡.基于特定领域构件库系统中刻面分类模式的研究[J].计算机工程与应用,2003,39(30):82-84.

No related articles found!
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
[1] 雷丽晖,王静. 可能性测度下的LTL模型检测并行化研究[J]. 计算机科学, 2018, 45(4): 71 -75, 88 .
[2] 夏庆勋,庄毅. 一种基于局部性原理的远程验证机制[J]. 计算机科学, 2018, 45(4): 148 -151, 162 .
[3] 厉柏伸,李领治,孙涌,朱艳琴. 基于伪梯度提升决策树的内网防御算法[J]. 计算机科学, 2018, 45(4): 157 -162 .
[4] 王欢,张云峰,张艳. 一种基于CFDs规则的修复序列快速判定方法[J]. 计算机科学, 2018, 45(3): 311 -316 .
[5] 孙启,金燕,何琨,徐凌轩. 用于求解混合车辆路径问题的混合进化算法[J]. 计算机科学, 2018, 45(4): 76 -82 .
[6] 张佳男,肖鸣宇. 带权混合支配问题的近似算法研究[J]. 计算机科学, 2018, 45(4): 83 -88 .
[7] 伍建辉,黄中祥,李武,吴健辉,彭鑫,张生. 城市道路建设时序决策的鲁棒优化[J]. 计算机科学, 2018, 45(4): 89 -93 .
[8] 刘琴. 计算机取证过程中基于约束的数据质量问题研究[J]. 计算机科学, 2018, 45(4): 169 -172 .
[9] 钟菲,杨斌. 基于主成分分析网络的车牌检测方法[J]. 计算机科学, 2018, 45(3): 268 -273 .
[10] 史雯隽,武继刚,罗裕春. 针对移动云计算任务迁移的快速高效调度算法[J]. 计算机科学, 2018, 45(4): 94 -99, 116 .