• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

boundary value testing..max & min

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,
I was reading about boundary value testing..how can we always find min and max values? sometimes we may not know the max value for example if we read from a file, what would be the max value, min would be empty file, max would be ..? any suggestions thanks,
 
author & internet detective
Posts: 42162
937
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Harii,
Boundary value testing usually refers to significant values in your program. Suppose, you have the following code:

You would want to test numbers near 50 and 100. For example, you could test 49, 50, 51, 99, 100 and 101.
Other numbers that are often boundary conditions are -1, 0, 1, and the numbers surrounding the maximum/minimum values a variable can hold.
One boundary condition is an empty file as you pointed out. The others would depend on the logic of the code reading the file.
 
reply
    Bookmark Topic Watch Topic
  • New Topic