What does a logger say before he cuts down a tree? Let the chimps fall where they may.
Automated monkey testing
Monkey testing is a type of testing where you send random inputs to application while checking behavior, or seeing whether the application or system will crash.
Here's how to get it up and running on any Android device:
Install ADB (Android Debug Bridge)
Install an application you want to Monkey test on any Android device
Connect the Android device with your Mac and click "Trust"
Open terminal and run
adb devices
to confirm the device is properly connected (this command should list all connected devices)If you can see the connected device, run
adb shell pm list packages -f > packages.txt
to create "packages.txt" file with all app packages on your Android device.Locate the "packages.txt" file in your home directory and open it
Search the name of the application you want to test (e.g. "QA Adventure")
If the Facebook" application is installed on your device, you'll probably see something similar to this
package:/data/app/co.infinum.qaadventure.staging-1/base.apk=co.infinum.qaadventure.staging
Copy the string that starts with the "co", this is the package name we need:
co.infinum.qaadventure.staging
Open terminal again and run
adb shell monkey -p your.package.name -v 5000
or, in my caseadb shell monkey -p co.infinum.qaadventure.staging -v 5000
This will send 5000 random events to the QA Adventure application.
Follow this link if you need more information.