Showing posts with label Monkey Testing. Show all posts
Showing posts with label Monkey Testing. Show all posts

Sunday 25 October 2020

Performing Monkey Testing on Android Device | Android | ADB



As per the Google blog:


Monkey is a program that runs on emulators and devices. Generates pseudo-random streams of user events such as clicks, touches, gestures, and system-level events. With Monkey, you can stress test your app in a random yet reproducible way.


Monkey can be launched from the development machine or script using the command line. The monkey runs in an emulator or device environment, so you need to launch it from a shell in that environment. To do this, adb shell either prefix each command or enter its shell and enter the Monkey command directly.


Command to be used: 


adb shell monkey -p com.sec.android.app.popupcalculator 1000 > internalsearch.txt


This command can be broken down into these steps.


ADB - Android Debug Bridge. A tool used to connect and sends commands to your Android phone from a desktop or laptop computer.



Shell - Shell is just an interface on the device that translates our commands to system commands.


Monkey - Monkey is the testing tool.


v - v stands for verbose method.


1000- it is the frequency count or the number of events to be sent for testing.


I am saving the logs in internalsearch.txt file



Below is the video from my youtube channel on how to do monkey testing.





Ref: https://developer.android.com/studio/test/monkey

Interview Experience with AMAZON for the role of Quality Assurance Tester

This role was for Digital/ IoT/Mobile Application based testing :)  Amazon is a dream company and everyone wants to work for that company a...

Popular Posts