Importing JUnit test scripts

You can import existing JUnit test scripts into a test project and convert them into component test suites.

The JUnit test scripts must already be located in an existing project in your workspace. If this is not the case, you must first import them into a Java™ project.
To import a JUnit test script:
  1. Select File > Import > JUnit test into component test project. This opens the Import JUnit Test wizard.
  2. Select the test project where you want to import the JUnit test script and click Next. If necessary, click New to create a new test project.
  3. Select the JUnit tests that you want to convert into Java component tests and click Finish.
This generates a new test suite where the Java test script has been converted into a component test behavior script. You can now use the test data table to specify your test data and other component test features, such as initialization points, validation actions, and timers.

Related concepts
Automated component testing

Terms of use | Feedback
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.