STS 70 OutputWindow

Output Window Sanity Test Specification for NetBeans 7.0

Author: Petr Chytil
Last update: 4.12.2008
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.
  1. 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.
  1. Hyperlinked Exceptions - Next Error
    1. Compile the program.
    2. 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.
  1. Hyperlinked Exceptions - Previous Error
    1. Compile the program.
    2. 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.
  1. 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'
  1. 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();</tt> 
      .
    2. Wait for arising exception from run 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.

  1. Open Output window
    1. Close Output window if opened.
    2. Open Output window using menu - push Window > Output > 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.
  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.
  1. 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.
  1. 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.
  1. 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
  1. 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.
  1. Go to the beginning of the output
    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 output's first line.
  1. Go to the end of the output
    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 output's last line.


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