码迷,mamicode.com
首页 > 移动开发 > 详细

robotframework出现错误:Keyword 'AppiumLibrary.Open Application' expected 1 to 2 non-keyword arguments,got 5.

时间:2015-05-04 19:37:56      阅读:264      评论:0      收藏:0      [点我收藏+]

标签:

robotframework官网:

http://robotframework.org/#introduction

--------------

出现的场景:

由于一开始不了解robotframework,从github上下载https://github.com/hong10/sample-code,运行里面的robotframework示例代码,出现以下错误:

Keyword ‘AppiumLibrary.Open Application‘ expected 1 to 2 non-keyword arguments,got 5.

 

解决版本:(https://github.com/jollychang/robotframework-appiumlibrary/issues/28)

since 1.2.0 we update Open Application keyword, you can check it that

http://jollychang.github.io/robotframework-appiumlibrary/doc/AppimuLibrary.html#Open%20Application
such as

Open Application http://localhost:4723/wd/hub platformName=Android platformVersion=4.2.2 deviceName=192.168.56.101:5555 app=${CURDIR}/demoapp/OrangeDemoApp.apk appPackage=com.netease.qa.orangedemo appActivity=MainActivity

 

原因:由于示例代码中的Open Application没有以key,value的形式书写,导致出现这个问题;

 

robotframework出现错误:Keyword 'AppiumLibrary.Open Application' expected 1 to 2 non-keyword arguments,got 5.

标签:

原文地址:http://www.cnblogs.com/LittleRedPoint/p/4476949.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!