Descriptor Action & Logicsheet Car Reservation Informal validation results
boolean userHasSeenForm = (!=null);
How many persons should the car seat? if (userHasSeenForm) { if ( ) { The smallest available car seats } else if ( ) { The largest available car seats } else if ( ) { Some error occured. Your input is not correct. } }
Please enter your deposit EUR if (userHasSeenForm) { if ( ) { You need to specify a deposit } else if ( ) { The deposit has to be at least EUR } else if ( ) { The deposit has to be at most EUR } else if ( ) { } else if ( ) { Some error occured. Your input is not correct. } }
Please enter your email if (userHasSeenForm) { if ( ) { You need to specify an email } else if ( ) { This does not seem to be a valid email address. Expected
} else if ( ) { Only addresses with up to characters are accepted } else if ( ) { } else if ( ) { Some error occured. Your input is not correct. } }
Please enter the billing address if (userHasSeenForm) { You need to specify an address. Only addresses with up to characters are accepted. Some error occured. Your input is not correct. }
Please enter the type of car you would like to reserve if (userHasSeenForm) { You need to specify a type: cabrio, sedan, station, racing. Only are accepted. Some error occured. Your input is not correct. }