Web应用程序搜索功能的组合测试  被引量:1

Combinatorial Testing of Search Function in Web Application

在线阅读下载全文

作  者:吕成成 张龙[2] 邓茜 曾凡平[1,3] 严俊[2] 张健[2] LV Chengcheng;ZHANG Long;DENG Xi;ZENG Fanping;YAN Jun;ZHANG Jian(Department of Computer Science and Technology,University of Science and Technology of China,Hefei 230026,China;State Key Laboratory of Computer Science,Institute of Software,Chinese Academy of Sciences,Beijing 100190,China;Key Lab of Computing and Communication Software of Anhui Province,Hefei 230026,China)

机构地区:[1]中国科学技术大学计算机科学与技术系,合肥230026 [2]中国科学院软件研究所计算机科学国家重点实验室,北京100190 [3]安徽省计算与通讯软件重点实验室,合肥230026

出  处:《计算机科学与探索》2019年第11期1839-1851,共13页Journal of Frontiers of Computer Science and Technology

基  金:中国科学院前沿科学重点项目No.QYZDJ-SSW-JSC036;国家自然科学基金No.61772487;国家重点研发计划No.2018YFB0803400~~

摘  要:为了方便用户查询感兴趣的资源,许多Web应用程序会提供搜索功能。如果搜索功能存在故障,将会导致Web应用程序的功能异常,甚至会引发安全问题,因而需要对其进行充分的测试。可以使用组合测试的方法生成测试用例测试Web应用程序的搜索功能,其中每一个测试用例是由特殊字符组成的字符串。对于引起系统错误的测试用例,使用组合测试错误定位的方法找到系统错误是由哪些字符组合引起的。使用该方法对学校、政府和事业单位的96个网站进行了测试,发现其中23个网站在搜索某些特殊字符组合时,会引起服务器错误响应。错误定位结果表明,56%的服务器错误响应是由"%""<""’""\"和其他字符的组合引起的。In order to facilitate users to find resources of interest,many Web applications may provide search function.If there is a failure in the search function,the Web application will run abnormally and even security problems will be caused.So the search function needs to be fully tested.This paper uses the method of combinatorial testing to generate test cases to test the search function of Web application,where each test case is a string of special characters.For test cases that can cause server errors,this paper uses the method of fault location based on combinatorial testing to find the combinations of characters that can cause server errors.This paper tests 96 websites,including schools,governments and institutions,and it is found that 23 of these sites will meet a server error when searching for some special combinations of characters.The experimental result of fault location indicates that 56%of server errors are caused by the combinations of“%”“<”“’”“\”and other characters.

关 键 词:WEB测试 组合测试 错误定位 

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

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

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