GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Testing  >  Test Cases
Go To First  |  Previous Question  |  Next Question 
 Test Cases  |  Question 253 of 258    Print  
CAPTCHA's
Write testcase for CAPTCHA's?


  
Total Answers and Comments: 4 Last Update: August 24, 2009     Asked by: mitutitu 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: abisurd
 
Captcha should be
1. Human-readable but not computer-readable
2. Have non-dictionary words
3. Have no offensive words
4. Should be sufficiently random

Base your test cases around these requirements.

1 is not very easy to verify, but there may be automated tests that can try (and fail) to make sense of the captcha. For this, input paramaeters would be captcha words/numbers and the text part of it.
2. Can be testing using the API and a representative dictionary.
3. Similar to 2 above, but with a dictionary of offensive words.
4. Run batches of a large number of runs of the Captcha API and store the 'words' returned. Find how many 'words' returned are common between batches. How many is acceptable depends on project management, complexity, security situation.


Above answer was rated as good by the following members:
rajmohan23
March 14, 2009 12:24:05   #1  
abisurd Member Since: March 2009   Contribution: 5    

RE: CAPTCHA's
Captcha should be
1. Human-readable but not computer-readable
2. Have non-dictionary words
3. Have no offensive words
4. Should be sufficiently random

Base your test cases around these requirements.

1 is not very easy to verify but there may be automated tests that can try (and fail) to make sense of the captcha. For this input paramaeters would be captcha words/numbers and the text part of it.
2. Can be testing using the API and a representative dictionary.
3. Similar to 2 above but with a dictionary of offensive words.
4. Run batches of a large number of runs of the Captcha API and store the 'words' returned. Find how many 'words' returned are common between batches. How many is acceptable depends on project management complexity security situation.

 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
July 10, 2009 03:43:00   #2  
saravanan123 Member Since: July 2009   Contribution: 163    

RE: CAPTCHA's

Test Case For Captcha`s


1. Check whether captcha is case sensitive

2. Check captcha can be only numbers and alphabets

3. Check captcha cannot be more than 6 characters

4. Check captcha is accepted only when the captcha available is same as captcha
typed in the captcha field

5. Check captcha displays a new set of numbers when the page is refreshed or
moved to next page.


 
Is this answer useful? Yes | No
August 12, 2009 02:14:39   #3  
mathan_vel Member Since: December 2007   Contribution: 422    

RE: CAPTCHA's
Test Cases for CAPTCHA

1. Ensure that the CAPTCHA code screen should be viewable.
2. Ensure that the CAPTCHA code should be in Image format.
3. Ensure that the CAPTCHA code should be reusable.(able to get new code by clicked link)
4. Ensure that the CAPTCHA code should generate new code once the page is refreshed.
5. Ensure that the CAPTCHA code should generate new code once entered the wrong code.
6. Ensure that the CAPTCHA code should not able to copy/paste.
7. Ensure that the CAPTCHA code should be Case Sensitive or vice versa(According to the Requirement).
8. Ensure that the CAPTCHA code should not distruot the other fields in the form once entered wrong.(Other form fields should not clear)
9. Application should not accept the Invalid CAPTCHA code on form feed and should display proper alert message.
10. Application should accept the Valid CAPTCHA code on form feed.

 
Is this answer useful? Yes | No
August 22, 2009 00:43:07   #4  
rajmohan23 Member Since: August 2009   Contribution: 40    

RE: CAPTCHA's
To check whether the captcha field is defaultly present

To check whether the captcha filed only in alphabets and in numbers

To check whether the captcha filed is changed when the captcha is entered wrongly

To check whether the captcha filed throws proper error message when entered worngly

To check whether the captcha field is case sensitive

To check whether the captcha field is able to copy and paste.

 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape