我怎么能脚本genymotion仿真器来启动一个给定的AVD,无头? [英] How can I script genymotion emulator to launch a given avd, headless?

查看:165
本文介绍了我怎么能脚本genymotion仿真器来启动一个给定的AVD,无头?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法通过命令行来启动一个给定的 AVD ,并将它通过注册亚行

Is there any way to launch by command line a given avd and have it registered via adb ?

我也要preFER让模拟器启动无头。

I would also prefer to get the emulator launched headless.

我要寻找这个快速运行的测试。

I am looking for this to run tests quickly.

推荐答案

有关他人寻求非无头命令行启动:

For others looking for non-headless command line startup:

/Applications/Genymotion.app/Contents/MacOS/player --vm-name "xxxx"

获取虚拟机列表:

Get a list of vms:

$ VBoxManage list vms
"Galaxy Nexus - 4.2.2 - API 17 - 720x1280" {56d8e3aa-ecf8-483e-a450-86c8cdcedd35}

其中xxxx可以是名称或ID:

Where xxxx can be either the name or the id:

/Applications/Genymotion.app/Contents/MacOS/player --vm-name 56d8e3aa-ecf8-483e-a450-86c8cdcedd35
/Applications/Genymotion.app/Contents/MacOS/player --vm-name "Galaxy Nexus - 4.2.2 - API 17 - 720x1280"

您可以用正常的进程kill杀死它:

You can kill it with a normal process kill:

ps | grep "Genymotion\.app/Contents/MacOS/player" | awk '{print $1}' | xargs kill

这篇关于我怎么能脚本genymotion仿真器来启动一个给定的AVD,无头?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆