w_d775 发表于 2015-7-8 08:38:38

Appium+Robotframework实现Android应用的自动化测试-4:AppiumLibrary介绍和安装

Appium是个好东东,Android,iOS都支持,并且居然RobotFramework也支持Appium了,这就是本文要介绍的AppiumLibrary。通过前面的文章大家知道可以使用多种语言来写Appium的测试脚本,但如果从编写效率和学习曲线上来说,当然是用如RobotFramework的关键字的方式最为简单,所以AppiumLibrary就出现了,从Appium官网可知最新的版本是1.2.5,在官网有其介绍和如何安装,为了方便不喜欢看英文的朋友,下面我把安装的方法简单介绍下。Appium的安装有两种方式,第一种就是使用pip指令,具体为:pip install robotframework-appiumlibrary,当然前提条件是安装好了Python2.7,并且也安装了pip工具。第二种方式就是使用setup.py,可以官网页面右侧的下载链接下载后再进行解压缩,在命令行模式下进行到解压缩后所在的目录,最后执行指令python setup.py install,或者先把git安装好,然后依次执行三条指令:git clone https://github.com/jollychang/robotframework-appiumlibrary.git
cd robotframework-appiumlibrary
python setup.py install没有提示错误就是安装成功了。
待续,请持续关注...

rolex_sky 发表于 2015-8-26 13:11:13

File "C:\Python27\lib\distutils\version.py", line 40, in __init__
    self.parse(vstring)
File "C:\Python27\lib\distutils\version.py", line 107, in parse
    raise ValueError, "invalid version number '%s'" % vstring
ValueError: invalid version number '0.6c11',在安装robotframework-appiumlibrary时出现报错,请问这个是什么意思,怎么解决?

小锣鼓 发表于 2015-9-8 13:15:13

最近都在跟着楼主的这个系列在配置,小菜鸟经过了千辛万苦走到这一步。悲剧的是,我也遇到了楼上的问题。。。跪求解决方法!:'(

File "C:\Python27\lib\site-packages\setuptools\sandbox.py", line 64, in <lam
a>
    {'__file__':setup_script, '__name__':'__main__'}
File "setup.py", line 10, in <module>

File "C:\Python27\lib\distutils\version.py", line 40, in __init__
    self.parse(vstring)
File "C:\Python27\lib\distutils\version.py", line 107, in parse
    raise ValueError, "invalid version number '%s'" % vstring
ValueError: invalid version number '0.6c11'

坐等答复,不胜感激涕零!!

楠枫 发表于 2015-9-11 16:20:16

rolex_sky 发表于 2015-8-26 13:11
File "C:\Python27\lib\distutils\version.py", line 40, in __init__
    self.parse(vstring)
File " ...

http://blog.csdn.net/tdylonglyfly/article/details/48373919

楠枫 发表于 2015-9-11 16:20:44

小锣鼓 发表于 2015-9-8 13:15
最近都在跟着楼主的这个系列在配置,小菜鸟经过了千辛万苦走到这一步。悲剧的是,我也遇到了楼上的问题。。 ...

http://blog.csdn.net/tdylonglyfly/article/details/48373919

楠枫 发表于 2015-9-11 16:47:02

rolex_sky 发表于 2015-8-26 13:11
File "C:\Python27\lib\distutils\version.py", line 40, in __init__
    self.parse(vstring)
File " ...

可以看看我给三楼的回复,问题我解决了

rolex_sky 发表于 2015-9-15 14:08:54

楠枫 发表于 2015-9-11 16:47
可以看看我给三楼的回复,问题我解决了

非常感谢啊。

fengye1113 发表于 2015-11-23 15:00:20

学习了,谢谢分享!

fireatice 发表于 2016-3-9 10:47:35

请问python3能行吗??

w_d775 发表于 2016-3-11 08:30:02

应该是不行的

chenyt91 发表于 2017-10-9 18:24:18

安装appiumlibrary,但是ride中导入,依旧显示为红色,网上查都说要重新安装,各位大神,帮忙看一下是啥问题
C:\Windows\system32>pip install robotframework-appiumlibrary
Requirement already satisfied (use --upgrade to upgrade): robotframework-appiumlibrary in d:\python27\lib\site-packages\robotframework_appiumlibrary-1.4.5-py2.7.egg
Requirement already satisfied (use --upgrade to upgrade): decorator>=3.3.2 in d:\python27\lib\site-packages (from robotframework-appiumlibrary)
Requirement already satisfied (use --upgrade to upgrade): robotframework>=2.6.0 in d:\python27\lib\site-packages (from robotframework-appiumlibrary)
Requirement already satisfied (use --upgrade to upgrade): docutils>=0.8.1 in d:\python27\lib\site-packages (from robotframework-appiumlibrary)
Requirement already satisfied (use --upgrade to upgrade): Appium-Python-Client>=0.20 in d:\python27\lib\site-packages (from robotframework-appiumlibrary)
Requirement already satisfied (use --upgrade to upgrade): selenium>=2.47.1 in d:\python27\lib\site-packages (from robotframework-appiumlibrary)
Requirement already satisfied (use --upgrade to upgrade): mock==1.0.1 in d:\python27\lib\site-packages (from robotframework-appiumlibrary)
Requirement already satisfied (use --upgrade to upgrade): sauceclient>=0.1.0 in d:\python27\lib\site-packages (from robotframework-appiumlibrary)
Requirement already satisfied (use --upgrade to upgrade): pytest-cov>=1.8.1 in d:\python27\lib\site-packages (from robotframework-appiumlibrary)
Requirement already satisfied (use --upgrade to upgrade): pytest-xdist>=1.11 in d:\python27\lib\site-packages (from robotframework-appiumlibrary)
Requirement already satisfied (use --upgrade to upgrade): pytest-pythonpath>=0.4 in d:\python27\lib\site-packages\pytest_pythonpath-0.7.1-py2.7.egg (from robotframework-appiumlibrary)
Requirement already satisfied (use --upgrade to upgrade): pytest>=2.5.2 in d:\python27\lib\site-packages (from pytest-pythonpath>=0.4->robotframework-appiumlibrary)
Cleaning up...

这是不是代表装成功了?
页: [1]
查看完整版本: Appium+Robotframework实现Android应用的自动化测试-4:AppiumLibrary介绍和安装