Testing JFC Components: Setting Up to Test the JFC


Before you can do this tutorial, you must install Swing 1.0.2 or higher. This is needed to run any application using Swing components. You can locate this product at the Java web site. Be sure to update your classpath to include <swing>/swingall.jar.

We have copied the SwingSet application to this directory: tutorial/API/TCTester/Application.

You can set up a project to run the SwingSet applet.

  1. Set the App to the applet file URL:

  2. Establish the test working directory, JST path, and test path, as:

  3. Set the test results directory to:

  4. Move to the Mapping pane. You will need to use a text map and a non-component locator to test this application. You will find both in the directory where you installed JavaStar. Edit the list for the NCL to include:

  5. Ensure the text map list includes:

  6. Save the project by clicking on Save As... and saving it in:

Now that javastar can find the application, its needed Swing classes, and the necessary NCL's and text maps, you are ready to record a test.




Send feedback to JavaStar-feedback@suntest.com
Copyright © 1998 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, CA 94303. All rights reserved.