摘要
随着互联网技术和云计算技术的发展,很多软件产品都通过Web页面来实现客户端操作。Web软件的开发与测试已经成为软件开发过程中的重要组成部分。在常见的Web自动化测试工具中,Selenium是一款开源的、表现非常优秀的自动化测试工具。Selenium支持多种类型浏览器,可在多种操作系统上运行,支持多种语言的测试脚本。结合Web软件项目自动化测试工作实践,介绍了Web软件的开发技术和软件功能测试点;叙述了测试软件开发过程;详细叙述了基于Selenium与Python的自动化测试软件开发,其主要内容包括搭建测试环境、编写测试脚本、基于测试库框架优化测试脚本、自动化脚本连跑。最后介绍了测试结果分析。工作实践表明,采用Selenium进行Web软件测试,提高了测试效率,减少了测试工程师大量的重复测试验证工作。
With the development of Internet technology and cloud computing technology,a lot of software products have achieved clientoperation through the Web pages. Web software development and testing has become an important part of the software developmentprocess. In the common Web test automation tools,Selenium is an open source automation tool with excellent performances,which sup-ports a variety of browsers,runs on multiple operating systems and supports test scripts in multiple languages. In combination with prac-tice of Web software test automation project,we introduce the development of Web software technology and software function test points,and describe the testing software development process. In addition,we describe the test automation software development based on Sele-nium and Python in detail,including setting up test environment,writing test scripts,optimizing test scripts based on the test library frame-work and running automation scripts. Finally we introduce the test result analysis. Practice shows that using Selenium for Web softwaretest can improve testing efficiency and reduce a lot of repetition test validation for engineers.
作者
姜文
刘立康
JIANG Wen;LIU Li-kang(School of Telecommunication Engineering,Xidian University,Xi'an 710071,China)
出处
《计算机技术与发展》
2018年第9期47-52,58,共7页
Computer Technology and Development
基金
国家部委基础科研计划
国防预研基金项目(A1120110007)