摘要
针对传统Web测试用例生成方法因缺少权限性和时序性考虑而产生的误判断问题,提出结合基于统一建模语言(UML)活动图与状态图,根据不同用户权限及交互活动流程分析Web页面链接而生成测试用例的方法。该方法生成含信息元素的扩展状态图,通过对扩展状态图的转换及相应路径的时序重排得到最终具有权限与时序性质的Web链接测试用例。通过实验分析,与缺少权限性和时序性考虑的Web测试用例生成方法相比,该方法有效地避免了测试中的误判断,在测试覆盖率、正确率及测试效率三方面均有明显的优势。实验结果表明,该方法有效地提高了Web测试的测试效率,增强了测试的可靠性与可行性。
Aiming at the problem of erroneous judgement resulted from the lack of permission and time sequence considerations in traditional Web test case generation, a method combining the Unified Modeling Language (UML) activity diagram and statechart diagram was proposed, which generated testing cases according to the different users' permissions and interaction process analysis of Web page links. This proposed method generated extended statechart diagram containing information elements, got the final Web link testing cases with consideration of permission and sequence through transforming the extended statechart diagram and reordering the corresponding paths. In the comparison with the traditional Web testing case generation method which lacked the permission and time sequence considerations, this method avoids the erroneous judgement effectively and has obvious advantages in coverage, accuracy and efficiency. The experimental results show that the proposed method can improve the efficiency, reliability and feasibility of the Web test.
出处
《计算机应用》
CSCD
北大核心
2015年第7期2009-2014,共6页
journal of Computer Applications
基金
国家自然科学基金资助项目(61050003)
陕西省教育厅项目(11JK1037)
关键词
统一建模语言
权限性
时序性
WEB测试
链接测试
Unified Modeling Language (UML)
permission
time sequence
Web test
link test