FeaturesPluginsDocs & SupportCommunityPartners

Output Window Test Specification

Author: Marian Mirilovic
Version:
Last update: 04/19/2005
Introduction: Output window is used for displaying some informations like errors after compilation, it's also used for input/output from running program.
Comment:

Table of Contents

Test suite 1: Hyperlinks

Purpose: Compilation output contains linked errors to lines that contains them.
Setup: Start IDE, create simple program with many compilation errors.

#Test caseDescription
1Hyperlinked Exceptions
  1. Compile the program.
RESULT:Output of compilation (tab in window) contains hyperlinks to errors is the source.
2Hyperlinked Exceptions try links
  1. Compile the program.
  2. Click on the first exception hyperlink in the Output window
RESULT:Hyperlink is selected in Output. Line with error is selected and highlighted in the Source Editor. Source Editor is focused.
3Hyperlinked Exceptions - Next Error
  1. Compile the program.
  2. Press F12, or Build->Next Error.
RESULT:Hyperlink is selected in Output. Line with next error is selected and highlighted in the Source Editor. Source Editor is focused.
4Hyperlinked Exceptions - Previous Error
  1. Compile the program.
  2. Press Shift+F12, or Build->Previous Error.
RESULT:Hyperlink is selected in Output. Line with error is selected and highlighted in the Source Editor. Source Editor is focused.
5Cursor changes over hyperlinked exceptions
  1. Compile the program with errors.
  2. Move with cursor over any exception hyperlink in the Output window
RESULT:Cursor changes to 'hand'
6Hyperlinked exception from method name substring of class name
  1. Execute the program: public class History {static public void updateHistory() {int a = 1/0;}public static void main(String[] args){updateHistory();}}.
  2. Wait for arising exception from runned application.
RESULT:Line with error is hyperlinked.

Test suite 2: Try output from execution

Purpose: Execution container is opened in Output Window and output from executed program is written to output.
Setup: Start IDE, create simple program.

#Test caseDescription
1Never-ending loop - write to output each iteration
  1. Execute the program: int i=0; while(true) System.out.println(""+(i++));.
  2. Wait for opening Execution View in output window and opening tab for output from runned application.
RESULT:It should be possible terminate program by popup in Execution View.
2Hyperlinked exception from method name substring of class name
  1. Execute the program: public class History {static public void updateHistory() {int a = 1/0;}public static void main(String[] args){updateHistory();}}.
  2. Wait for arising exception from runned application.
RESULT:Line with error is hyperlinked.

Test suite 3: Output window possibilities

Purpose: Test possibilities of output window.
Setup: Start IDE, execute simple program that prints one long line to output.

#Test caseDescription
1Copy
  1. Have any output in a Output window.
  2. Select some text in the Output window. Choose Copy from popup in Output window
  3. Choose Paste from popup in a editor window
RESULT:The text is copied.
2Find...
  1. Have any output in a Output window.
  2. Choose Find... from popup in Output window
  3. Try find a text in Output window
RESULT:The text pattern is found.
3Find Next
  1. Have any output in a Output window. Some text pattern repeats in the text
  2. Choose Find... from popup in Output window and specify the text pattern to find.
  3. Choose Find Next from popup in Output window again a few times.
RESULT:The next text pattern occurency is found every time.
4Wrap text
  1. Have any output in a Output window. Change window width to show vertical scrollbar.
  2. Choose Wrap text from popup
RESULT:The text is wrapped and scroll bar disappears
5Save as
  1. Have any output in a Output window.
  2. Choose Save as from popup
RESULT:The content of output window tab is saved to specified location.

Generated: 2005 09 19 02:40
Companion
Projects:
MySQL Database Server   Open JDK: an Open SourceJDK   GlassFish Community: an Open Source Application Server    Mobile & Embedded Community    Open Solaris   java.net - The Source for Java Technology Collaboration   Virtual Box - full virtualizer  Open ESB - The Open Enterprise Service Bus Powered by