脚本中代码如下
运行时出错:FAIL : Keyword 'AppiumLibrary.Open Application' expected 1 to 2 non-keyword arguments, got 5.
解决版本:
原因:由于示例代码中的Open Application没有以key,value的形式书写,导致出现这个问题;
正确的写法应该是:
Open Application ${REMOT_URL} platformName=${PLATFORM_NAME} platformVsersion=${PLATFORM_VERSION} deviceName=${DEVICE_NAME} app=${APP}
(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 ${REMOT_URL} ${PLATFORM_NAME}${PLATFORM_VERSION} ${DEVICE_NAME} ${APP}
运行时出错:FAIL : Keyword 'AppiumLibrary.Open Application' expected 1 to 2 non-keyword arguments, got 5.
解决版本:
原因:由于示例代码中的Open Application没有以key,value的形式书写,导致出现这个问题;
正确的写法应该是:
Open Application ${REMOT_URL} platformName=${PLATFORM_NAME} platformVsersion=${PLATFORM_VERSION} deviceName=${DEVICE_NAME} app=${APP}
(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