摘要
随着软件开发项目的日益庞大,自动化测试技术的重要性日益突出。自动化测试技术的出现,大大提高了软件测试的效率和测试人员的积极性。但是自动化测试,尤其是网页自动化测试还存在不少的缺陷。分析了网页自动化测试中存在的难点,通过对同类软件的分析,提出了解决问题的指导思想和设计原则,并实现了一个网页自动化测试框架—NetAuto。NetAuto在开源项目Selenium的基础上,引入了对象库的概念,实现了测试脚本和测试数据的分离,并通过引入日志,报表,扩展接口等提高了测试的效率。通过实际的应用证明,NetAuto可以极大地提高测试工作的效率,尤其对于回归测试,可以完全替代人工。
With increasingly larger of software projects,the importance of automated testing technology becomes growing prominent.The emergence of automated testing technology has greatly enhanced software testing efficiency and tester's enthusiasm.However,there are still quite a few shortcomings in automated testing,especially the automated testing for webpage.In this article we analyse the difficulties existing in webpage automated testing,and propose the guiding idea and design principle to the solving of the problems through analysing the similar software.Furthermore,we introduce the implementation of a webpage automated testing framework—NetAuto.Based on the open source project Selenium,NetAuto introduces a concept of object library,achieves the detachment of scripts and data,improves the efficiency of automated testing through introducing logs,tables and extended interfaces,etc.In real application,it proves that NetAuto can significantly improve testing efficiency,especially in regression testing,and can completely replace artificial work.
出处
《计算机应用与软件》
CSCD
北大核心
2012年第9期167-170,211,共5页
Computer Applications and Software
关键词
自动化测试
对象库
数据脚本分离
扩展接口
Automated testing ,Object library, Detachment of script and data ,Extended interface