Android UI testing: "adb shell uiautomator" throws error, "uiautomator" in "adb shell" works -
i compile , run android ui black-box tests using command-line tools on windows. wrote uiautomatortestcase
, built it, , uploaded /data/local/tmp/
. verified jar
file copied latter directory.
if type
adb shell
and type
uiautomator runtest mytest.jar –c com.example.mytest
at adb shell prompt, test runs successfully. far good.
the problem if combine these 2 steps , type
adb shell uiautomator runtest mytest.jar –c com.example.mytest
then next error:
error: /data/local/tmp/ľc not exist
according documentation, should work. error same on windows 7 pro 32-bit hun , on windows 8.1 pro 64-bit eng. device samsung galaxy s3 mini (gt-i8190), running android 4.1.2 (api level 16).
what doing wrong?
i suppose,
adb shell $ <command>
same adb shell <command>
. i've never encountered discrepancy in regards.
please seek adb kill-server
, adb start-server
please seek adb -s <device_id> shell <command>
can find <device_id>
adb devices
can please allow know output of adb version
?
android shell command-line adb uiautomator
No comments:
Post a Comment