googlecodelabs / android-perf-testing

Automated Performance Testing on Android
https://codelabs.developers.google.com/codelabs/android-perf-testing/
Apache License 2.0
93 stars 39 forks source link

Path to monkeyrunner is incorrect #26

Open IgorGanapolsky opened 7 years ago

IgorGanapolsky commented 7 years ago

Hello, your codelab states:

${ANDROID_HOME}/tools/monkeyrunner ./run_perf_tests.py ./

However, that is incorrect, as the monkeyrunner executable is located in ${ANDROID_HOME}/tools/bin/monkeyrunner

hlupico commented 7 years ago

Thanks @IgorGanapolsky for posting this!

Initially I followed the Step 7 instructions and used: ${ANDROID_HOME}/tools/monkeyrunner ./run_perf_tests.py ./ <INSERT_ID>

which resulted in the following error: bash: /Users/hlupico/Library/Android/sdk/tools/monkeyrunner: No such file or directory

Using ${ANDROID_HOME}/tools/bin/monkeyrunner instead resolved my issue.

hlupico commented 7 years ago

Also important to note that folks with this issue will also have to update Line 69 of RunLocalPerfTestsTask to be:

def monkeyPath = Paths.get(sdkDir, "tools/bin", "monkeyrunner" + monkeyExt).toAbsolutePath().toString()