我使用robotframework-appiumlibrary 1.2.5
==============================================================================
Open App | FAIL |
Keyword 'AppiumLibrary.Open Application' expected 1 to 2 non-keyword arguments,
got 5.
------------------------------------------------------------------------------
测试脚本:
*** Settings ***
Library AppiumLibrary
*** Variables ***
${REMOTE_URL} http://localhost:4723/wd/hub
${PLATFORM_NAME} Android
${PLATFORM_VERSION} 4.4.2
${DEVICE_NAME} emulator-5554
${APP} D:/asas.apk
*** Test Cases ***
Open App
Open Application ${REMOTE_URL} ${PLATFORM_NAME} ${PLATFORM_VERSION} ${DEVICE_NAME} ${APP}
Sleep 10s
我想知道解决方案。
答案 0 :(得分:1)
Google快速搜索显示this link表明:
从1.2.0开始我们更新Open Application关键字,你可以检查一下 http://jollychang.github.io/robotframework-appiumlibrary/doc/AppimuLibrary.html#Open%20Application 比如
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