1 环境准备
1 ui 自动化作用
- 少数核心用例进行UI自动化测试
- 大部分基础回归进行自动遍历测试
- 新功能进行人工测试
2 环境准备
- 安装
- pip install -i https://pypi.douban.com/simple selenium
- webdriver 下载
- chrome webdriver
- 地址:http://chromedriver.storage.googleapis.com/index.html
- 不同版本的 Chrome 对应不同的 chromedriver.exe
- 需要把chromedriver的路径加入环境变量
- Firefox webdriver
- 地址:https://github.com/mozilla/geckodriver/releases/
- 根据自己的操作系统下载对应的驱动即可,需要把驱动的路径和火狐浏览器的路径加入到环境变量
- 环境变量
- 放到python目录下,减少环境变量的配置
- chrome webdriver
3 pytest
- 安装:pip install -i https://pypi.douban.com/simple pytest
- 参考:https://www.cnblogs.com/onesilent/p/9298202.html