5.3. Add Events

The test case begins with sending of the request from the client to the server. Therefore, add an event by dragging the Add event Add Event() button from the Palette and dropping it on the client's lifeline.

Figure 5.5. Add event

Add event


Enter request course list as the event's name and press the OK button. The event will be shown on the lifeline of the client actor.

A sending event has been created. Next, a receiving event has to be created on the server side. Perform a drag'n'drop of Add event to the server's lifeline and name the event handle request. This event will receive the request, check it and send back a response.