Test Cases and Code Review for Order and Hotel Reservation Validation
Validation Test Cases
Variables, Rules, Valid and Invalid Classes
Variable / Rule / Valid Class / Invalid Class
order_id / Datatype / ECV1: 32 hex string / ECNV1: not a string
order_id / Content: hexadecimal characters / ECV2: 32 hex string / ECNV2: 32 characters, non-hex
order_id / Size = 32 characters / ECV3: 32 hex string; BVV1: 32 hex string / ECNV3: more than 32 characters; ECNV4: less than 32 characters; BVNV1: 33 hex characters; BVNV2: 31 hex characters
new_order_type / Datatype / ECV4: valid value / ECNV5: datatype not string
new_order_type / Allowed values / ECV5: "REG"; ECV6: "PREM" / ECNV6: other value
- / Outputs / ECV7: valid phone number / ECNV7: Ex: InvalidOrder_idSize; ECNV8: Ex: order_idNotStr; ECNV9: Ex: ord_idNotHexVal; ECNV10: alreadySent;...