Skip to content

qinyu/behave-workshop

Repository files navigation

behave-workshop

Code of behave workshop

安装准备

IDE
  1. JDK(1.7+)(用于运行PyCharm Community)
  2. PyCharm Community(用于编辑py文件)
    下载地址:https://www.jetbrains.com/pycharm/download/
    这里有两个版本Professional和Community,我们需要的是Community版本
  3. PyCharm Community Gherkin插件(用于高亮显示feature文件)
    打开PyCharm Community后,从菜单选择“Preferences...”,在选择"Plugin",在界面上搜索“Gherkin”并安装(需要连接互联网)
Python环境
  1. Python 3.5(用于运行python脚本)
    安装时有选项“是否安装pip”,请选择“是”,pip用于安装python库
  2. behave和selenium(python库)
    安装完python之后可以使用下面命令安装(需要连上互联网)
    pip install behave selenium
浏览器

Firefox,下载地址:https://www.mozilla.org/en-US/firefox/new/

运行测试

behave或者behave -D platform=android_chrome

参考资料

Behave教程:

http://behave.github.io/behave.example/

Selenium教程:

http://selenium-python.readthedocs.io/ http://elementalselenium.com/tips

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors