TS 74 OutputWindow

Output Window Test Specification for NetBeans 7.4

Author: Petr Chytil, Jarda Havlin, Petr Somol
Last update: 27 07 2013 by markiewb@netbeans.org
Introduction: Output window is used for displaying some information like errors after compilation, it's also used for input/output from running program.


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.

  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 in Output Window Only
    1. Compile the program.
    2. Activate Output window.
    3. Press CTRL+Period, or Navigate -> Next Error (try both co cover actions testing).
    • EXPECTED RESULT: Hyperlink is selected in Output. Output remains focused.
  4. Hyperlinked Exceptions - Next Error with Go To Source
    1. Compile the program.
    2. Activate Output window.
    3. Press CTRL+Period, or Navigate -> Next Error (try both co cover actions testing).
    4. Press Enter.
    • EXPECTED RESULT: Hyperlink is selected in Output. Line with next error is selected and highlighted in the Source Editor. Source Editor is focused.
  5. Hyperlinked Exceptions - Previous Error in Output Window Only
    1. Compile the program.
    2. Activate Output window.
    3. Press CTRL+Comma, or Navigate -> Previous Error (try both co cover actions testing).
    • EXPECTED RESULT: Hyperlink is selected in Output. Output remains focused.
  6. Hyperlinked Exceptions - Previous Error with Go To Source
    1. Compile the program.
    2. Activate Output window.
    3. Press CTRL+Comma, or Navigate -> Previous Error (try both co cover actions testing).
    4. Press Enter.
    • EXPECTED RESULT: Hyperlink is selected in Output. Line with error is selected and highlighted in the Source Editor. Source Editor is focused.
  7. 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'
  8. 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 run 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.

  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 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.


Test suite: Output window possibilities

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

  1. Open Output window
    1. Close Output window if opened.
    2. Open Output window using menu - push Window > Output
    3. Close Output window.
    4. Open Output window using CTRL+4 shortcut.
    • EXPECTED RESULT: Output window is opened and active after any of these two actions is invoked.
  2. 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.
  3. 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.
  4. 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 occurrence is found every time.
  5. Wrap text
    1. Have any output in a Output window. Change window width to show horizontal scrollbar.
    2. Choose Wrap text from popup
    • EXPECTED RESULT: The text is wrapped and scroll bar disappears
  6. 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.
  7. Go to the beginning of the line
    1. Have any output in a Output window.
    2. Put caret into Output window and press home key.
    • EXPECTED RESULT: Caret is placed before first character of the line.
  8. Go to the end of the line
    1. Have any output in a Output window.
    2. Put caret into Output window and press end key.
    • EXPECTED RESULT: Caret is placed after last character of the line.
  9. Go to the beginning of the output
    1. Have any output in a Output window.
    2. Put caret into Output window and press ctrl+home key.
    • EXPECTED RESULT: Caret is placed before first character of the output's first line.
  10. Go to the end of the output
    1. Have any output in a Output window.
    2. Put caret into Output window and press ctrl+end key.
    • EXPECTED RESULT: Caret is placed after last character of the output's last line.
  11. Fonts and colors
    1. Open main menu Tools | Options | Miscellaneous | Output.
    2. Make some changes in color and font of Output Window.
    • EXPECTED RESULT: Colors and fonts are changed as expected.


Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo