#1 India's Top IT Training Institute
×

About Uncodemy

Know more about who we are and what we stand for.

About Us

About Us

Discover our mission to equip individuals with essential IT skills and industry expertise.

Read More →
UnCodeMy Gallery

UnCodeMy Gallery

Explore highlights from our IT training sessions and success stories.

Read More →
Mentors

Mentors

Meet the industry experts who train and guide you through your course.

Read More →
Free Resources

Free Resources

Free tutorials, interview questions, tools and calculators to help you learn.

Explore →
×

Free Resources

Learn, practice and plan your career — bilkul free.

Tutorials

Tutorials

Step-by-step written tutorials to learn any technology at your own pace.

Read More →
Free Counselling

Free Counselling

Book a free video counselling session and pick the right course for you.

Read More →
Online Compiler

Online Compiler

Write, run and test your code online — no setup required.

Read More →
Testing by Purpose

Monkey & Gorilla Testing

Monkey Testing

Monkey testing involves feeding random, unstructured inputs into the application to check its stability and how it handles unexpected or invalid data, without following any specific test cases.

Gorilla Testing

Gorilla testing involves repeatedly and heavily testing one specific module or functionality to ensure it is extremely robust, often hammering it with the same or similar test cases many times.

Why These Techniques Matter

  • Monkey testing helps uncover crashes and unexpected behaviour from random input.
  • Gorilla testing ensures critical modules can withstand heavy, repeated use.
  • Both are typically used to supplement, not replace, structured testing.

Dumb Monkeys, Smart Monkeys

Not all monkey testing is equally random. A dumb monkey knows nothing about the application: it taps, types and swipes anywhere. It is cheap to run and good at finding crashes, but it wastes time on screens that do not matter. A smart monkey knows the application's states and which actions are valid on each screen, so it can reach deeper features such as checkout or settings. It takes more setup but finds more meaningful issues.

Testers sometimes also run monkey testing by hand, rapidly clicking buttons, pasting very long text, pressing back during loading, or rotating a phone mid-transaction. This informal version often reveals the same class of bugs: unhandled exceptions, frozen screens and corrupted state.

Running a Monkey Test on Android

Android includes a tool called the UI/Application Exerciser Monkey that sends a stream of random user events to an app. It runs from the command line through adb:

# send 500 random events to one app, with verbose output
adb shell monkey -p com.example.shop -v 500

# fixed seed so the same event sequence can be replayed
adb shell monkey -p com.example.shop -s 4821 --throttle 300 -v 2000

The -p option limits events to your package, -s sets the random seed and --throttle adds a delay in milliseconds between events. The seed matters most: when a crash appears, rerunning with the same seed and event count reproduces it, turning a random failure into a bug developers can actually fix.

What Gorilla Testing Looks Like in Practice

Gorilla testing picks one module that the business cannot afford to see fail and works it repeatedly. For a banking app this might be fund transfer. A tester or a small group would run the same transfer flow many times with varied amounts, switch accounts mid-flow, retry after network drops, and repeat after each new build. The aim is not variety across the product but certainty about one area.

Because the work is repetitive, teams often automate the repeated part with a script and keep the manual effort for the variations a script would not think of.

Comparing Related Techniques

TechniqueFocusUses test cases?
Monkey testingRandom input across the whole appNo
Gorilla testingHeavy repetition on one moduleOften the same few, repeated
Ad hoc testingInformal, experience-driven checksNo
Fuzz testingMalformed data fed to inputs, files or APIs, often for securityGenerated automatically

Getting Value Instead of Noise

  • Always log what the monkey did. A crash with no event history is very hard to act on.
  • Run against a test environment with disposable data, since random events can delete records or place orders.
  • Block dangerous areas, such as logout or account deletion, if they stop the run too early.
  • For gorilla testing, choose the module based on risk and usage, not on whatever was built most recently.
  • Turn every crash found into a regular, scripted regression test so it stays fixed.

Ready to master real-world software testing?

Learn manual and automation testing hands-on with mentor-led sessions.

Explore Course