A server-side component architecture helps us to implement an
enterprise application based on the three-tier architecture. To
assure its quality, a great deal of enterprise components
composing it are required to test their quality adequately in
time. However, previous component testing techniques did not consider
an enterprise component on the three-tier architecture. Therefore, we propose an automated testing technique for an enterprise component.
We first propose a test oracle model which collects constraint
information from the specification described in OCL and location
information to reference behaviors of the component on the
three-tier architecture. Then, we carry out a constraint-based
testing using the model. We generate test drivers corresponding
to test cases, execute them, and check whether constraints are
satisfied or not. We have implemented our testing environment,
Component Testing Manager(CTM), to support the automated process
of our approach. It focused EJB component and used JPDA
architecture in order to access an enterprise component and Java
virtual machine.