一种面向用户需求的Web服务测试方法  被引量:18

A Testing Method for Web Services Focusing on User Requirements

在线阅读下载全文

作  者:许蕾[1,2] 李言辉[1,2] 陈林[1,2] 宫敏[2] 颜友军[2] 徐宝文[1,2] 

机构地区:[1]南京大学计算机软件新技术国家重点实验室,南京210023 [2]南京大学计算机科学与技术系,南京210023

出  处:《计算机学报》2014年第3期512-521,共10页Chinese Journal of Computers

基  金:国家"九七三"重点基础研究发展规划项目基金(2014CB340702);国家自然科学基金(61272080;61170071;61003020;61021062)资助~~

摘  要:Web服务对外只提供接口文档,可利用生成测试用例的信息不够充分,现有方法所生成的用例冗余度高、查错能力有限.文中基于现有Web服务功能和用户协同推荐构建用户需求模型,再使用领域知识和使用场景生成测试用例,并通过实验演示过程,实验结果表明该文方法生成组合Web服务测试用例的有效性.以用户需求驱动组合Web服务测试,既能保证所选服务真正符合用户需求,又可根据用户使用场景来丰富测试需求信息,结合领域知识启发式生成测试用例.This paper plans to add user requirement information into test case generations for Web services because of the existed situation, i. e. , Web services only provide interface documents for outsides, and the information for test case generation used by testers (except developers) is not enough. At present, the existed test case generation methods have high redundant and low efficiency to find bugs. This paper firstly set up user requirement model by clustering the existed WSDL files of Web services and selecting the exact Web services with other users' collaborative recommendation, and then generated test cases with domain knowledge and usage scenes (basic scene and optional scenes) by the extension of user requirement model and the selection of paths from the entry node to the exit node; finally, the workflow and case study indicated the efficiency of our method was better than the method which generated test cases based on variables' types in the WSDL files. Therefore, testing combinational Web services focused on user requirements can ensure the selected Web services matching user requirements, and the usage scenes also can enrich the information for testing, thus the test cases for Web services can be heuristically and more efficiently generated combining with the domain knowledge.

关 键 词:组合WEB服务 用户需求 测试用例生成 使用场景 软件测试中图法 

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

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

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