2value BVA guidance

INPUT: value (integer number)
IF (value ≤ 100 OR value ≥ 200) THEN write “value incorrect”
ELSE write “value OK”

My equivalence partitions are (1-100) (101, 199,) (>= 200 ), so 2 value BVA are 100, 101, 199, 200. Am I wrong? please explain

1 Like

@sujjipuli .
This I got from chatGpt & seems its correct :slight_smile:

Equivalence partitions:

  1. Less than or equal to 100:
  • Values in this range are expected to result in “value incorrect.”
  1. Between 101 and 199 (exclusive):
  • Values in this range are expected to result in “value OK.”
  1. Greater than or equal to 200:
  • Values in this range are expected to result in “value incorrect.”

Boundary values:

  1. Lower Bound (Just below the lower limit):
  • 100: To test the transition from “value incorrect” to “value OK.”
  1. On the Lower Limit:
  • 101: To test the transition from “value OK” to “value incorrect.”
  1. On the Upper Limit:
  • 199: To test the transition from “value OK” to “value incorrect.”
  1. Upper Bound (Just above the upper limit):
  • 200: To test the transition from “value incorrect” to “value OK.”

So, your identified boundary values are correct: 100, 101, 199, and 200. These are the values you would use to test the system at the edges of the equivalence partitions to ensure that the program behaves correctly at these critical points of input.

1 Like

Thanks for the response Amit

Since this is a didactic question, and ignores side effects which we know are where most bugs actually do lie, I feel compelled to add Reddit - Dive into anything