I am facing an issue with UI automatorviewer,I have a samsung galaxy on7 pro device with OS 6.1.0 , currently I am using it for appium automation purpose, what happens is when ever the test is done executed and i stop the appium server and the uiautomatorviewer through commmand prompt,my samsung device connected to the laptop by USB also gets switched off each time. Not sure whats happening , why uiautomatorviewer is triggering shutting down of my device, can any body help me in this?
我正面临着UI automatorviewer的一个问题,我有一个带有OS 6.1.0的三星Galaxy on7 pro设备,目前我正在将它用于appium自动化目的,会发生什么事情,当测试执行完毕并且我停止appium服务器和uiautomatorviewer通过命令提示,我的三星设备通过USB连接到笔记本电脑也每次关闭。不确定是什么时候发生的,为什么uiautomatorviewer会触发关闭我的设备,任何人都可以帮助我吗?
1 个解决方案
#1
0
I hope your real device is not shutting down when your are running the script and it happens only when you are trying to find the UI elements objects using UiAutomatorViewer.
我希望您的实际设备在运行脚本时不会关闭,只有在您尝试使用UiAutomatorViewer查找UI元素对象时才会发生这种情况。
Why do you need a Real Device with UiAutomatorViewer to identify the UI elements? You can use any emulator right? there will remain same UI elements even if you install your app(apk) into emulator or real device with UIAutomatorViewer.
为什么需要带有UiAutomatorViewer的Real Device来识别UI元素?你可以使用任何模拟器吗?即使您使用UIAutomatorViewer将应用程序(apk)安装到模拟器或真实设备中,也会保留相同的UI元素。
#1
0
I hope your real device is not shutting down when your are running the script and it happens only when you are trying to find the UI elements objects using UiAutomatorViewer.
我希望您的实际设备在运行脚本时不会关闭,只有在您尝试使用UiAutomatorViewer查找UI元素对象时才会发生这种情况。
Why do you need a Real Device with UiAutomatorViewer to identify the UI elements? You can use any emulator right? there will remain same UI elements even if you install your app(apk) into emulator or real device with UIAutomatorViewer.
为什么需要带有UiAutomatorViewer的Real Device来识别UI元素?你可以使用任何模拟器吗?即使您使用UIAutomatorViewer将应用程序(apk)安装到模拟器或真实设备中,也会保留相同的UI元素。