|
Beaches and Parking System in Action
Demonstrations:
The
case study is implemented in Java, being the rising star in the
OO environment and Internet-friendly language, in order to illustrate
what event testing is all about and to illustrate one concept
that is unique to Java, that is applet communication.
Here is a description of how they work:
- the first applet, namely the BeachMap
applet, which is located at the left most of the screen (the
long one) will load an image of coastal area in New South Wales,
Australia. This clickable image contains several beaches that
the user can click on identified by the black rectangles around
the hot spot area, i.e. clickable area.
- when one of the available beaches is
clicked on, the BeachInfo applet will go into action. The BeachInfo
applet is at the top on the right of BeachMap applet. Several
things may take place now. First of all the available picture
of the beach are displayed one after another with delays, then
three buttons are displayed. The first button is associated
with playing and stopping the sound, another button (statistic
button) to display the number of visitors in recent time and
the other button is display the parking information in the area.
- when a button is clicked, Java generates
a mouse clicked event. This event is then passed to the registered
event listener. In Java term, the object that implements the
mouseListener interface. In this case the applet itself. For
more information on event handling see Event
Testing Theory.
- if the statistic button is clicked then
the BeachStatistic applet, which is the left of the right most
applet, will display the number of visitors in bar chart format.
If the parking button is clicked then the BeachParking applet
(spreadsheet applet) will update itself.
- the whole process is repeated for a
new beach selection.
Make sure that the current browser is capable
of executing Java 1.1.x applets. Please wait while the applets
are being loaded, this may take up to 1 minute depending on the
data transfer rate of the system.
|