Code of behave workshop
- JDK(1.7+)(用于运行PyCharm Community)
- PyCharm Community(用于编辑py文件)
下载地址:https://www.jetbrains.com/pycharm/download/
这里有两个版本Professional和Community,我们需要的是Community版本 - PyCharm Community Gherkin插件(用于高亮显示feature文件)
打开PyCharm Community后,从菜单选择“Preferences...”,在选择"Plugin",在界面上搜索“Gherkin”并安装(需要连接互联网)
- Python 3.5(用于运行python脚本)
安装时有选项“是否安装pip”,请选择“是”,pip用于安装python库 - behave和selenium(python库)
安装完python之后可以使用下面命令安装(需要连上互联网)
pip install behave selenium
Firefox,下载地址:https://www.mozilla.org/en-US/firefox/new/
behave或者behave -D platform=android_chrome
http://behave.github.io/behave.example/
http://selenium-python.readthedocs.io/ http://elementalselenium.com/tips