What is Bug Magnet
Bug Magnet is an open source Chrome and Firefox extension created by Gojko Adzic, that stores a set of heuristics that can be used for testing web applications.
Bug Magnet stores values and edge cases that are common causes of failures for input fields, text areas, content editable DIVs. Some examples are:
- Lorems | Text in different charsets and languages
- Text size | With or without white spaces
- Names | Different names like NULL or Chloë Rømer
- E-Mail addresses | Valid or non valid addresses
- Numbers | Large numbers
- Whitespace | Leading white spaces, tabs or newlines
- Format exploits | SQL injection or broken HTML
You simply right click on an input field, and the Bug Magnet extension is shown in the menu.
The power of Bug Magnet
I use Elisabeth Hendrickson Test Heuristics Cheat Sheet while testing, I would like to think I can remember all the combinations to try in each element while testing, but the reality is I can’t, due to the amount of context switching I am bound to miss something. That is why reviewing heuristics cheat sheets are valuable, these help ensure I’m covering the most vital parts of each element.
Bug Magnet gives people an easy option to access these heuristics, it removes the need to read a sheet, type in to try the list of combinations, or work out what valid and invalid email addresses, names etc are. Bug Magnet stores all of this for you, it allows for quick and easy use when testing.
Where can I find Bug Magnet
Add to Bug Magnet
A great feature of Bug Magnet is the ability to add more heuristics. While the standard heuristics that come with bug magnet are very useful, you will no doubt have a set of heuristics unique to your organisation. Add these so both you and others can benefit from the heuristics that relate to your organisation.
To add your own heuristics is simple, you can right click, navigate to bug magnet and select ‘Configure BugMagnet’
You are then able to add a .json file like the example below
Further examples can be found from https://github.com/gojko/bugmagnet/tree/master/extras