为多个设备的Andr​​oid猴脚本 [英] android monkey script for multiple devices

查看:162
本文介绍了为多个设备的Andr​​oid猴脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可一些身体可以帮助我把Android的猴子测试多台设备?

Can some body can help me for to put android monkey test for multiple devices ?

- >亚行外壳猴子-p com。示例-v 500000

->adb shell monkey -p com.example -v 500000

所以在这里我已经在我的电脑连接10个设备。我想为所有的设备上运行猴子试验,并在同一时间捕捉到的日志。

So here i have connected 10 devices in my PC. I wanted to run monkey test for all the device and capture the logs at the same time.

任何一个可以建议我在这?

Can any one suggest me on this ?

推荐答案

使用的脚本是这样的:

#! /bin/bash

for s in s1 s2 s3
do
    adb -s $s shell monkey -p com.example -v 500000 > $s.log
done

其中S1,S2,...是你的设备的序列号

where s1, s2, ... are the serial number of your devices

这篇关于为多个设备的Andr​​oid猴脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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