自动化 测试框架部署(python3+selenium2)
安裝Python
安裝瀏覽器
下載并安裝Firefox(推薦ESR版本)和Chrome瀏覽器
安裝Selenium及擴(kuò)展包
| 1 | > pip.exe install -U selenium |
| 1 | > pip.exe install -U pymongo |
安裝MySQL connector
| 1 | >?pip.exe install -U --allow-external mysql-connector-python mysql-connector-python |
Checkout 代碼
請(qǐng)從svn://172.21.32.25/project/test/ATF?check out 代碼。
運(yùn)行方法
執(zhí)行
| 1 | python3 $PROJECT_ROOT/test_runner.py -m smoke |
日志、測(cè)試報(bào)告和截圖在$PROJECT_ROOT/logging_reports文件夾
執(zhí)行過(guò)程已部署到Jenkins中。
http://172.21.32.32/jenkins/view/test/job/test_smoking/
請(qǐng)不要隨意執(zhí)行該job
?
轉(zhuǎn)載于:https://www.cnblogs.com/wangcp-2014/p/5433247.html
總結(jié)
以上是生活随笔為你收集整理的自动化 测试框架部署(python3+selenium2)的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 梦到前同事怀孕是什么意思
- 下一篇: Python自动化运维工具fabric的