robot framework ride怎么启动

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了robot framework ride怎么启动相关的知识,希望对你有一定的参考价值。

教程如下1、下载PE装机工具,百度搜索“系统119”下载SUM装机工具2、下载usm的软件,进行安装,按默认操作执行下一步,直至操作完成3、插入u盘(温馨提示:u盘内的资料提前备份,经过制作后u盘内资料将全部丢失),打开usm软件,有几个注意事项,请注意:1)选择u盘模式2)请选择你插上去的u盘3)确保你的选项是默认的4)一键制作此时如有杀软提示危险,请点击允许,再次提醒一下:请注意此操作将清除u盘的数据,操作前请务必备份u盘内的资料。5、制作已经完成6、到主站()下载一个你需要给电脑装的系统(纯净版本系统、装机版本系统、家用版本系统,如果你计划按照此教程进行安装,建议你选择家用版本的系统),下载完成后把系统放入u盘的主目录(什么叫主目录,大白话就是直接打开u盘粘贴就好,不要放入任何文件夹)7、 现在一个系统u盘就制作好了,接下来需要了解的是你的电脑如何进入u盘快捷启动进行安装系统,笔记本、台式机进去快捷启动的快捷键都不一样,以下是集合了所有台式机、笔记本的快捷按键(基本上市面上左右的电脑的BOOT热键都是F8-F12可以启动起来的),请对号入座:8、确认好自己电脑的快捷按键之后,开机前插上u盘并对电脑进行重启,重启后迅速不停的按下快捷键,如果快捷键确认无误,会跳出以下界面,选择USB HDD,或者是带有USB或HDD的选项,按下enter键9、等待进入pe界面在这里会有两种情况:1)一种是最近09之后生产的电脑会直接进入pe界面2)以前的电脑会弹出一个选择界面,如果你是安装xp的选择2003pe,其它则一律请选择win8pe10、进入桌面后,选择【通用ghost工具】11、选择【简易模式】12、选择【恢复系统】13、点击“计算机”在可移动存储设备的分类中找到“总裁装机u盘”,点击进去后选择你刚刚复制进u盘的系统。14、选择“c”盘,点击“继续”。15、此时等待进度完成后重启计算机。16、拔掉u盘等待计算机自动部署完成即可,时长约15-25分钟。恭喜你,你成功给你的计算机做系统完毕!robot framework ride怎么启动 参考技术A 需要配置python、robot framework的环境变量(具体配置方法参考百度,这里不再赘述)配置好之后,打开cmd,输入ride或者ride.py后回车,就能打开了。如果还不能打开,那看下dos里面的提示出错信息,重新再检查下,是否环境没配好。通常的环境配好了,基本都能打开,打不开的原因,一般就是环境问题,或者版本不兼容问题。

Robot Framework应用——在Virtualenv和Virtualwrapper的虚拟环境中启动Robot Framework的RIDE时报的错误问题的解决

转载请注明出处:http://blog.csdn.net/dongdong9223/article/details/116706660
本文出自【我是干勾鱼的博客

之前在Robot Framework应用——Mac环境下Robot Framework的安装及简单实用中讲解了Mac环境下Robot Framework的安装。经常会在虚拟环境下使用Python,之前在使用Virtualenv和Virtualwrapper创建Python虚拟环境中曾经讲解过Python虚拟环境的搭建,而在安装Robot Framework的时候,如果Python是在虚拟环境中,会遇到一些问题。

第一个错误:

$ ./script.sh ride.py
This program needs access to the screen. Please run with a
Framework build of python, and only when you are logged in
on the main display of your Mac.

报错This program needs access to the screen. Please run with a Framework build of python…这篇文章中提到了这个问题,思路是通过wxPythonVirtualenvOnMac这篇文章解决的,笔者这里使用的是Python3.6,如果设置成Python3.6的环境:

#!/bin/bash
  
# what real Python executable to use
PYVER=3.6
PYTHON=/Library/Frameworks/Python.framework/Versions/$PYVER/bin/python$PYVER

# find the root of the virtualenv, it should be the parent of the dir this script is in
ENV=`$PYTHON -c "import os; print os.path.abspath(os.path.join(os.path.dirname(\\"$0\\"), '..'))"`

# now run Python with the virtualenv set as Python's HOME
export PYTHONHOME=$ENV
exec $PYTHON "$@"

,所以在script.sh这个配置文件中设置Python3.6的环境应该是不太合适的,还是应该设置Python2.7的环境,还会报错:

$ ./script.sh ride.py
  File "<string>", line 1
    import os; print os.path.abspath(os.path.join(os.path.dirname("./script.sh"), '..'))
                      ^
SyntaxError: invalid syntax
Fatal Python error: Py_Initialize: unable to load the file system codec
ModuleNotFoundError: No module named 'encodings'

Current thread 0x00007fffaabc3380 (most recent call first):
Abort trap: 6

并且Python退出了:

在虚拟环境下执行Python,发现是Python2.7的环境:

$ python
Python 2.7.10 (default, Oct  6 2017, 22:29:07) 
[GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.31)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>

所以在script.sh这个配置文件中设置Python3.6的环境应该是不太合适的,还是应该设置Python2.7的环境。另外这里要注意,Python2.7与Python2.6的安装目录私有区别的:

  • Python2.7:/System/Library/Frameworks/Python.framework/Versions/2.7/bin/python$PYVER

  • Python3.6:/Library/Frameworks/Python.framework/Versions/ P Y V E R / b i n / p y t h o n PYVER/bin/python PYVER/bin/pythonPYVER

Python2.7是“/System/Library/。。。”目录下,而Python3.6直接是在“/Library/。。。”目录下。

#!/bin/bash
  
# what real Python executable to use
PYVER=2.7
PYTHON=/System/Library/Frameworks/Python.framework/Versions/2.7/bin/python$PYVER

# find the root of the virtualenv, it should be the parent of the dir this script is in
ENV=`$PYTHON -c "import os; print os.path.abspath(os.path.join(os.path.dirname(\\"$0\\"), '..'))"`

# now run Python with the virtualenv set as Python's HOME
export PYTHONHOME=$ENV
exec $PYTHON "$@"

参考:

Robot Framework应用——Mac环境下Robot Framework的安装及简单实用

使用Virtualenv和Virtualwrapper创建Python虚拟环境

报错This program needs access to the screen. Please run with a Framework build of python…

wxPythonVirtualenvOnMac

Mac下安装配置Python2和Python3并相互切换使用

以上是关于robot framework ride怎么启动的主要内容,如果未能解决你的问题,请参考以下文章

Robot Framework应用——在Virtualenv和Virtualwrapper的虚拟环境中启动Robot Framework的RIDE时报的错误问题的解决

Robot framework安装步骤

robot framework-ride中suite怎么赋值全局变量

robot framework ride.py打不开解决方法

Robot Framework IDE (RIDE) 执行配置文件未显示

Ride Robot Framework IDE - Mac 界面故障