Testing Actions

File menu

Open File...

File open dialog appears.

Open Session...

Session open dialog appears.

Copy Session...

Session copy dialog appears.

Delete Session...

Session delete dialog appears.

Exit

When selected, the window should close and the program may exit.

View menu

Refresh

Causes panels to update their contents.

Search Source...

Displays dialog asking for term to look for in currently selected source file. Option to perform case insensitive comparison.

Search Again

Attempts to repeat the last search performed by the "Search Source..." action. If no previous search was made, displays the dialog described above.

Session menu

List Connectors

Prints a list of available JVM connectors to the message log.

Attach to remote...

Shows dialog for inputting host name/port or a shared memory name of the debuggee VM to attach to.

Start VM...

Shows a dialog asking for class name and arguments, with optional debuggee VM options. In addition, the "Java Home" and "JVM Executable" fields are available and populated with default values.

End session

Deactivates the current session.

Terminate VM

Deactivates the current session, terminating debuggee VM.

Suspend

Suspends the debuggee VM.

Resume

Resumes the suspended debuggee VM.

Breakpoints menu

List Breakpoints...

Shows dialog containing all defined breakpoints, along with buttons for managing those breakpoints. See breakpoints checklist for more information. At a minimum, there are the following test cases.

New Breakpoint...

Shows dialog asking for class name and location at which to set breakpoint.

Trace Method...

Shows dialog asking for class and thread filters to control the method entry and exit events.

Catch Exception...

Shows dialog asking for name of the exception to catch.

Thread Breakpoint...

Shows dialog asking for name of the thread.

Class Breakpoint...

Shows dialog asking for class filters.

Watch Variable...

Shows dialog asking for the name of the field to watch.

Step menu

Step Line

Single-steps a source line; steps into method calls.

Step Instruction

Single-steps an instruction; steps into method calls.

Next Line

Single-steps a source line; steps over method calls.

Next Instruction

Single-steps an instruction; steps over method calls.

Finish Method

Finishes the current method and returns to the line following the one that called this method.

Options menu

Set Classpath...

Displays dialog allowing the user to modify the classpath. The dialog contains a list in which each entry is a part of the classpath. The list entries and be moved forward and backward in the overall classpath. List entries can be edited in place, though the focus and cursor don't always seem to work correctly.

Set Sourcepath...

This is exactly like the classpath dialog except that it can be completely empty. Verify the results using the sourcepath command.

Evaluate...

Displays dialog allowing the user to evaluate a Java-like expression. See the Testing Expressions page for details.

Capture Messages...

Displays dialog asking user where to capture messages to. Options include sending messages to "stdout" and/or to a named file.

Preferences...

Shows a dialog with numerous options that can be enabled and values that can be set for the program. Use the following preferences checklist to test this dialog. At a minimum, there are the following test cases.

Options

Displays submenu of checkboxes to control sundry options. Use the following preferences checklist to test these.

Look & Feel

Displays submenu of available JFC "look & feel" options.

Logging

Displays a submenu of checkboxes to control the various logging categories. Test them by turning them all on and running the program through its paces. Bunches of messages should appear in the console that started JSwat.

Windows menu

Minimize All

Causes all of the opened source view windows to become iconified (i.e. minimized). When no source windows are opened, does nothing.

Maximize All

Causes all of the opened source view windows to become deiconified (i.e. maximized). When no source windows are opened, does nothing.

Window list

This is not a menu item per se but rather a special feature of the Windows menu. As source views are opened their name is added to the Windows menu. When source views are closed, their entry in the menu is subsequently removed.

Help menu

Help Index...

Displays a frame (as opposed to a dialog) displaying the help index.

Getting Help...

Displays a frame (as opposed to a dialog) displaying the help screen for getting further help. Otherwise same as help index.

Report a bug...

Displays a frame (as opposed to a dialog) displaying the help screen for reporting a bug. Otherwise same as help index.

About...

About dialog appears.