摘要
Web测试是软件测试中较重要的一个分支,而要实现Web自动化测试则要求测试人员能熟练掌握自动化测试工具和编程语言。介绍免费开源的Web测试工具Selenium,以及流行的编程语言Python。根据自动化测试的原理,对网页元素的常用定位方式,如何对页面元素进行操作进行重点叙述。结合工作实际分析自动化测试的基本流程,即分析测试需求、编写测试用例、搭建测试环境、创建测试脚本、执行测试及测试结果分析。最后对自动化测试的实践进行总结和展望,为后续更好地开展测试工作奠定基础。
Web testing is an important branch of software testing.To realize web automation testing,testers are required to be proficient in automation testing tools and programming languages.This paper introduces selenium,a free and open source web testing tool,and the popular programming language Python.According to the principle of automation testing,it focuses on the common positioning methods of web page elements and how to operate the page elements.The author analyzes the basic process of automation testing in combination with actual work,that is,analyzing test requirements,writing test cases,setting up a test environment,creating test scripts,executing tests,and analyzing test results.Finally,the practice of automation testing is summarized and prospected to lay the foundation for better subsequent testing.
作者
方巍
吴伶琳
FANG Wei;WU Ling-lin(Taicang Senior High School of Jiangsu Province,Taicang 215411;School of Artificial Intelligence,Suzhou Chien-shiung Institute of Technology,Taicang 215411)
出处
《现代计算机》
2020年第34期91-94,共4页
Modern Computer
基金
江苏省青蓝工程(2019年)
江苏省2019年度高校哲学社会科学研究项目(No.2019SJA1377)。