Build and Test Local Input Validation
Implement server-side style validation in a local Python program and test normal, malformed, oversized, and encoded inputs using fictional data.
Implement server-side style validation in a local Python program and test normal, malformed, oversized, and encoded inputs using fictional data.
Prepare 25m · Build 105m · Verify 25m · Document 25m
Work only inside the folder created by Smartphone-Academy.py prepare local-form-validation. Use the supplied fictional samples or data you are explicitly authorized to handle.
Prepare the Termux workspace
Open Termux in the Academy folder and create the safe workspace. The companion generates samples, notes, and evidence files under your account.
python Smartphone-Academy.py prepare local-form-validationNo root. Work only with the supplied files under $HOME.Practical mission
- Define explicit length, character, type, and normalization rules for each field
- Keep validation separate from output encoding and explain why both are needed
- Run a table of valid, malformed, oversized, and Unicode test cases
- Record false positives, false negatives, and one improvement for the next version
A validate_form.py program, cases.json, and results.md showing acceptance criteria and rejected inputs.
Quality gate
Analyst reflection
Which result from “Record false positives, false negatives, and one improvement for the next version” needs additional evidence before it could support a real operational decision?
After checking the deliverables, run python Smartphone-Academy.py complete local-form-validation. Progress is stored locally in the Termux home directory.