Viewing, Editing, or Compiling a Source
Viewing the Source of a Violation
You can view the source of a violation, with the problematic line highlighted, by double-clicking the file/line information for the error in the Errors Found panel (in the Class Testing UI) or in the Errors Found branch of the lower Results panel (in the Project Testing UI). Another way to view the source is to right-click that same error message and choose View Source from the shortcut menu.
Editing the Source of a Violation
You can also edit the source of a violation from within Jtest. To edit the source of a violation, right-click the file/line information for the violation message in the Errors Found panel (in Class Testing UI) or in the Errors Found branch of the lower Results panel (in Project Testing UI), and choose Edit Source from the shortcut menu. The source will then open in Notepad (Windows) or vi (UNIX). (To use a different editor, choose Preferences> Configuration Options> Editor, and enter your preferred editor in the dialog box that opens).
Viewing, Editing, and Compiling Any Source
In addition, you can view, edit, and compile the source of any class under test (whether or not it contains a violation) via the Class Testing UI. Before you perform any of these actions, you must first open the class in the Class Testing UI. When your class is open in the Class Testing UI, you can perform any of the following actions:
- View class source in Jtest's Source Viewer: Click Source.
- Edit class source in source editor: Right-click the Source button, then choose Edit Class Source. Notepad (Windows) or vi (UNIX) is used as the default editor. To use a different editor, choose Preferences> Configuration Options> Editor, then enter your preferred editor in the dialog box that opens.
- Compile the current class: Right-click the Source button, then choose Compile Class.
|