rf环境搭建问题总结

zpykgy 2019-07-08 12:37:33
安装流程参考下面链接:https://www.cnblogs.com/star12111/p/8502734.html 1其中appium安装过程中要特别注意版本,需要与adb版本对应 2环境配置:用户环境配置path 和系统环境配置path 需要配置统一,如果同时存在python2和python3,需要区分环境,可参考https://www.cnblogs.com/qingcode0808/p/8470386.html 3.D:\Python27>pip2 install robotframework-appiumlibrary Collecting robotframework-appiumlibrary   Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x00000000040EC3C8>: Failed to establish a new connection: [Errno 10061] ',))': /simple/robotframework-appiumlibrary/   Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x00000000040ECA90>: Failed to establish a new connection: [Errno 10061] ',))': /simple/robotframework-appiumlibrary/   Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x00000000040EC128>: Failed to establish a new connection: [Errno 10061] ',))': /simple/robotframework-appiumlibrary/   Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x00000000040EC438>: Failed to establish a new connection: [Errno 10061] ',))': /simple/robotframework-appiumlibrary/   Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x00000000040EC240>: Failed to establish a new connection: [Errno 10061] ',))': /simple/robotframework-appiumlibrary/   Could not find a version that satisfies the requirement robotframework-appiumlibrary (from versions: ) No matching distribution found for robotframework-appiumlibrary 遇到此类报错,说明是代理有问题,先看一下是否有代理冲突如谷歌浏览器安装了代理,如果没有,可以进入系统文件,直接删除 与代理相关的文件,可以参考以下文档https://blog.csdn.net/gdsfga/article/details/83040291 4:pycrypto这个文件安装后才可以安装robotframework-sshlibrary  https://blog.csdn.net/Lsaisai/article/details/81510775 5 :command: pybot.bat --argumentfile c:\users\yukixing\appdata\local\temp\RIDEqq0r86.d\argfile.txt --listener C:\studyapp\Python2\Lib\site-packages\robotide\contrib\testrunner\TestRunnerAgent.py:56955:False C:\Users\yukixing\Desktop\工作笔记\RF\测试起手式 [Error 267] 参考以下方法sys.setdefaultencoding('utf8')     另一个方案是在python的Lib\site-packages文件夹下新建一个sitecustomize.py,内容为: Python代码     # encoding=utf8   import sys      reload(sys)   sys.setdefaultencoding('utf8')    此时重启python解释器,执行sys.getdefaultencoding(),发现编码已经被设置为utf8的了,多次重启之后,效果相同,这是因为系统在python启动的时候,自行调用该文件,设置系统的默认编码,而不需要每次都手动的加上解决代码,属于一劳永逸的解决方法。 6:安装过程中出现publisher库,原因可能是python2和python3环境混乱,获取不都啊正常的库,可以采用以下方法:1查看环境配置是否正常 2pip卸载后,重装 3保持python环境纯净,只保留python2 7 每次执行ride.py 文件很麻烦,可以创建快捷键,文档很多,可以直接百度 8所有环境安装完成后,百度例子,运行简单程序,看是否报错,确认环境安装成功 9pip使用方法很多,如安装卸载,打包安装 10 RIDE使用方法https://www.jianshu.com/p/91bc2a3425a1 11 charles安装https://jingyan.baidu.com/article/b2c186c80b1cb3c46ef6ffcc.html inspect https://blog.csdn.net/u010246360/article/details/80949486
...全文
63 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

22,207

社区成员

发帖
与我相关
我的任务
社区描述
MS-SQL Server 疑难问题
社区管理员
  • 疑难问题社区
  • 尘觉
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧