摘要
针对Web应用需求频繁更改的问题,研究基于低耦合的Web自动化测试框架。实现通过将数据模块、控制模块、业务逻辑和结果显示模块相分离的分层测试框架,来降低测试脚本之间的耦合度,增强测试脚本的灵活性,提高测试脚本的覆盖率。该框架能够直接在浏览器中运行,支持多语言多平台,根据脚本之间的依赖最优化脚本执行流程的路径和进程的数量,实现对脚本执行的过程和状态进行跟踪和定位。通过精确定位跟踪脚本错误,实现基于Web的自动化测试,提高了测试效率和软件质量。
For the problem of frequent changes in Web applications requirements,we study the loose-coupling based automated Web test framework. Through the hierarchical testing framework which separates the data module,control module,and business logic and results display module,we achieve the reduction of the coupling degree between test scripts,the enhancement of the flexibility of test scripts,and the improvement in coverage of the test scripts. The framework can directly run on browsers and supports multi-language platform,it realises the tracking and positioning the process and the state of the scripts execution according to the path of the execution process of the relied best optimised script between the scripts and the number of the processes. By accurately positioning the scripts errors,we realise the Web-based automated test,and improve test efficiency and the software quality.
出处
《计算机应用与软件》
CSCD
北大核心
2014年第8期13-16,37,共5页
Computer Applications and Software
基金
国家自然科学基金项目(61202461)
关键词
自动化测试
低耦合
覆盖率
定位
Automated testing Loose-coupling Coverage Positioning