TS 61 OutputWindow
Output Window Test Specification for NetBeans 6.1
Author: Petr Chytil
Last update: 01/31/2008
Introduction: Output window is used for displaying some information like errors after compilation, it's also used for input/output from running program.
Remark: Note that this spec has been replaced by TS_73_OutputWindow.
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.
- Hyperlinked Exceptions
- Compile the program.
- EXPECTED RESULT: Output of compilation (tab in window) contains hyperlinks to errors is the source.
- Hyperlinked Exceptions try links
- Compile the program.
- 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.
- Hyperlinked Exceptions - Next Error
- Compile the program.
- Press CRTL+Period, or Navigate -> Next Error (try both co cover actions testing).
- EXPECTED RESULT: Hyperlink is selected in Output. Line with next error is selected and highlighted in the Source Editor. Source Editor is focused.
- Hyperlinked Exceptions - Previous Error
- Compile the program.
- Press CTRL+Comma, or Navigate -> Previous Error (try both co cover actions testing).
- EXPECTED RESULT: Hyperlink is selected in Output. Line with error is selected and highlighted in the Source Editor. Source Editor is focused.
- Cursor changes over hyperlinked exceptions
- Compile the program with errors.
- Move with cursor over any exception hyperlink in the Output window
- EXPECTED RESULT: Cursor changes to 'hand'
- Hyperlinked exception from method name substring of class name
- Execute the program:
public class History {static public void updateHistory() {int a = 1/0;}public static void main(String[] args){updateHistory();}
. - Wait for arising exception from run application.
- EXPECTED RESULT: Line with error is hyperlinked.
- Execute the program:
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.
- Never-ending loop - write to output each iteration
- Execute the program:
int i=0; while(true) System.out.println(""+(i++));
. - Wait for showing running task in status bar.
- EXPECTED RESULT: It should be possible terminate program by clicking on 'x' on the right side of running task's name in status bar.
- Execute the program:
Test suite: Output window possibilities
Purpose: Test possibilities of output window.
Setup: Start IDE, execute simple program that prints one long line to output.
- Open Output window
- Close Output window if opened.
- Open Output window using menu - push Window > Output > Output
- Close Output window.
- Open Output window using CTRL+4 shortcut.
- EXPECTED RESULT: Output window is opened and active after any of these two actions is invoked.
- Copy
- Have any output in a Output window.
- Select some text in the Output window. Choose Copy from popup in Output window
- Choose Paste from popup in a editor window
- EXPECTED RESULT: The text is copied.
- Find...
- Have any output in a Output window.
- Choose Find... from popup in Output window
- Try find a text in Output window
- EXPECTED RESULT: The text pattern is found.
- Find Next
- Have any output in a Output window. Some text pattern repeats in the text
- Choose Find... from popup in Output window and specify the text pattern to find.
- Choose Find Next from popup in Output window again a few times.
- EXPECTED RESULT: The next text pattern occurency is found every time.
- Wrap text
- Have any output in a Output window. Change window width to show horizontal scrollbar.
- Choose Wrap text from popup
- EXPECTED RESULT: The text is wrapped and scroll bar disappears
- Save as
- Have any output in a Output window.
- Choose Save as from popup
- EXPECTED RESULT: The content of output window tab is saved to specified location.
- Go to the beginning of the line
- Have any output in a Output window.
- Put caret into Output window and press home key.
- EXPECTED RESULT: Caret is placed before first character of the line.
- Go to the end of the line
- Have any output in a Output window.
- Put caret into Output window and press end key.
- EXPECTED RESULT: Caret is placed after last character of the line.
- Go to the beginning of the output
- Have any output in a Output window.
- Put caret into Output window and press ctrl+home key.
- EXPECTED RESULT: Caret is placed before first character of the output's first line.
- Go to the end of the output
- Have any output in a Output window.
- Put caret into Output window and press ctrl+end key.
- EXPECTED RESULT: Caret is placed after last character of the output's last line.
- Fonts and colors
- Open main menu Tools | Options | Miscellaneous | Output.
- Make some changes in color and font of Output Window.
- EXPECTED RESULT: Colors and fonts are changed as expected.