如何使用安卓猴子
我对如何实际使用 monkey
感到有点困惑,我以为你应该打开模拟器并进入终端编辑器并输入:
$ adb shell monkey -p insert.my.package.name.here -v 500
因为这不起作用(错误,adb:权限被拒绝
)
我尝试了monkey -p insert.blah.blah -v 500
,结果发现它已被杀死,我做错了什么?
I am a little confused on how to actually use monkey
, i thought you were supposed to power on your emulator and go into terminal editor and type:
$ adb shell monkey -p insert.my.package.name.here -v 500
since that did not work (error, adb: permission denied
)
i tried monkey -p insert.blah.blah -v 500
and this comes up that it has been killed, what am I doing wrong?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
它可能正在尝试通过您的 USB 端口与设备通信。
您可能只需要在其中添加一个
-e
来告诉 adb 连接到模拟器:(或者如果您有多个模拟器正在运行,则添加
-s serialnum
。)请参阅ADB 文档中的定向命令。
It's probably trying to talk to a device over your USB port.
You probably just need to add an
-e
in there to tell adb to connect to the emulator:(Or
-s serialnum
if you have more than one emulator running.)See Directing commands in the ADB docs.
这里有很好的解释:
https://android .googlesource.com/platform/development/+/master/cmds/monkey/README.NETWORK.txt
它是一个用于测试应用的工具,端口指示要连接哪个 porto(绑定到 localhost)以发出远程命令
It's well explained here:
https://android.googlesource.com/platform/development/+/master/cmds/monkey/README.NETWORK.txt
it's a tool for testing apps, and the port indicates which porto to connect (binds to localhost) to issue remote commands