一种Web服务的测试数据自动生成方法  被引量:50

A Method of Automated Test Data Generation for Web Service

在线阅读下载全文

作  者:姜瑛[1,2] 辛国茂[1] 单锦辉[1] 张路[1] 谢冰[1] 杨芙清[1] 

机构地区:[1]北京大学信息科学技术学院软件研究所 [2]昆明理工大学信息工程与自动化学院

出  处:《计算机学报》2005年第4期568-577,共10页Chinese Journal of Computers

基  金:国家自然科学基金(60373003);国家"九七三"重点基础研究发展规划项目基金(2002CB312003);国家"八六三"高技术研究发展计划项目基金(2004AA112070)资助.

摘  要:软件测试是保证Web服务质量的重要技术手段.测试数据生成是Web服务测试的重要内容.测试数据的质量将直接影响Web服务测试的效率和成本.文章基于合约式设计的 Web服务测试技术,提出一种 Web服务的测试数据自动生成方法.首先根据WSDL文档采用随机法自动生成初始测试数据,然后使用合约变异技术进行测试数据的选择,据此可以生成一组达到一定合约变异充分度的有效测试数据,从而提高 Web服务的测试质量和效率.最后实现了一个Web服务的测试数据自动生成工具原型,并通过实验验证了方法的有效性.Software testing is one of the most important techniques used to assure the quality of Web Services at present. Test data generation is an important topic in Web Services testing. The quality of test data will influence the efficiency and cost during Web Services testing. Based on the design by contract testing technology for Web Services, this paper presents a method of automated test data generation for Web Services. Firstly, according to the description information and contracts in WSDL document of Web Services, the initial test data are generated automatically by random method. Then the test data are selected by means of contract mutation testing. The algorithms about initial test data generation and test data selection are presented. In order to improve the quality and efficiency of Web Services testing, this method can generate a test suite meeting a certain contract mutation score. Finally, a prototype has been developed on the Microsoft. NET platform. For the same Web Service with different contracts, the experiments are carried out on this prototype. The contract mutation score of generated test data is compared with the statement coverage score and condition coverage score. The results have shown that the method is effective in automated test data generation for Web Services.

关 键 词:WEB服务 软件测试 测试数据生成 合约 变异测试 

分 类 号:TP311[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象