|
 |
 |
 |
 |
 |
 |
Barracuda - Simple Login Test Cases |
 |
 |
 |
This page provide a series of
test cases to excercise the SimpleLogin app...
- Login Event - should take you
to the Login screen.
- Bogus Event - try firing an invalid
event (should redirect you to the default error screen)
- Non-HttpRequestEvent - try
and bypass the request event API and go directly to the RenderLoginScreen handler (should
redirect you to the default error screen...this is very important, because we want to
ensure that we can limit which parts of our event model the outside world can get to...the
RenderLoginScreen event handler assumes that certain things have already happened --
validation, authentication, etc -- people should not be able to guess their way into parts
of an app. They should be forced to go through the API which we expose, in this case,
events which extend from HttpRequestEvent. Consequently, the ApplicationGateway will only
dispatch events that are instances of HttpRequestEvent...anything else will be dispatched
as a general HttpRequestEvent, which can then be redirected appropriately.)
- Attempt
Login (valid user/pwd) - actually try and Login using a valid user/pwd (if you've
already logged in once, it'll skip this screen and take you right on in to the main
screen)
- Attempt
Login (invalid user) - actually try and Login using an invalid user (clear your
session before trying this)
- Attempt
Login (invalid pwd) - actually try and Login using an invalid pwd (clear your session
before trying this)
- Attempt
Login (generate an unexpected error) - try and Login with user='santa' to illustrate
Exceptional event chaining (clear your session before trying this)
- Try going to the Main Screen (w/out
logging in) - shouldn't work, unless you have logged in once already
- Clear session information -
effectively log yourself out, clearing all session information as you go. Again won't work
unless you have already logged in...
|
|
 |
 |
 |
 |
 |
 |
For all the latest information on
Barracuda, please refer to http://barracudamvc.org
Questions, comments, feedback? Let
us know... |
|