Banking Customer Form

This specification uses validation checks for a bank customer form. We will add further specifications as a running example for the rest of this project.

Validate First Name

Inputing Andrew into the name field is valid.

Inputing David into the name field is valid.

Inputing Steven into the name field is valid.

Inputing Stephen into the name field is valid.

Inputing 12345 into the name field is valid.

Inputing Empty String into the name field is invalid.

Inputing null into the name field is invalid.

Inputing Pr@sh@nt into the name field is invalid.

131ms

Validate email

Inputing foooooooooo is invalid.

Inputing fo@ooooooo@oo@ is invalid.

Inputing joe@gmail.com is valid.

Inputing joe@ is invalid.

Inputing @gmail is invalid.

Inputing joe@#gmail is invalid.

Inputing jAE$#AAA@#$RF is invalid.

Inputing joe@@mail.com is invalid.

5ms

Validate date format

Inputting 12-12-2012 is valid.

Inputting 2SW#$#RFER$ES is invalid.

Inputting 01-01-1999 is valid.

Inputting 01-01-01-2011 is invalid.

Inputting 03-11-2011 is valid.

Inputting 2012-15 is invalid.

Inputting 2-Jan-2012 is invalid.

5ms

Validate postcode

Inputting 6011 is valid.

Inputting 1011 is valid.

Inputting 9980 is valid.

Inputting 45615611 is invalid.

Inputting 15500 is invalid.

5s 9ms