期刊文献+

面向Web服务器端敏感路径的客户端扩展有限状态机测试生成 被引量:1

Client-side extended finite state machine test case generation based on the server-side sensitive path coverage for web applications
下载PDF
导出
摘要 为对Web应用进行有效的测试,本文提出了一种面向Web应用服务器端敏感路径覆盖的客户端扩展有限状态机测试用例生成方法。针对Web应用客户端扩展有限状态机模型,以Web应用服务器端的敏感路径覆盖为目标,利用Memetic演化算法实现客户端扩展有限状态机模型的测试用例自动生成,对Web应用进行测试。同时,为解决由模型生成的抽象测试用例不可直接执行的问题,提出了一种基于Selenium的测试脚本自动构建方法,通过分析扩展有限状态机模型迁移的特征,利用谱聚类算法实现迁移聚类,依据映射规则将聚类之后的迁移映射为测试脚本,形成迁移脚本库,将抽象测试用例转换为可执行的测试用例。实验结果表明:基于Selenium的测试脚本自动构建能有效地将抽象测试用例转化为可执行的测试脚本;面向Web服务器端敏感路径的客户端扩展有限状态机测试用例生成方法能有效地实现Web服务器端敏感路径的覆盖,对服务器端的敏感路径进行测试。 To enable an effective security test for web applications,we propose a client-side extended finite state machine(EFSM)test case generation approach based on the server-side sensitive path coverage for web applications.According to the EFSM model of clients,this approach takes the server-side sensitive path coverage as a goal and uses the memetic evolutionary algorithm to realize the automatic generation of abstract test cases for web application.Moreover,to solve the unexecutable problem of abstract test cases generated by the model,an automatic construction method of test scripts based on Selenium is proposed.This method proposes an automatic test-script construction method based on Selenium.It employs the spectral clustering algorithm to realize group transitions by analyzing the feature of transitions on the EFSM model.Then,the transition after grouping is mapped onto a test script,forming a script library.As a result,abstract test cases can be converted into actual executable test cases.Experimental results show that the selenium-based automated test-script construction method can solve unexecutable abstract test cases,and the test case generation approach can effectively achieve the server-side sensitive path coverage.
作者 赵瑞莲 郭小红 王微微 尚颖 ZHAO Ruilian;GUO Xiaohong;WANG Weiwei;SHANG Ying(School of Information Science and Technology, Beijing University of Chemical Technology, Beijing 100029, China)
出处 《哈尔滨工程大学学报》 EI CAS CSCD 北大核心 2020年第6期884-891,共8页 Journal of Harbin Engineering University
基金 国家自然科学基金项目(61672085,61472025,61702029)。
关键词 软件测试 Web敏感路径 路径覆盖 扩展有限状态机模型 MEMETIC算法 聚类 测试用例生成 测试脚本生成 software testing web sensitive path path coverage extended finite state machine(EFSM)model memetic algorithm clustering test case generation test script generation
  • 相关文献

参考文献3

二级参考文献51

  • 1许蕾,徐宝文.Web应用测试框架研究[J].东南大学学报(自然科学版),2004,34(6):751-755. 被引量:14
  • 2周晓宇,许蕾,徐宝文,陈火旺.Web应用的自动测试[J].计算机科学,2005,32(1):125-127. 被引量:8
  • 3易国洪,卢炎生.基于EFSM模型的等价类测试[J].计算机科学,2007,34(1):281-284. 被引量:7
  • 4舒挺,魏仰苏,吴柏青,孟兆航.EFSM可执行状态验证序列的生成[J].北京邮电大学学报,2007,30(2):84-88. 被引量:8
  • 5胡蓉,缪淮扣,刘焕洲.一种基于Web软件集成测试的建模方法[J].计算机科学,2007,34(6):253-257. 被引量:5
  • 6BOURHFIR C, DSSOULI R, ABOULHAMID E, et al. Automatic executable test case generation for extended finite state machine protocols[ C]// IWTCS'97: International Workshop for Protocol Test Systems. Cheju Island, Korea:[s. n. ], 1997:75 -90.
  • 7KALAJI A, HIERONS R M, SWIFT S. Automatic generation of test sequences form EFSM models using evolutionary algorithms [ R]. London: Brunel University, School of Information Systems, Computing and Mathematics, 2008.
  • 8LEFTICARU R, IPATE F. Automatic state-based test generation using genetic algorithms[ C]//SYNASC '07: Proceedings of the Ninth International Symposium on Symbolic and Numeric Algorithms for Scientific Computing. Washington, DC: IEEE Computer Society, 2007: 188 - 195.
  • 9ZHAO R, HARMAN M, LI Z. Empirical study on the efficiency of search based test generation for EFSM models [ C]//ICSTW: Software Testing, Verification, and Validation Workshops. Washington, DC: IEEE Computer Society, 2010:222 -231.
  • 10YU B, QIN Y M, LI F, et al. Tabu search and genetic algorithm for generating test data of class testing [ C]// International Conference on Information Engineering and Computer Science. Piscataway, NJ: IEEE, 2009:1-6.

共引文献24

同被引文献14

引证文献1

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部