python - 在独立机器上手动安装 Robot Framework

标签 python selenium testing robotframework

我第一次在独立服务器(Win 2012 R2 64 位)上安装 RF,它与任何 Internet 连接永久隔离。

在没有 Internet 连接的情况下安装 selenium2libray 的最佳方法是什么,例如参见步骤 1.4

Note You should have an internet connection to perform this installation

http://selenium-python.readthedocs.io/installation.html

到目前为止:

  1. --版本说 .. 在 Win32 上安装 RF 3.0.2 和 Python 2.7.14
  2. 这在 c:\Python27 中
  3. 文件夹 call RFTests 有测试套件。

我在运行测试时得到的错误是:

  [ ERROR ] Error in file 'C:\RoboFrameworkTests\Tests\2179.robot': Importing test library 'selenium2library' failed: ImportError: No module named selenium2library
    Traceback (most recent call last):

  None
PYTHONPATH:
  C:\Windows\SYSTEM32\python27.zip
  C:\Python27\DLLs
  C:\Python27\lib
  C:\Python27\lib\plat-win
  C:\Python27\lib\lib-tk
  C:\Python27
  C:\Python27\lib\site-packages
  C:\Python27\lib\site-packages\robotframework_selenium2library-3.0.0-py2.7.egg
  C:\Python27\lib\site-packages\wx-2.8-msw-unicode

显然我无法下载任何依赖项,因此必须手动执行此操作。

非常感谢。

最佳答案

我在库引用中使用了错误的大小写:我在应该使用 Selenium2Library 的时候使用了 selenium2library

关于python - 在独立机器上手动安装 Robot Framework,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51384415/

相关文章:

python - 如何使用 Selenium 将 nba.stats.com 上的页面从 "1"更改为 "All"

selenium - Protractor >>错误: spawn Unknown system error -86 >> From: Task: WebDriver. createSession()

testing - 如何测试TCP协议(protocol)服务?

javascript - 如何检查文件是否下载成功?

python - python的WPF替代品

python - 从数据框列创建滚动方差

google-chrome - Selenium for ChromeDriver和Chrome浏览器以及日志消息“仅允许本地连接”

ruby-on-rails - Rails 单元测试协会

python - 如何在 m 组中对大小为 (m*n,) 的 numpy 数组求和?

python - 如何在Python Django中从数据库表中获取相关类别产品?