Monkey testing is a type of testing technique where user provides random invalid inputs to test the behaviour of the application or software. This technique has no rules no proper methods and works on user’s mood and gut feeling.
There are two types of monkey testing:
Smart monkey testing and Dumb Monkey testing
- Smart Monkey Testing:
This type of testing is identified by the following characteristics:
- It has a brief idea about the application
- To know the location where exactly results can go and where it was.
- Know its capacity and the system’s capability.
- Focus on breaking the system.
- Reporting the bugs
This type of testing is performed as per the user’s behaviour and can identify some bugs which can occur.
2. Dumb Monkey Testing:
This type of testing is identified by the following characteristics.
- Users don’t have any idea about the application.
- They are not aware of the inputs they are providing are correct or valid.
- They don’t know about the application and do not know starting point and end flow they test randomly.
- They can identify the bugs like environmental failure or hardware failure.
- They don’t have any idea about the UI or functionality.
Whenever we are releasing the big web application we have to be aware of different kind of users who are using these applications. There are good users who use the application but there are also a kind of users who can be nasty they want and play around the application like a monkey provide all invalid inputs and sometimes break the applications with large inputs.
Advantages of monkey testing
- It will identify some out of box errors
- Setup and execution is easier than any other testing methods
- Do not need any skilled resources to perform the testing
- It is a good technique for reliability testing
- Higher impact bugs are identified
- It is not expensive
Disadvantages of Monkey testing
- This will be prolong for days till the bugs are found
- Number of bugs can be less
- Reproducing the bugs is not easier
- Other than bugs there can some unexpected output scenario where analysis becomes difficult and time consuming
The difference between the monkey testing and Ad-hoc testing:
- Monkey testing has no rules. It can be performed randomly. Ad-hoc testing is performed without planning & documentation.
- The objective of monkey testing is to check the system crash. For ad-hoc testing, it is to divide systems into subparts and check their functionality.
- What is Monkey testing?