FeaturesPluginsDocs & SupportCommunityPartners

Output Window Test Specification for NetBeans 4.1

Author: Lukas Hasik
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.

Table of Contents

Test suite: Hyperlinks

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

#Test case [automated]Description
1Hyperlinked Exceptions1. Compile the program.
EXPECTED RESULT: Output of compilation (tab in window) contains hyperlinks to errors is the source.
2Hyperlinked Exceptions try links1. Compile the program.
2. Click on the first exception hyperlink in the Output window
EXPECTED RESULT: Hyperlink is selected in Output. Line with error is selected and highlighted in the Source Editor. Source Editor is focused.
3Hyperlinked Exceptions - Next Error1. Compile the program.
2. Press F12, or Build->Next Error.
EXPECTED 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 Error1. Compile the program.
2. Press Shift+F12, or Build->Previous Error.
EXPECTED 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 exceptions1. Compile the program with errors.
2. Move with cursor over any exception hyperlink in the Output window
EXPECTED RESULT: Cursor changes to 'hand'
6Hyperlinked exception from method name substring of class name1. 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.
EXPECTED RESULT: Line with error is hyperlinked.


Test suite: 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 case [automated]Description
1Never-ending loop - write to output each iteration1. 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.
EXPECTED RESULT: It should be possible terminate program by popup in Execution View.
2Hyperlinked exception from method name substring of class name1. 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.
EXPECTED RESULT: Line with error is hyperlinked.


Test suite: Output window possibilities

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

#Test case [automated]Description
1Copy1. 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
EXPECTED 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
EXPECTED RESULT: The text pattern is found.
3Find Next1. 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.
EXPECTED RESULT: The next text pattern occurency is found every time.
4Wrap text1. Have any output in a Output window. Change window width to show vertical scrollbar.
2. Choose Wrap text from popup
EXPECTED RESULT: The text is wrapped and scroll bar disappears
5Save as1. Have any output in a Output window.
2. Choose Save as from popup
EXPECTED RESULT: The content of output window tab is saved to specified location.



Generated: Tue Apr 19 18:05:44 CEST 2005
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