Generating and Using Declarations: Using Declarations Files in Record Mode


If you specify your declarations files before you begin recording a test, JavaStar generates test code using your abstracted names.

  1. In the Record/Playback window, click Record.
    This opens the Record Test dialog.

  2. In the Record with Map Files field, enter the list of declarations files or click the Map list button and locate them through navigation.
    The names of map files (JavaStar declaration files) must be fully-qualified class names. For example, if you stored your declarations in a package called NamedbMaps, and your first declaration file is named main, type NamedbMaps.main. You need to list each JavaStar declaration file you want to reference. On Windows platforms, use a semi-colon as a separator; on UNIX platforms, use a colon.

    Note - The declarations files you want to us must already be added to the additional classpath.

    If you choose to use the Map list feature, you'll see that Javastar opens a multi-pane window.

    1. Use the Select an Item pane (upper left) to navigate to your package to open it.
      See Figure 6-3 for a screen shot of the Select Map classes window.

      Select Map classes dialog window

    2. Select a JavaStar declaration file to add.
      This appears in the Edit list pane (upper right) in the Current items field.

    3. Click Add to list to move it to the list below.
      The file is also added to the Path list pane at the bottom. See Figure 6-4.

      Select Map classes with list

    4. Continue until you've added all declarations files.

    5. Click OK.
      JavaStar pastes the path list into the Record with Map Files field.

  3. In the Record Test Script dialog, click OK to begin recording.



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