Getting Started with JavaStar: Exercise: Testing the Names Window


Now that you've created a script that tests the Search window, you're ready to do the same with the Names window.

Instructions

Write, run, and view the results for a script that:

  1. Loads the test database

  2. Displays the names of records in the Names list

  3. Selects and displays the Count von Count record in the main window

  4. Verifies that the text for each field is correct.

Solution

To see a solution for this exercise:

  1. Copy TestNames.java and TestNames.class from the \JavaStar\tutorial\getStarted directory into your work directory.

  2. Use Run Test to playback the test and View Results to examine the log.



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