zoukankan      html  css  js  c++  java
  • Robot 安装

    安装一个测试环境的

    下载python27

    升级pip

    E:Python27python -m pip install --upgrade pip

    安装robotramework

    E:Python27Scriptspip install -U wxpython

    http://sourceforge.net/projects/wxpython/files/wxPython/2.8.12.1/

    下载wxpython

    --后来发现只能下载后安装,否则不起作用,是不是有些环境设置不正确?

    并解压,在解压后的目录下执行

    E:Python27python setup.py install

     Robot framework-selenium2library下载和安装

    下载地址:https://github.com/robotframework/Selenium2Library#readme

    E:Python27Scriptspip install robotframework

    E:Python27Scriptspip install robotframework-ride

    E:Python27Scriptspip install robotframework-selenium2library

    E:Python27Scriptspip install robotframework-archivelibrary

    E:Python27Scriptspip install robotframework-SSHLibrary

    E:Python27Scriptspip install robotframework-ftplibrary

    E:Python27Scriptspip list

       

    E:Python27python.exe ride.py

       

       

    labrary中增加 Selenium2Library

       

       

       

    command: pybot.bat --argumentfile g: empRIDEuogjgg.dargfile.txt --listener E:Python27libsite-packages obotidecontrib estrunnerTestRunnerAgent.py:51517:False E:Python27Scripts百度搜索

    command: pybot.bat --argumentfile c:usersadmini~1appdatalocal empRIDEcrbfif.dargfile.txt --listener e:python27libsite-packages obotidecontrib estrunnerTestRunnerAgent.py:49564:False E:Python27firsttest

    [Error 2]

    test finished 20180809 17:56:51

       

       

    报错处理方法

       

    注意:

    1、python要添加到环境变量的path中

    2、错误:command: pybot.bat --argumentfile c:userskeikeiappdatalocal empRIDEama2ym.dargfile.txt --listener D:Python27libsite-packages obotidecontrib estrunnerTestRunnerAgent.py:52418 E:robot测试项目

    解决:将"C:Python27Scripts "添加到PATH环境变量中。命令提示符号查看,RF版本。提示pybot 不是内部命令,说明环境变量设置有问题。

       

       

    报错处理方法

    Error while finding spec for 'robot.run' (ImportError: No module named 'robot')

    49564

       

       

       

    建快捷方式 robot

    e:Python27pythonw.exe -c "from robotide import main;main()"

       

       

       

       

    20180809 21:57:21.634 [INFO]: Found Robot Framework version 3.1a1 from 'e:Python27libsite-packages obotframework-3.1a1-py2.7.egg obot'.

       

    20180809 21:57:21.634 [INFO]: Started RIDE 1.5.2.1 using python version 2.7.15 with wx version 2.8.12.1 in win32.

  • 相关阅读:
    Populating Next Right Pointers in Each Node II
    Populating Next Right Pointers in Each Node
    Construct Binary Tree from Preorder and Inorder Traversal
    Construct Binary Tree from Inorder and Postorder Traversal
    Path Sum
    Symmetric Tree
    Solve Tree Problems Recursively
    632. Smallest Range(priority_queue)
    609. Find Duplicate File in System
    poj3159最短路spfa+邻接表
  • 原文地址:https://www.cnblogs.com/programer-xinmu78/p/10661123.html
Copyright © 2011-2022 走看看