A testing tool that allows component developer to validate component interfaces, functions and behaviors in the simulated or real operation environments is introduced which also leads testers to create, manage and execute test case. The generation of test script is one of the most tough problem of the tool, and according to specification of JUnit, Mock object and In Container, testscript template
... [Show full abstract] & m field mechanism is proposed for Java component to semiautomatically generate test script. The tool's validity is proved via practical test routines for Java component.