GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Testing  >  Testing Scenarios
Go To First  |  Previous Question  |  Next Question 
 Testing Scenarios  |  Question 31 of 35    Print  
There are 3 mandatory fields and 3 optional fields :

How many possible testcases can be written?

How many positive testcases can be written?

  
Total Answers and Comments: 6 Last Update: April 21, 2009     Asked by: venkatesank 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: sbalu
 
Positive Case: 1 (with all mandatory & all optional fields)
Negative Case : 4 (1 for All blank mandatory fields , 3 for individual lank field)

Above answer was rated as good by the following members:
saimadhu, sgondkar, abouzar, santuik
September 22, 2007 06:00:46   #1  
tambui Member Since: September 2007   Contribution: 5    

RE: There are 3 mandatory fields and 3 optional fields...
1. 3 mandatiory fields and 3 optional fields are not defined and clarified clearly. What are the fields? Field contains text string or number or date? The possible cases depend on the field type.

2. There are 3x3 positive cases can be written. however if you apply pairwise technique you can reduce the positive case.

 
Is this answer useful? Yes | No
January 04, 2008 01:50:55   #2  
sbalu Member Since: January 2008   Contribution: 1    

RE: There are 3 mandatory fields and 3 optional fields :How many possible testcases can be written?How many positive testcases can be written?
Positive Case: 1 (with all mandatory & all optional fields)
Negative Case : 4 (1 for All blank mandatory fields 3 for individual lank field)

 
Is this answer useful? Yes | NoAnswer is useful 2   Answer is not useful 0Overall Rating: +2    
September 01, 2008 02:18:40   #3  
srinivasulub1981 Member Since: December 2005   Contribution: 381    

RE: There are 3 mandatory fields and 3 optional fields :How many possible testcases can be written?How many positive testcases can be written?
Hi

It would be a better help if mentioned the field type now we can write the cases only for Optional or mand fields. Briefly we can write the cases like below

1. Submit the page with empty optional fields and verify whether the val msgs shown for optional fields

2. Each time leave any one of the optional feilds submit the page and verify whether the val msgs shown

3. Submit the page with empty mand fields and verify whether the val msgs shown for mand fields

4. Each time leave any one of the mand feilds submit the page and verify whether the val msgs shown



 
Is this answer useful? Yes | No
April 17, 2009 01:36:39   #4  
mathan_vel Member Since: December 2007   Contribution: 422    

RE: There are 3 mandatory fields and 3 optional fields :How many possible testcases can be written?How many positive testcases can be written?
i. One Positive Test case which will cover all the fields(Valid Data)
ii. Four Negative Test case (one for all empty field and 3 for invalid data for all 3 individual fields)

 
Is this answer useful? Yes | No
April 19, 2009 10:10:09   #5  
tambui Member Since: September 2007   Contribution: 5    

RE: There are 3 mandatory fields and 3 optional fields :How many possible testcases can be written?How many positive testcases can be written?
To anwser this question we need to assume something.

We understand that we have several testing techniques to design test cases from user requirements. In this case you mentioned something unclear therefore it will be hard to anwser the question correctly. In this case you need to clarify in details about the 3 mandatory fields and 3 optional fields. If not you can assume and anwser the question with your assumption. In addition depend on how developers handle errors in this case. If they handle field by field then the total test cases will increase. If they handle all fields at the same time then the test cases will reduce.

That is why testing is so hard and flexible. Testing requires both systematical methods and experienced methods.

 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
April 19, 2009 14:47:16   #6  
kumarsingh Member Since: April 2009   Contribution: 3    

RE: There are 3 mandatory fields and 3 optional fields :How many possible testcases can be written?How many positive testcases can be written?

1) Leave blank 3 mandatory fields

2) Leave blank 2 mandatory fields

3) Leave blank 1 mandatory filed


Comment: for 1 2 and 3 valid error message need to displayed.


4) Leave blank 3 optional fields

5) Leave blank 2 optional fields

6) Leave blank 1 optional field


Comment:

-use 4 5 and 6 entering all the mandatory fields. Without error message task
should be performed

-use 4 5 and 6 along with above 1 2 and 3 test cases. Respective error message
should display.


7) Enter all the mandatory fields and all the optional fields

Comment: Task should be performed.


8) Enter all the mandatory fields and no optional fields

Comment: Task should be performed.



 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    


 
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