zoukankan      html  css  js  c++  java
  • 【技术讨论】RF环境搭建手册

    (原创文章,转载请注明出处。) 

    简要整理下环境搭建的步骤,以便快速、准确的搭建测试环境。

    一、环境搭建

    一、Python 2.7

    1、 不要用Python3.6,很多库3.6中还没有,wxPython官方只支持Python 2。

    2、 环境变量配置后需要重启才能生效。

    3、 环境变量添加C:Python27Scripts和C:Python27。

    二、pip 和 setuptools (Python 的套件管理程式,最新版的Python 2.7.13已包含)

    1、pip list查看是否包含setuptools。

    三、Robot Framework (此工具本身)

    四、robotframework-ride (Robot Framework 测试数据的编辑器,它使测试用例的创建、运行、测试项目的组织可以在图形界面下完成)

    五、wxPython (Python 非常有名的一个GUI 库,支撑Ride的运行库)

    1、 scripts目录下运行ride.py,根据提示版本安装wxPython。

    六、制作bat文件放置于桌面:python -c "from robotide import main; main()"

    七、可选:selenium2library (selenium2测试库,基于webdriver驱动)

    八、可选:geckodriver, chromedriver 和 IEDriverServer (浏览器驱动,据说45以上的版本Firefox驱动也不再是默认包含)

    九、可选:AutoItLibrary (autoit库包,用于进行Windows GUI的自动化操作)

    十、可选:pywin32 (AutoIt的运行环境)

    十一、可选:autoit (autoit客户端程序,实际运用中,必须装了autoit才能用AutoItLibrary )

    关于AutoIt会另开一篇具体讲解,包含默认范例的改写及说明。

    二、支持库安装(以一般restful接口为例)

    一、post方法支持库:robotframework-requests,robotframework-httplibrary

    二、json解析库:jsonpatch

  • 相关阅读:
    request.getParameter() 、 request.getInputStream()和request.getReader() 使用体会
    HTTP之Content-Length
    关于spring3中No Session found for current thread!and Transaction的配置和管理(转)
    Java数据类型和MySql数据类型对应一览
    Spring MVC 解读——View,ViewResolver(转)
    LeetCode 441. Arranging Coins
    LeetCode 415. Add Strings
    LeetCode 400. Nth Digit
    LeetCode 367. Valid Perfect Square
    LeetCode 326. Power of Three
  • 原文地址:https://www.cnblogs.com/alphaxu/p/9731033.html
Copyright © 2011-2022 走看看