English 中文(简体)
自动运行Android Monkey的想法
原标题:Ideas for automating Android Monkey runs

我当前使用Android Monkey工具用于压力测试Android系统/软件包。我发现它很有用。但到目前为止,一切都是手动测试(即打开模拟器,执行adb shell Monkey<;…>;等)。我想“自动化”并由构建服务器从外部触发它。

我最初的直觉是写一个shell脚本来执行monkey(使用随机种子),然后将结果存储在构建服务器可访问的文件中。但这真的有用吗?

只是好奇是否有人以前做过这件事和/或有“更聪明”的想法来自动运行Android Monkey。谷歌搜索中使用了“自动化的安卓猴子”一词,但几乎没有找到相关信息。

欢迎所有想法。

最佳回答

更新:

我决定使用一个简单的shell脚本,因为我想不出什么“更聪明”的事情可以做。它仍在进行中。以下是它的当前状态:

#!/bin/bash

REPORTROOT=./reports

# remove old report files
echo "Removing old output report files..."
rm $REPORTROOT

# make dir for new report files
echo "Output reports will be stored in $REPORTROOT..."
mkdir $REPORTROOT

# run monkey on the entire system
echo "Running Monkey on entire system..."
adb -e shell monkey -v -v -v 500 > $REPORTROOT/monkey_sys.txt
# pull the log file from device?

# run monkey on particular packages
# packages here...

# create composite report
echo "Running reports..."
grep -A 5 -h -r CRASH $REPORTROOT > $REPORTROOT/crash_report.txt

输出是一个简单的.txt文件,其中有几行关于任何崩溃的信息。

问题回答

你可以看看Hudson,它应该能够启动一个模拟器,然后执行你的android monkey命令。





相关问题
Selenium not working with Firefox 3.x on linux

I am using selenium-server , selenium rc for UI testing in my application . My dev box is Windows with FireFox 3.5 and every thing is running fine and cool. But when i try to run selenium tests on my ...

Best browser for testing under Safari Mobile on Linux?

I have an iPhone web app I m producing on a Linux machine. What s the best browser I can use to most closely mimic the feature-limited version of Safari present on the iPhone? (It s a "slimmed down" ...

Code Coverage Tools & Visual Studio 2008 Pro

Just wondering what people are using for code coverage tools when using MS Visual Studio 2008 Pro. We are using the built-in MS test project and unit testing tool (the one that come pre-installed ...

Is there any error checking web app cralwers out there?

Wondering if there was some sort of crawler we could use to test and re-test everything when changes are made to the web app so we know some new change didn t error out any existing pages. Or maybe a ...

热门标签