web自动化环境配置

什么是Web自动化测试?

简单来说就是让程序代替人为验证Web程序功能的过程

什么Web项目适合做自动化?

1.需求变动不频繁的

2.时间周期长的项目

3.需要回归测试的项目

 

selenium IDE安装+fireBug安装(推荐)

fireBug作用:简单来说就是定位元素

selenium相当于录制用户操作,并且重复用户操作

selenium IDE导出python(其他)语言

文件-----export Test Case----python/unittest/WebDriver 

WebDriver环境搭建

python环境+pip安装:参考https://www.cnblogs.com/tsbc/p/4080306.html

selenium使用pip安装,查看,卸载

安装:pip install selenium==版本,也可以直接pip install selenium 默认安装最新版本

查看:pip show selenium 用来查看selenium版本

卸载:pip uninstall selenium 用来卸载已经安装的selenium

浏览器安装+驱动安装

Chrome浏览器安装https://pc.qq.com/detail/1/detail_2661.html

驱动安装注意一定要对应浏览器的版本:https://chromedriver.storage.googleapis.com/index.html

原文地址:https://www.cnblogs.com/xxxyang/p/11826446.html