Appium 如何更新到UiAutomator2?

Appium 如何更新到UiAutomator2?,appium,robotframework,appium-android,Appium,Robotframework,Appium Android,我正在运行一些Android设备的机器人框架测试。我目前正在使用Windows10计算机开发这些测试 我刚刚安装了Appium的v1.15.0-1版。默认情况下,此新应用程序使用UIAutomator2。不再是了。我的问题是,我已经安装了UIAutomator2,但Appium似乎没有找到它。运行测试的唯一方法是使用UIAutomator1 我已安装UIAutomator2驱动程序: npm-g安装appium-uiautomator2-driver 不工作: Open Application

我正在运行一些Android设备的机器人框架测试。我目前正在使用Windows10计算机开发这些测试

我刚刚安装了Appium的v1.15.0-1版。默认情况下,此新应用程序使用UIAutomator2。不再是了。我的问题是,我已经安装了UIAutomator2,但Appium似乎没有找到它。运行测试的唯一方法是使用UIAutomator1

我已安装UIAutomator2驱动程序:

npm-g安装appium-uiautomator2-driver

不工作:

Open Application  ${REMOTE_URL}  platformName=${PLATFORM_NAME}  platformVersion=${PLATFORM_VERSION}  deviceName=${DEVICE_NAME}  appPackage=${${ENV}_APP_PACKAGE}  automationName=UiAutomator2  app=${${ENV}_APP}  appActivity=com.dummyfi.viestit.ui.splash.SplashActivity     noReset=True
工作:

Open Application  ${REMOTE_URL}  platformName=${PLATFORM_NAME}  platformVersion=${PLATFORM_VERSION}  deviceName=${DEVICE_NAME}  appPackage=${${ENV}_APP_PACKAGE}  automationName=UiAutomator1  app=${${ENV}_APP}  appActivity=com.dummyfi.viestit.ui.splash.SplashActivity     noReset=True
这就是我在尝试使用UIAutomator2运行测试时得到的结果:

套件安装失败: WebDriverException:消息:处理命令时发生未知的服务器端错误。原始错误:“fi.dummy.viestit.sa”处的应用程序不存在或不可访问


使用UIAutomator1,一切正常。

您是如何安装这些库的?如果是pip,“pip冻结”是什么意思?同时更新robotframework应用程序库以防万一。你是什么意思?通过排除包含uiautomator2,尝试删除选项
appActivity=com.dummyfi.viestit.ui.splash.SplashActivity
,它可能已更改了启动活动的内容。此外,日志中可能有更多信息,在最后一条错误消息之前.pip freeze说:
Appium Python客户端==0.40 decorator==4.4.0 docutils==0.14 kitchen==1.2.5 robotframework==3.1.1 robotframework appiumlibrary==1.5.0.4 robotframework seleniumlibrary==3.3.1.141.0 six==1.12.0 lurlib3==1.24.1
我还更新了机器人框架appiumlibrary。没有变化。@SidaraKEO是的,这是真的。但我一直在使用1.13.0版的桌面应用程序。然后我决定将其更新到最新版本,即1.15.0-1。之后,我无法启动测试,启动测试的唯一方法是更改
automationName=UiAutomator1
。否则将使用UIAutomator2,无法运行测试。现在的问题是,我已经安装了UiAutomator2,但它似乎仍然不起作用。您是如何安装这些库的?如果是pip,“pip冻结”是什么意思?同时更新robotframework应用程序库以防万一。你是什么意思?通过排除包含uiautomator2,尝试删除选项
appActivity=com.dummyfi.viestit.ui.splash.SplashActivity
,它可能已更改了启动活动的内容。此外,日志中可能有更多信息,在最后一条错误消息之前.pip freeze说:
Appium Python客户端==0.40 decorator==4.4.0 docutils==0.14 kitchen==1.2.5 robotframework==3.1.1 robotframework appiumlibrary==1.5.0.4 robotframework seleniumlibrary==3.3.1.141.0 six==1.12.0 lurlib3==1.24.1
我还更新了机器人框架appiumlibrary。没有变化。@SidaraKEO是的,这是真的。但我一直在使用1.13.0版的桌面应用程序。然后我决定将其更新到最新版本,即1.15.0-1。之后,我无法启动测试,启动测试的唯一方法是更改
automationName=UiAutomator1
。否则将使用UIAutomator2,无法运行测试。现在的问题是,我已经安装了UiAutomator2,但它似乎仍然不起作用。