GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Testing  >  Functional Testing
Go To First  |  Previous Question  |  Next Question 
 Functional Testing  |  Question 6 of 10    Print  
Test cases for Mandatory Fields
A Page/Form has 4 Mandatory fields to be entered before you Submit.

How many no. of test cases are required to verify this?And What are they?




  
Total Answers and Comments: 4 Last Update: September 28, 2009     Asked by: Valusa79 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: srinivasulub1981
 
Hi

 In this scenario we can write the cases for below scenarios.

a. First of submit the page with empty values and observe whether the page 
    throughs the validation messages or not

b. Each time leave any one of the mandatory field, fill remaining fields with valid data, submit the form and verify page should throughs the val messages for left field.

c. Each time leave any two of the mandatory field, fill remaining fields with valid data, submit the form and verify page should throughs the val messages for left fields.

d. Each time leave any 3 of the mandatory field, fill remaining field with valid data, submit the form and verify page should throughs the val messages for left field.

These can be tested in the diff scenarios , scenarios will come by experience.

If the accessable data type is given we can go for data validation test cases


Srinivas


Above answer was rated as good by the following members:
G.D.S.Prasad
August 16, 2008 10:18:31   #1  
Sushma Mosali Member Since: June 2007   Contribution: 271    

RE: Test cases for Mandatory Fields
Well in this case we can have the following scenarios

Five test cases:
1. Enter the data in all the mandatory fields and summit shouldnt issue any error message
2. Enter data in any two mandatory fields and summit should issue an error message
3. Dont enter in any of the fields should issue an error message
4. If the fields accept only number enter numbers in the fields and submit should not issue an error message try to enter only in two fields should issue an error message and enter alphabets in two fields and number in other two fields it should issue an error meaage
5. If the fields doesnt accept special characters then enter the charatcers and submit it.

 
Is this answer useful? Yes | No
December 01, 2008 04:35:32   #2  
srinivasulub1981 Member Since: December 2005   Contribution: 381    

RE: Test cases for Mandatory Fields
Hi

In this scenario we can write the cases for below scenarios.

a. First of submit the page with empty values and observe whether the page
throughs the validation messages or not

b. Each time leave any one of the mandatory field fill remaining fields with valid data submit the form and verify page should throughs the val messages for left field.

c. Each time leave any two of the mandatory field fill remaining fields with valid data submit the form and verify page should throughs the val messages for left fields.

d. Each time leave any 3 of the mandatory field fill remaining field with valid data submit the form and verify page should throughs the val messages for left field.

These can be tested in the diff scenarios scenarios will come by experience.

If the accessable data type is given we can go for data validation test cases


Srinivas

 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
May 27, 2009 05:59:49   #3  
mathan_vel Member Since: December 2007   Contribution: 422    

RE: Test cases for Mandatory Fields
1. Empty 4 fields clicked Submit button and check for the Alert message.
2. Each time leave one field as empty and clicked submit button and check for the Alert message.
3. Each time leave two field as empty and clicked submit button and check for the Alert message.
4. Each time leave three field as empty and clicked submit button and check for the Alert message.
5. Enter the invalid entries (special
characters Alpha-numeric's) for each fields as combination of entries and verify the alert messages.
6. Positive enter the valid entries in all 4 fields and clicked Submit button.

 
Is this answer useful? Yes | No
September 27, 2009 12:28:04   #4  
sr.test.eng Member Since: September 2009   Contribution: 2    

RE: Test cases for Mandatory Fields
It depends on what kind of fileds are these and howdiffeent form each other.
If all are different form each other
we need at least 24 test cases in terms of permutation logic.
In addtion if its a web page we have to include dirty bit test cases.
If fields are numeric or non numeric we have to add those test cases.

 
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