命令行中的模拟器并不总是具有属性“dev.bootcomplete”
我通过命令行使用模拟器来为我们的 Android 应用程序提供持续集成服务器。通过这种方法,我们可以自动测试所有 Android 版本。对于自动安装和测试,我们使用 android 模拟器提供的属性“dev.bootcomplete”。不幸的是我们并不总是能得到它。在新创建的模拟器之后,我们正在检索它,但是当模拟器被多次使用时,它不会再次抛出它...... 有人有想法吗?
命令/结果:
[user@mob_ci ~]$ adb shell getprop dev.bootcomplete
错误:设备离线
[user@mob_ci ~]$ adb shell getprop dev.bootcomplete
1
I'm using the emulator by command-line for our continuous integration server for our android application. With that approach we can test all Android Versions automatically. For the automatic installation and testing we are using the property "dev.bootcomplete", which is provided by the android emulator. Unfortunately we don't get it always. After a newly created emulator we are retrieving it, but when the emulator is several times used it do'nt throw it again...
Has Anybody an idea?
Commands/ results:
[user@mob_ci ~]$ adb shell getprop dev.bootcomplete
error: device offline
[user@mob_ci ~]$ adb shell getprop dev.bootcomplete
1
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我使用 hudson 作为 ci 服务器,对于 hudson 有一个管理模拟器的 android 插件,如果你愿意,它甚至可以为你创建模拟器。
我要么检查“错误:设备离线”是否发生,然后在每次构建后运行
或
关闭模拟器,因为模拟器不必一直运行,或者测试是否一直运行?
希望这有帮助:)
I use hudson as a ci server, for hudson there is a android plugin which manages the emulator, it even creates the emulator for you if you want.
I would either check if "error: device offline" happens and then run
or
shutdown the emulator after each build, as it's not necessary that the emulator runs all the time or do the tests run all the time ?
hope this helps :)