Test data

Test data plays a critical role in how effectively software is validated. Different input types behave differently across APIs, user interfaces, and integrations. This page brings together practical test data references for common input types such as booleans, dates, names, and URLs.

Use these examples to design realistic test scenarios, uncover edge cases, and improve overall test coverage.

Boolean test data

Boolean inputs look simple, but real systems accept far more than true and false. APIs, UI forms, CSV uploads, and integrations interpret Boolean values differently. This page provides a practical reference of valid, boundary, empty, and invalid Boolean test data. Use these examples to design stronger test scenarios and avoid silent logic failures.

Valid boolean test data

# Valid Value # Valid Value
1true16"NO"
2false17"on"
3TRUE18"off"
4FALSE19"ON"
5"true"20"OFF"
6"false"21True
7"TRUE"22False
8"FALSE"23"True"
9124"False"
10025"enabled"
11"1"26"disabled"
12"0"27"Y"
13"yes"28"N"
14"no"29Boolean(true)
15"YES"30Boolean(false)

Boundary boolean test data

# Boundary Value # Boundary Value
1216" yes "
2-117" no "
39918"on "
4-9919" off"
50.020"1 "
61.021" 0"
70.000122"01"
8-0.000123"00"
9" true"24"10"
10"false "25[]
11" true "26[1]
12"TRUE\n"27{}
13"FALSE\t"28"true" (JSON)
14"TrUe"29"false" (JSON)
15"FaLsE"305 > 3

Empty boolean test data

# Empty / Null Value # Empty / Null Value
1null16nil
2NULL17DBNull
3""18Optional.empty()
4" "19"\n"
5" "20"null"
6undefined21"NULL"
7Missing field22"undefined"
8{}23Whitespace string
9Empty CSV value24Implicit false default
10Empty CSV column25Implicit true default
11Field removed26Empty request body
12Field with no value27Partial JSON
13NaN28Empty multipart field
14void29Empty form-data field
15None30Short CSV row

Invalid boolean test data

# Invalid Value # Invalid Value
1"ture"162.5
2"flase"17-2.5
3"tru"18"2"
4"fal"19"-1"
5"maybe"20"ten"
6"ok"21"zero"
7"cancel"22[]
8"enable"23[true, false]
9"disable"24{ "value": true }
10"truth"25function()
11"falsehood"26<true>
12"truefalse"27"✔"
13"false0"28"✖"
14"yesno"29"🙂"
15"onoff"30"SELECT"


Related topics