Preparation for this lesson involves:
Note - This tutorial does not provide installation instructions for JavaStar. For step-by-step installation details, see the chapter "Preparing to Use JavaStar" in the JavaStar User's Guide.
In this tutorial, you'll be using a database (.db
) file that stores names and addresses. Each test run will change the contents of the database. Because each test will require that the database be in its original state, you'll need to preserve a "clean" (unedited) copy at all times. Before each test run, you can copy the original database over the edited version.
sesame.db
file from the JavaStar\examples\namedb1
directory to the JavaStar\tutorial
directory.JavaStar\tutorial
directory, copy sesame.db
to test.db
.sesame.db
master database, which you'll keep clean and unedited, and the test.db
test that you'll replace each time you run a test.
If you prefer to always copy the sesame.db
file from the JavaStar\examples\namedb1
directory, you just need to be sure that no other users have access to that directory. If they do, they might inadvertently load and use this database, corrupting the integrity of your tests.
Before you launch JavaStar, make sure you are in your working directory.
Note - Your JavaStar work directory defaults to the directory where you launch JavaStar. You can reset this default within JavaStar, however, this doesn't effect the default directory that appears when you open a file dialog window. This becomes an issue when you are opening file dialogs from within your application. But because JavaStar stores the file you open as a path relative to your working directory, this is only an issue if you change your working directory in a later test run.
tutorial
directory, change to that directory.JavaPath javastar
java
defined in your system path, you type:
java javastar
Note - If you get an error message stating that namedb cannot be accessed, click OK to dismiss the window. You'll define the proper path to namedb in the upcoming section Creating a Project File.
If your launch is successful, you should see the JavaStar opening screen, with the main menu displayed to the left:
If you get the message Can't find class javastar
, check your CLASSPATH
setting to make sure the path to JavaStar is correct.
For the next several lessons, you'll be working with the same working directory and the same test application. To set your test environment defaults, you'll create a project file that stores information about the application under test, your Java settings, and other information.
You can find the Project Settings panel on the main screen, to the right of the main menu.
To create a project file for the tutorial:
\javastar\examples\namedb1
directory and double-click on the file namedb.class
.
CLASSPATH
field is automatically filled in with the path to the application you selected.
C:\SunTest\JavaStar\
tutorial
namedb.prj
as the file name and save.Send feedback to
JavaStar-feedback@suntest.com
Copyright © 1998
Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, CA 94303.
All rights reserved.