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:
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.
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 |
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.
Thanks for Sharing Information to us. If Someone wants to know about QA and software testing this is the Right place for you...
ReplyDeleteSoftware Testing Services
Software Testing Services in India
Software Testing Companies in India
Software Testing Services in USA
Software Testing Companies in USA
Software Testing Company
Software Testing Services Company
QA Testing Companies in USA
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.
ReplyDeleteVery valuable information shared in this blog . I was looking for something like that and found it here.
ReplyDeleteTop QA Companies
Top Automation Testing Companies
Top Mobile App Testing Companies
Top Performance Testing Companies
Thank You for Sharing this wonderful and much-required information in this post.
ReplyDeleteBest Mobile Application Development Company