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
|
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 |
| 1 | Hyperlinked Exceptions | 1.
Compile the program.
|
|
EXPECTED RESULT:
Output of compilation (tab in window) contains hyperlinks to errors is the source. |
| 2 | Hyperlinked Exceptions try links | 1.
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. |
| 3 | Hyperlinked Exceptions - Next Error | 1.
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. |
| 4 | Hyperlinked Exceptions - Previous Error | 1.
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. |
| 5 | Cursor changes over hyperlinked exceptions | 1.
Compile the program with errors. 2.
Move with cursor over any exception hyperlink in the Output window
|
|
EXPECTED RESULT:
Cursor changes to 'hand' |
| 6 | Hyperlinked 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.
|
|
EXPECTED RESULT:
Line with error is hyperlinked. |
|
|
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 |
| 1 | Never-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.
|
|
EXPECTED RESULT:
It should be possible terminate program by popup in Execution View. |
| 2 | Hyperlinked 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.
|
|
EXPECTED RESULT:
Line with error is hyperlinked. |
|
|
Purpose:
Test possibilities of output window.
Setup:
Start IDE, execute simple program that prints one long line to output.
| # | Test case [automated] | Description |
| 1 | Copy | 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
|
|
EXPECTED RESULT:
The text is copied. |
| 2 | Find... | 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. |
| 3 | Find 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.
|
|
EXPECTED RESULT:
The next text pattern occurency is found every time. |
| 4 | Wrap text | 1.
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 |
| 5 | Save as | 1.
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