Skip to content

Complete sample of python-selenium auto test for newcomer

Notifications You must be signed in to change notification settings

zealzhangz/python-selenium-seed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python+selenium自动化测试种子工程 (https://github.com/zealzhangz/python-selenium-seed)

测试结果

简介

最近看到测试的童鞋每次发布后的回归测试忙的前仰后翻,加之想简单研究一下前端的自动化测试。因此从建好的自动化测试工程抽出以下种子工程供大家参考。本工程以GitHub为例子,完整运行该工程需要GitHub账号信息。本人也是newcomer,不正之处还请指教。

配置环境

开始使用

在/python-selenium-seed/CommonUtil/setttings.py用自己的GitHub账号替换以下字段

# Your username
USER_NAME = "yourusername"

# Default password
PASSWD = "yourpassword"

在/python-selenium-seed/CommonUtil/setttings.py替换webdriver本地路径

# Browser web driver path(For Linux/Like Unix system)
WEB_DRIVER_PATH = "/yourwebdriverpath/chromedriver"
# For Windows
# WEB_DRIVER_PATH = "D:\\yourwebdriverpath\\chromedriver.exe"

启动

运行以下命令或者直接在IDE中配置运行以下命令,在Intelli IDEA中的配置运行参考上面的配置环境

python run.py

Contributing

Check CONTRIBUTING.md

History

Check Release list.

License

MIT License

About

Complete sample of python-selenium auto test for newcomer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published