首页 | 官方网站   微博 | 高级检索  
     

面向测试生成的ASM模型约简研究
引用本文:杨羊,何柳柳,尚颖,李征.面向测试生成的ASM模型约简研究[J].计算机工程与科学,2018,40(6):1084-1092.
作者姓名:杨羊  何柳柳  尚颖  李征
作者单位:(北京化工大学信息科学与技术学院,北京 100029)
基金项目:国家自然科学基金(61170082,61472025,61672085);教育部新世纪优秀人才计划项目(NCET 12 0757)
摘    要:基于模型的Web应用程序测试是软件测试的一个重要方法。ASM模型从源码解析的角度,基于Web应用程序表示层建立模型,描述了Web应用程序的交互性、动态性和低耦合性。基于ASM模型的测试用例生成,考虑用户的非预期行为,在主要路径的基础上,通过添加无效访问状态和无效迁移路径,扩充测试用例。然而,随着Web应用程序规模的扩大,无效访问状态和无效迁移路径的增加导致测试用例空间爆炸。在研究ASM模型的基础上,通过定义基于ASM模型测试生成的等价迁移和等价状态,合并迁移和状态,从而有效地对ASM模型进行约简,减少了无效访问状态和无效迁移路径的数量,实现测试用例空间约减。 对一个实际Web应用程序系统的评估结果表明,基于模型约简的测试用例优化,有效约减了74.38%的测试用例空间,并且对原子段的覆盖率和错误检测数目没有产生影响。

关 键 词:ASM模型  状态空间爆炸  模型约简  测试用例空间约减  
收稿时间:2016-11-08
修稿时间:2018-06-25

ASM reduction for test generation
YANG Yang,HE Liu liu,SHANG Ying,LI Zheng.ASM reduction for test generation[J].Computer Engineering & Science,2018,40(6):1084-1092.
Authors:YANG Yang  HE Liu liu  SHANG Ying  LI Zheng
Affiliation:(College of Information Science & Technology,Beijing University of Chemical Technology,Beijing 100029,China)
Abstract:Model based web application testing is a crucial approach in software testing. The ASM model is based on the presentation layer of web applications, and presents interactive, dynamic and low coupling features of web applications via source code analysis. The test case generation based on the ASM model, allowing for testing the unexpected behavior of users, is expanded by adding the states of invalid access and the edges of invalid transition to the primary path. However, with the expansion of web applications, the space of test cases is exploded due to the increase of the states of invalid access and the edges of invalid transition. To solve the problem, the ASM model is reduced by merging the equivalent states and equivalent transitions, which are defined for ASM based test generation through the research on the ASM. In this way, the states of invalid access and the edges of invalid transition are consequently reduced, and thus the test case space is effectively decreased. Experiments on a real world web application show that the test case space of the ASM model is reduced by 74.38% without decreasing the coverage of atomic sections and the number of detected errors.
Keywords:ASM model  state space explosion  model reduction  test case reduction  
点击此处可从《计算机工程与科学》浏览原始摘要信息
点击此处可从《计算机工程与科学》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司    京ICP备09084417号-23

京公网安备 11010802026262号