Automation testing for mobile application via terminal to find crash (Monkey testing)

Monkey testing is a technique used in software testing to test the application or product by providing random data and observing if the system or application crashes

In Monkey testing the tester or sometimes developer also is considered like a monkey assuming that if a monkey uses the computer then he will enter some random data without any knowledge or understanding.
Here the tests done are very random and it may not be correct.
Because of such random testing the testers may not be able to recreate the issues or bugs.

Advantages of Monkey testing:
  • Monkey testing is a very good approach to find out some new bugs which may not be possible from the stated scenarios.
  • Monkey testing can also be a good way to perform stress testing and load testing since the scenarios tested are generally random and ad-hoc.
  • It is very easy to execute because it just requires some random data to run against some random tests.
  • Execution of test cases and setting up of environments expenses are very less in monkey testing.
  • By using tools the process of Monkey testing can be automated.
  • Monkey testing can be performed for desktop applications, web applications as well as mobile applications.

Wanna find more crash in the mobile application android (apk) or iOS (ipa), Here we go

Make sure your device is connected in system and Login in the  App before running it.

Command you need to give in command prompt:

C:\Users\user>adb shell monkey -p com.acb.acbsmart -v 10000

-p stands for package name (com.acb.acbsmart)
-v stands for number of times you want to run (eg. you can give what ever you want like: 10000,15000, 12000,etc), it will run till that many iterations.

 Monkey testing via terminal to find crash in the mobile application
Monkey testing via terminal to find crash in the mobile application

Note: Before running this Monkey testing check with developer as this  will Hang Server (mainly when we perform so many iteration) or best you can do is Turn off the Internet and then RUN. 

Hope this information will be useful to you all... :) 

Post author by Test Engineer Ruchi Singh


6 comments:

  1. Nice and interesting post, I appreciate your hard work. keep it up…!!!Thanks for such useful information, It is true that now if you want to grow your business you will surely need the mobile app testing services for your business. But for that purpose everyone needs best mobile app testing companies.

    ReplyDelete
  2. Thank You for Sharing this wonderful and much-required information in this post.
    Best Mobile Application Development Company 

    ReplyDelete
  3. A robust Human Resource Management Software solution optimizes the entire employee lifecycle, from applicant tracking to offboarding. Integrated Payroll Management Software handles payroll processing, compliance reporting, and benefits administration with precision. Centralized dashboards provide visibility into headcount, performance, and turnover, enabling proactive planning. With role-based access, secure data governance, and automation, HR teams deliver superior service and alignment with business objectives.

    ReplyDelete
  4. DevstringX Technologies specializes in reliable, scalable testing ecosystems designed for modern development pipelines. Their automation-centered approach includes regression suites, API testing, and security validation, all monitored by actionable dashboards. The team fosters agile alignment and continuous improvement, helping organizations accelerate delivery while maintaining high standards of quality. Clients appreciate predictable outcomes and lighter post-release debugging. Software Testing Services in India

    ReplyDelete