首页 | 本学科首页   官方微博 | 高级检索  
     

基于接口语义契约的Web服务测试数据生成
引用本文:侯可佳,白晓颖,陆皓,李树芳,周立柱. 基于接口语义契约的Web服务测试数据生成[J]. 软件学报, 2013, 24(9): 2020-2041
作者姓名:侯可佳  白晓颖  陆皓  李树芳  周立柱
作者单位:清华大学 计算机科学与技术系, 北京 100084;清华信息科学与技术国家实验室(筹), 北京 100084;清华大学 计算机科学与技术系, 北京 100084;清华信息科学与技术国家实验室(筹), 北京 100084;清华大学 计算机科学与技术系, 北京 100084;清华信息科学与技术国家实验室(筹), 北京 100084;南京陆军指挥学院 作战实验中心, 江苏 南京 210045;清华大学 计算机科学与技术系, 北京 100084;清华信息科学与技术国家实验室(筹), 北京 100084;中国酒泉卫星发射中心, 甘肃 酒泉 732750;清华大学 计算机科学与技术系, 北京 100084;清华信息科学与技术国家实验室(筹), 北京 100084
基金项目:国家自然科学基金(61073003);国家重点基础研究发展计划(973)(2001CB302505);北京市自然科学基金(4132062);清华大学自主科研计划
摘    要:测试是Web 服务质量保证的主要手段之一,测试自动化是降低测试代价的有效途径,测试数据生成是测试自动化研究的一个重要内容.提出采用本体及规则的知识描述语言,建立服务接口的语义契约模型(interface semantic contract,简称ISC),并探讨了基于ISC 的测试数据生成技术,给出了分区生成算法以及测试数据生成的模拟退火算法.实验结果表明,与随机测试相比,该方法能够采用10%的测试用例数量达到同样的测试覆盖率;在同样的测试用例数量上,最高可提高50%的测试覆盖率.

关 键 词:服务测试  数据生成  本体模型  OWL-S
收稿时间:2012-04-19
修稿时间:2012-10-19

Web Service Test Data Generation Using Interface Semantic Contract
HOU Ke-Ji,BAI Xiao-Ying,LU Hao,LI Shu-Fang and ZHOU Li-Zhu. Web Service Test Data Generation Using Interface Semantic Contract[J]. Journal of Software, 2013, 24(9): 2020-2041
Authors:HOU Ke-Ji  BAI Xiao-Ying  LU Hao  LI Shu-Fang  ZHOU Li-Zhu
Affiliation:Department of Computer Science and Technology, Tsinghua University, Beijing 100084, China;Tsinghua National Laboratory for Information Science and Technology, Beijing 100084, China;Department of Computer Science and Technology, Tsinghua University, Beijing 100084, China;Tsinghua National Laboratory for Information Science and Technology, Beijing 100084, China;Department of Computer Science and Technology, Tsinghua University, Beijing 100084, China;Tsinghua National Laboratory for Information Science and Technology, Beijing 100084, China;Operation Research Center, Nanjing Army Command College, Nanjing 210045, China;Department of Computer Science and Technology, Tsinghua University, Beijing 100084, China;Tsinghua National Laboratory for Information Science and Technology, Beijing 100084, China;Jiuquan Satellite Launch Center, Jiuquan 732750, China;Department of Computer Science and Technology, Tsinghua University, Beijing 100084, China;Tsinghua National Laboratory for Information Science and Technology, Beijing 100084, China
Abstract:Testing is one of the primary methods for Web service quality control. Test automation is necessary to enhance test productivity and quality while reducing test effort. Test data generation is a critical issue of automated testing. The paper proposes a method called interface semantic contract (ISC) for modeling services' exposed functionalities using ontology and rule language. Algorithms are developed to generate input partitions and test data based on ISC. Case studies are exercised to illustrate the proposed approach. The results show that compared with conventional random testing, the proposed approach can enhance test coverage by 50% with the same number of test cases, and reduce test effort by 90% to reach the same test coverage.
Keywords:service testing  date generation  ontology model  OWL-S
点击此处可从《软件学报》浏览原始摘要信息
点击此处可从《软件学报》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号