android monkey script for multiple devices

隐身守侯 提交于 2019-12-11 11:15:53

问题


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

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

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 ?


回答1:


Use a script like this:

#! /bin/bash

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

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



来源:https://stackoverflow.com/questions/20006551/android-monkey-script-for-multiple-devices

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!