Appium基础篇(一)——启动emulator

1. Appium API文档:链接参考 http://appium.io/slate/cn/v/?ruby#appium-介绍。

2. Appium 安装篇:http://www.cnblogs.com/fnng/p/4540731.html 等4张

3. 问题。

1)遇到的奇葩问题:

> info: [debug] 1 device(s) connected
> info: [debug] 1 emulator(s) connected
> info:
[debug] Sending telnet command to device: avd name
> info: [debug] Getting running
emulator port
> info: [debug] Socket connection to device created
> info: [debug]
Socket connection to device ready
> info: [debug] Telnet command got response: a
[Davavdavd avd navd na
[Davd namavd name
> test19
> info: [debug]
Emulator test19 not running

解决方案:

将虚拟机的

Emulation Options的选项从use host gpu修改为snapshot即可。

不清楚有没有其他方式,知道的给我留言,谢谢哈

 2)如何获取android app的Activity

     参考http://www.cnblogs.com/nbkhic/p/3806951.html

     实测:

     使用命令aapt dump badging +客户端包所在路径+客户端包名称.apk 方便。

原文地址:https://www.cnblogs.com/testwang/p/6078392.html