[WEB/SOFTWARE TESTING CHECKLISTS] CAPTCHA - What are the Test Cases to be considered while testing captcha?
'Completely Automated Public Turing Test to tell computers and humans apart' or simply 'CAPTCHA' is something that we come across in the Log in / contact form of almost every modern website. As the name suggests, it is used to differentiate between humans and computers. It is a test which usually comes in the form of mathematical questions (Number Captcha) or image recognition (Image Captcha) for the users to solve, in order to login and access certain pages in the websites. 'ReCaptcha' is also a type of captcha which contains an image with 2 words. The main aim of Captcha is the security of the website, also protection of the site from automated spam posts. Following are the test cases for Captcha.
Common Test cases for all Captchas / Number captcha
- Ensure that the system accepts valid Captcha.
- Ensure that the system rejects the invalid Captcha.
- Ensure that the Captcha code resets as the system reloads.
- Ensure that the Captcha changes as the user enters wrong value.
Additional Test cases for image captcha
- Ensure that the code in the Image captcha is viewable.
- Ensure the readability of the Captcha.
- Ensure that the captcha is case sensitive. (requirement dependent)
Additional Test cases for recaptcha:
- Ensure the readability of the Captcha.
- Ensure that the captcha is case sensitive.(requirement dependent)
- Ensure that the user receives new captcha on clicking the link "Get a new challenge".
- Ensure that the system rejects, when the user enters only one valid captcha for the two captchas provided.
- Ensure that the Captcha code is not confusing. For eg: Zero and O (Alphabet),numbers 6 and 9)
- Ensure that the user receives information about how to use the captcha, on clicking the help button.
- Ensure that the audio version of Captcha is working (requirement dependent).
We can write so many test cases on captcha. But always keep in mind that, quality of testing does not depend upon how many test cases we write, but on the effectiveness and relevance of test cases. So let us try to write effective test cases and thereby save the time spent on writing test cases. Have a good testing time! :)