[WEB/SOFTWARE TESTING CHECKLISTS] CAPTCHA - What are the Test Cases to be considered while testing captcha?

| | 2 min read

'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

math.jpg

  1. Ensure that the system accepts valid Captcha.
  2. Ensure that the system rejects the invalid Captcha.
  3. Ensure that the Captcha code resets as the system reloads.
  4. Ensure that the Captcha changes as the user enters wrong value.

Additional Test cases for image captcha

image.jpg

  1. Ensure that the code in the Image captcha is viewable.
  2. Ensure the readability of the Captcha.
  3. Ensure that the captcha is case sensitive. (requirement dependent)

Additional Test cases for recaptcha:

Captcha.jpg

  1. Ensure the readability of the Captcha.
  2. Ensure that the captcha is case sensitive.(requirement dependent)
  3. Ensure that the user receives new captcha on clicking the link "Get a new challenge".
  4. Ensure that the system rejects, when the user enters only one valid captcha for the two captchas provided.
  5. Ensure that the Captcha code is not confusing. For eg: Zero and O (Alphabet),numbers 6 and 9)
  6. Ensure that the user receives information about how to use the captcha, on clicking the help button.
  7. 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! :)