GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Interview Questions  >  Testing
Go To First  |  Previous Question  |  Next Question 
 Testing  |  Question 278 of 388    Print  
what are the no. of test cases to check that a no. is exist between one to hundred.

  
Total Answers and Comments: 6 Last Update: November 14, 2008     Asked by: kartik 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
January 30, 2007 00:01:49   #1  
thotakurasriharsha Member Since: May 2006   Contribution: 2    

RE: what are the no. of test cases to check that a no....
It dependsIn this case we write testcases depending upon the Boundary Value Analysis(BVA(Range)) and Equavalance Class Partition(ECP(Type)). 1. BVA(Number)MIN = 1 -> PASSMIN+1 = 2 -> PASS MIN-1 = 0 -> FAILMAX = 100 -> PASSMAX+1 = 101 -> FAILMAX-1 = 99 -> PASS2. ECP(Number)Valid Invalid0-9 a-z, A-Z, Special Chars3. give negative number4. Blank
 
Is this answer useful? Yes | No
February 08, 2007 00:28:31   #2  
Lakshmi        

RE: what are the no. of test cases to check that a no....
The question is for Range like 1 to 100.

so by applying the concept of Boundary value Analysis and Equivalence Partitioning-the total number of Test Case can be 3 (1 invalid + 2 invalid)



1 invalid ----

Ex: any number between 1 to 100.



2 invalid ----

Ex: one Value which is <1 and aonther value >100.

 
Is this answer useful? Yes | No
February 12, 2007 08:44:05   #3  
srilathareddy        

RE: what are the no. of test cases to check that a no....
using BVA, we can write 5 test cases

min is 1 and max is 1001.

enter valid data with min as 12.

enter valid data with min +1=23.

enter valid data with middle value (min+max)/2=55.5

we can take the value as 55 or 564.

enter valid data with max-1 value =995

enter valid data with max value =100

its not a fixed value so we can use BVA instead of ECP where in ECP we take only either valid or invalid as the value is fixed

 
Is this answer useful? Yes | No
February 14, 2007 02:07:09   #4  
jainbrijesh Member Since: September 2006   Contribution: 1149    

RE: what are the no. of test cases to check that a no....
six test cases.
 
Is this answer useful? Yes | No
March 03, 2007 22:24:41   #5  
praveen        

RE: what are the no. of test cases to check that a no....
6 test cases
for 1
for o
for 2
for 99
for 100
for 101

 
Is this answer useful? Yes | No
November 14, 2008 04:45:07   #6  
helloanup Member Since: November 2008   Contribution: 8    

RE: what are the no. of test cases to check that a no. is exist between one to hundred.
9 testcases !!..

Here,  Lower boundary = 1
          Upper boundary = 100

So, for Positive testing

#1. For  " 1 "     --> ( Lower boundary value )
#2. For  " 2 "     --> ( Lower boundary value + 1 )
#3. For  " 50 "   --> ( Lower boundary value + Upper boundary value ) / 2
#4. For  " 99 "   --> ( Upper boundary value -  1 )
#5. For  " 100 " --> ( Upper boundary value )

Note: #3.  Can have  any value like 20, 45, 69 etc ... For Eg: 50 taken here. 

Similarly, Negative testing,

#6. For  " 0 "     --> ( Lower boundary value - 1 )
#7. For  " 101 " --> ( Upper boundary value + 1 )
#8. For  " ABCD...XYZ"  --> Alphabets i.e. Lower case & Upper case both
#9. For  " !@#$..   _+" --> Special characters + including blank space.

Please let me know if I have missed any ... ???


Cheers,
Anup | Mahindrakar




 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 




About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape