Resources | Resources |



Monkey Test utility

The purpose of the Monkey Test applet is to test the stability of a device and applications that are installed on it. It can be used to detect failures like crashes or memory leaks with an application or device that would not be found in the normal course of action.

Monkey Test modes

These are the different modes in Monkey Test.

Mode Description
Random Generates random events (keystroke, touch, and gesture), injects them into the system, and logs the events.
Replay Reruns recorded events and recreates the failures.
Record Tests the device/application for the user-defined sequence of events.

Various parameters in monkeytest.ini and can be modified to alter the test settings. A more detailed Monkey Test Application Primer is available on the Brew MP website.

Running Monkey Test using an IDE


Install Brew MP SDK 1.0

  1. Install Sample Code from the SDK Manager.
  2. Install the Visual Studio Plug-in from the SDK Manager.
  3. Create a Target (go to SDK Manager->Tools->Target Manager), if you don't have one already created.
  4. Open the monkeytest.sln.
  5. Observe that the Brew MP Simulation Target is selected by default. If there are multiple targets, select your target from the drop-down menu.
  6. Click OK.
  7. Click Click2Run.

    The Simulator screen displays the following screen:

  8. Select a mode.
  9. The applet will run until one of these takes place:
    • User presses the End key (random mode).
    • User enters the sequence "363" (record mode).
    • UI remains unchanged for a duration specified in file.
    • Applet times out.
  10. After the applet closes, the log files are saved in the fs/shared/tools_logs folder.

Running Monkey Test without using an IDE

The MonkeyTest applet can be run without building the source code by installing the .brewmp files onto the Simulator or device using Loader. See the Monkey Test Application Primer for more details.