| 本文已被:浏览 4676次 下载 7313次 |
 码上扫一扫! |
|
|
| 基于接口语义契约的Web服务测试数据生成 |
|
侯可佳1,2, 白晓颖1,2, 陆皓1,2,3, 李树芳1,2,4, 周立柱1,2
|
|
1.清华大学 计算机科学与技术系, 北京 100084;2.清华信息科学与技术国家实验室(筹), 北京 100084;3.南京陆军指挥学院 作战实验中心, 江苏 南京 210045;4.中国酒泉卫星发射中心, 甘肃 酒泉 732750
|
|
| 摘要: |
| 测试是Web 服务质量保证的主要手段之一,测试自动化是降低测试代价的有效途径,测试数据生成是测试自动化研究的一个重要内容.提出采用本体及规则的知识描述语言,建立服务接口的语义契约模型(interface semantic contract,简称ISC),并探讨了基于ISC 的测试数据生成技术,给出了分区生成算法以及测试数据生成的模拟退火算法.实验结果表明,与随机测试相比,该方法能够采用10%的测试用例数量达到同样的测试覆盖率;在同样的测试用例数量上,最高可提高50%的测试覆盖率. |
| 关键词: 服务测试 数据生成 本体模型 OWL-S |
| DOI:10.3724/SP.J.1001.2013.04366 |
| 分类号: |
| 基金项目:国家自然科学基金(61073003);国家重点基础研究发展计划(973)(2001CB302505);北京市自然科学基金(4132062);清华大学自主科研计划 |
|
| Web Service Test Data Generation Using Interface Semantic Contract |
|
HOU Ke-Jia1,2, BAI Xiao-Ying1,2, LU Hao1,2,3, LI Shu-Fang1,2,4, ZHOU Li-Zhu1,2
|
|
1.Department of Computer Science and Technology, Tsinghua University, Beijing 100084, China;2.Tsinghua National Laboratory for Information Science and Technology, Beijing 100084, China;3.Operation Research Center, Nanjing Army Command College, Nanjing 210045, China;4.Jiuquan Satellite Launch Center, Jiuquan 732750, 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. |
| Key words: service testing date generation ontology model OWL-S |