基于Selenium的Web软件自动化测试  被引量:26

Automation Testing of Web Software Based on Selenium

在线阅读下载全文

作  者:姜文[1] 刘立康[1] JIANG Wen;LIU Li-kang(School of Telecommunication Engineering,Xidian University,Xi'an 710071,China)

机构地区:[1]西安电子科技大学通信工程学院,陕西西安710071

出  处:《计算机技术与发展》2018年第9期47-52,58,共7页Computer Technology and Development

基  金:国家部委基础科研计划;国防预研基金项目(A1120110007)

摘  要:随着互联网技术和云计算技术的发展,很多软件产品都通过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.

关 键 词:WEB软件 自动化测试 测试脚本 SELENIUM PYTHON 

分 类 号:TP311.5[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象