TS 74 Editor

(Difference between revisions)
(Created page with '==Plain Editor Test Specification== '''Author:'''[mailto:Jiri.Prox@Oracle.COM Jiri Prox]<br/> '''Version:''' 7.4<br/> '''Last update:'''2013/06/26<br/> '''Introduction:'''This sp…')
Line 2: Line 2:
'''Author:'''[mailto:Jiri.Prox@Oracle.COM Jiri Prox]<br/>
'''Author:'''[mailto:Jiri.Prox@Oracle.COM Jiri Prox]<br/>
'''Version:''' 7.4<br/>
'''Version:''' 7.4<br/>
-
'''Last update:'''2013/06/26<br/>
+
'''Last update:'''2013/07/21<br/>
'''Introduction:'''This specification cover features of plain editor. This functionality is common for all files and should work in every kind of editor. It covers basis editing, navigation, text selecting and other common utilities. <br/>
'''Introduction:'''This specification cover features of plain editor. This functionality is common for all files and should work in every kind of editor. It covers basis editing, navigation, text selecting and other common utilities. <br/>
Line 35: Line 35:
## Type another characters
## Type another characters
## Use '''Undo''' as long as possible (vary between shortcut/toolbar action/main menu action), so that opened file has the same content as previously saved version
## Use '''Undo''' as long as possible (vary between shortcut/toolbar action/main menu action), so that opened file has the same content as previously saved version
-
#* {{result|EXPECTED RESULT:  Flag suggesting file is modified (file name is written in bold in th editor tab) disappeared after the last step and undo properly cleared all typed changes (characters).    All navigation keys works as expected         }}
+
#* {{result|EXPECTED RESULT:  Flag suggesting file is modified (file name is written in bold in th editor tab) disappeared after the last step and undo properly cleared all typed changes (characters).    All navigation keys works as expected         }}
# {{testcase|Other keybindings}}
# {{testcase|Other keybindings}}
## Try some of the key shortcuts defined in '''Tools|Options|Keymap'''
## Try some of the key shortcuts defined in '''Tools|Options|Keymap'''
## Set a new shortcut for some action and then invoke it in editor
## Set a new shortcut for some action and then invoke it in editor
## Try to change existing shortcut to something different
## Try to change existing shortcut to something different
-
#* {{result|EXPECTED RESULT:  The proper action is always called. In step 3, the old shortcut does not work any more.             }}
+
#* {{result|EXPECTED RESULT:  The proper action is always called. In step 3, the old shortcut does not work any more.               }}
# {{testcase|Remove line}}
# {{testcase|Remove line}}
## Open some file in the editor
## Open some file in the editor
Line 46: Line 46:
## Press '''Shift+Delete''' (or '''Ctrl+E''')
## Press '''Shift+Delete''' (or '''Ctrl+E''')
## Undo the last action
## Undo the last action
-
#* {{result|EXPECTED RESULT:  Whole line is removed when you press Shift+Delete. Line deletion can be undone.             }}
+
#* {{result|EXPECTED RESULT:  Whole line is removed when you press Shift+Delete. Line deletion can be undone.               }}
# {{testcase|File Path}}
# {{testcase|File Path}}
## Open any file
## Open any file
## Hover mouse over the editor tab
## Hover mouse over the editor tab
## Right click on editor tab and select ''Copy File Path''
## Right click on editor tab and select ''Copy File Path''
-
#* {{result|EXPECTED RESULT:When hovering mouse over tab, the absolute path to the selected file is shown in popup. After selecting ''Copy File Path'' the absolute path is inserted into the clipboard }}
+
#* {{result|EXPECTED RESULT:When hovering mouse over tab, the absolute path to the selected file is shown in popup. After selecting ''Copy File Path'' the absolute path is inserted into the clipboard   }}
# {{testcase|Undo after save}}
# {{testcase|Undo after save}}
## Open any file
## Open any file
Line 58: Line 58:
## Make another modifications
## Make another modifications
## Call undo to get file to original state
## Call undo to get file to original state
-
#* {{result|EXPECTED RESULT:The modifications are undone, until the file get to the state as it was when it was opened. When the content matches the state when the file was saved last time the 'modified' marker (bold font in editor tab) is not shown }}
+
#* {{result|EXPECTED RESULT:The modifications are undone, until the file get to the state as it was when it was opened. When the content matches the state when the file was saved last time the 'modified' marker (bold font in editor tab) is not shown   }}
====Test suite: Mouse Test====
====Test suite: Mouse Test====
Line 68: Line 68:
## Click to editor window at any position.
## Click to editor window at any position.
## Try to click to different places in editor.
## Try to click to different places in editor.
-
#* {{result|EXPECTED RESULT:  Focus is changed to editor and cursor should be positioned at the clicked place or at end of line you have clicked.             }}
+
#* {{result|EXPECTED RESULT:  Focus is changed to editor and cursor should be positioned at the clicked place or at end of line you have clicked.               }}
# {{testcase|Mouse click after EOF}}
# {{testcase|Mouse click after EOF}}
## Click on the first row in a file, caret should move to this place.
## Click on the first row in a file, caret should move to this place.
## Click behind the end of file to an empty area of editor.
## Click behind the end of file to an empty area of editor.
-
#* {{result|EXPECTED RESULT:  Caret must move to last line in editor. Caret is placed at EOL or at the column you have clicked (if it exists).         }}
+
#* {{result|EXPECTED RESULT:  Caret must move to last line in editor. Caret is placed at EOL or at the column you have clicked (if it exists).         }}
# {{testcase|Mouse double click}}
# {{testcase|Mouse double click}}
## Move mouse over any word in editor window.
## Move mouse over any word in editor window.
Line 78: Line 78:
## Double click in front of the first character of the word.
## Double click in front of the first character of the word.
## Double click behind last char of the word.
## Double click behind last char of the word.
-
#* {{result|EXPECTED RESULT:  Words must be selected (highlighted) and cursor positioned at end of selected words. If you double click between words and separator, the the first positioned (word or separator) will be selected.             }}
+
#* {{result|EXPECTED RESULT:  Words must be selected (highlighted) and cursor positioned at end of selected words. If you double click between words and separator, the the first positioned (word or separator) will be selected.               }}
# {{testcase|Mouse triple click}}
# {{testcase|Mouse triple click}}
## Quickly triple click on any line in editor.
## Quickly triple click on any line in editor.
-
#* {{result|EXPECTED RESULT:  Whole line you have clicked on should be selected.               }}
+
#* {{result|EXPECTED RESULT:  Whole line you have clicked on should be selected.               }}
# {{testcase|Mouse wheel}}
# {{testcase|Mouse wheel}}
## Try to use the mouse wheel in editor.
## Try to use the mouse wheel in editor.
-
#* {{result|EXPECTED RESULT:  Document in editor should scroll up or down.               }}
+
#* {{result|EXPECTED RESULT:  Document in editor should scroll up or down.               }}
# {{testcase|Pop-up menu}}
# {{testcase|Pop-up menu}}
## Open class in editor
## Open class in editor
Line 93: Line 93:
## Invoke the pop-up menu for the last time
## Invoke the pop-up menu for the last time
## Press '''Esc''' key to hide the pop-up menu
## Press '''Esc''' key to hide the pop-up menu
-
#* {{result|EXPECTED RESULT:  Pop-up menu is shown and hidden as expected.             }}
+
#* {{result|EXPECTED RESULT:  Pop-up menu is shown and hidden as expected.               }}
====Test suite: Selecting text====
====Test suite: Selecting text====
Line 102: Line 102:
## Put mouse caret somewhere and select part of line
## Put mouse caret somewhere and select part of line
## Try expand selection over several lines
## Try expand selection over several lines
-
#* {{result|EXPECTED RESULT:        Selection text is highlighted, the selection area expands as expected             }}
+
#* {{result|EXPECTED RESULT:        Selection text is highlighted, the selection area expands as expected               }}
# {{testcase|Select by keyboard}}
# {{testcase|Select by keyboard}}
## Open some file
## Open some file
Line 109: Line 109:
## Try Shift-Home/Shift-End, Shift-PgUp/Shift/End
## Try Shift-Home/Shift-End, Shift-PgUp/Shift/End
## Try Ctrl-A
## Try Ctrl-A
-
#* {{result|EXPECTED RESULT:        Selected text is highlighted, selection is expanded as expected             }}
+
#* {{result|EXPECTED RESULT:        Selected text is highlighted, selection is expanded as expected               }}
# {{testcase|Double click}}
# {{testcase|Double click}}
## Open some file
## Open some file
## Try double click on some word (press-release-press and hold)
## Try double click on some word (press-release-press and hold)
-
#* {{result|EXPECTED RESULT:  The whole word is selected             }}
+
#* {{result|EXPECTED RESULT:  The whole word is selected               }}
# {{testcase|Triple click}}
# {{testcase|Triple click}}
## Open some file
## Open some file
## Try triple click on non empty line (press-release-press-release-press and hold)
## Try triple click on non empty line (press-release-press-release-press and hold)
-
#* {{result|EXPECTED RESULT:  Whole line is selected             }}
+
#* {{result|EXPECTED RESULT:  Whole line is selected               }}
# {{testcase|Rectangular selection }}
# {{testcase|Rectangular selection }}
## Open some file
## Open some file
Line 123: Line 123:
## Select text with keyboard (shift+arrow keys) or by mouse
## Select text with keyboard (shift+arrow keys) or by mouse
## Try expanding existing selection (shift-arrow keys, or Home/End/PgUp/PgDown)
## Try expanding existing selection (shift-arrow keys, or Home/End/PgUp/PgDown)
-
#* {{result|EXPECTED RESULT:  Rectangular block of text is selected, selection expands as expected         }}
+
#* {{result|EXPECTED RESULT:  Rectangular block of text is selected, selection expands as expected         }}
====Test suite: Creating a New File====
====Test suite: Creating a New File====
Line 134: Line 134:
## Type new class name and package
## Type new class name and package
## Confirm by '''Finish''' button
## Confirm by '''Finish''' button
-
#* {{result|EXPECTED RESULT:  File is created and opened in editor. File has correct name and location. Content of the file is correctly formatted         }}
+
#* {{result|EXPECTED RESULT:  File is created and opened in editor. File has correct name and location. Content of the file is correctly formatted           }}
# {{testcase|Create new file cancel}}
# {{testcase|Create new file cancel}}
## Repeat previous test case but do not press 'Finish''' but press '''Cancel'''
## Repeat previous test case but do not press 'Finish''' but press '''Cancel'''
-
#* {{result|EXPECTED RESULT:  No file is created         }}
+
#* {{result|EXPECTED RESULT:  No file is created         }}
# {{testcase|Invalid name or package}}
# {{testcase|Invalid name or package}}
## Call '''File | Create New File'''
## Call '''File | Create New File'''
Line 143: Line 143:
## Enter invalid class name (name is not identifier or already exists)
## Enter invalid class name (name is not identifier or already exists)
## Entry invalid package name
## Entry invalid package name
-
#* {{result|EXPECTED RESULT:  Error message is displayed at the bottom of the dialog, '''Finish''' button is disabled         }}
+
#* {{result|EXPECTED RESULT:  Error message is displayed at the bottom of the dialog, '''Finish''' button is disabled         }}
# {{testcase|Create file from context menu}}
# {{testcase|Create file from context menu}}
## Right click on package node,  '''Source Package''' or project node in project view
## Right click on package node,  '''Source Package''' or project node in project view
## Select '''New'''
## Select '''New'''
## Select '''Other...'''
## Select '''Other...'''
-
#* {{result|EXPECTED RESULT:  The new submenu contains list of common/lates used file types, '''Other ...''' opens New File Dialog as in previous test cases         }}
+
#* {{result|EXPECTED RESULT:  The new submenu contains list of common/lates used file types, '''Other ...''' opens New File Dialog as in previous test cases         }}
# {{testcase|Create new java class using FQN}}
# {{testcase|Create new java class using FQN}}
## Call '''File | Create New File'''
## Call '''File | Create New File'''
Line 154: Line 154:
## in name text field type fully qualified class name
## in name text field type fully qualified class name
## press '''Finish'''
## press '''Finish'''
-
#* {{result|EXPECTED RESULT:When entering FQN into name text field, the package is disabled and filled with package part of the entered FQN. The invalid name detection and check for duplicate class works as expected. }}
+
#* {{result|EXPECTED RESULT:When entering FQN into name text field, the package is disabled and filled with package part of the entered FQN. The invalid name detection and check for duplicate class works as expected.   }}
====Test suite: Opening Files in Editor====
====Test suite: Opening Files in Editor====
Line 161: Line 161:
# {{testcase|Open external file}}
# {{testcase|Open external file}}
## Open external file (file that is not a part of any NB project) from main menu action '''File|Open File...'''
## Open external file (file that is not a part of any NB project) from main menu action '''File|Open File...'''
-
#* {{result|EXPECTED RESULT:        <br>- File must be opened in editor. <br>- There is a lot of limitations, because the file is not part of any project. (no classpath is set) <br>- These features must work: Syntax coloring, Code Completion for JDK classes, Code Folding<br>- These features won't work: Code Completion for non JDK classes, Compile/run the class <br>               }}
+
#* {{result|EXPECTED RESULT:        <br>- File must be opened in editor. <br>- There is a lot of limitations, because the file is not part of any project. (no classpath is set) <br>- These features must work: Syntax coloring, Code Completion for JDK classes, Code Folding<br>- These features won't work: Code Completion for non JDK classes, Compile/run the class <br>               }}
# {{testcase|Open file from project that is not opened}}
# {{testcase|Open file from project that is not opened}}
## Open file which is part of project which is not opened with '''File|Open File...''' menu.
## Open file which is part of project which is not opened with '''File|Open File...''' menu.
-
#* {{result|EXPECTED RESULT:        <br>- File must be opened in editor and all java-related stuff must work: Code Completion, Code Folding, compilation, running, etc. <br>- This action does not open the project where the class belongs to.             }}
+
#* {{result|EXPECTED RESULT:        <br>- File must be opened in editor and all java-related stuff must work: Code Completion, Code Folding, compilation, running, etc. <br>- This action does not open the project where the class belongs to.               }}
# {{testcase|Open a file in Projects view and close it}}
# {{testcase|Open a file in Projects view and close it}}
## Open attached project
## Open attached project
Line 170: Line 170:
## '''Don't modify''' this file in editor
## '''Don't modify''' this file in editor
## Invoke popup menu above editor's tab and choose '''Close All Documents''' item
## Invoke popup menu above editor's tab and choose '''Close All Documents''' item
-
#* {{result|EXPECTED RESULT:  The selected file should be opened in editor and then closed without any dialogs.             }}
+
#* {{result|EXPECTED RESULT:  The selected file should be opened in editor and then closed without any dialogs.               }}
# {{testcase|Open a file in Files view and close it}}
# {{testcase|Open a file in Files view and close it}}
## Open attached project if it is not opened yet
## Open attached project if it is not opened yet
Line 176: Line 176:
## '''Don't modify''' this file in editor
## '''Don't modify''' this file in editor
## Invoke popup menu above editor's tab and choose '''Close All Documents''' item
## Invoke popup menu above editor's tab and choose '''Close All Documents''' item
-
#* {{result|EXPECTED RESULT:  The selected file should be opened in editor and then closed without any dialogs.             }}
+
#* {{result|EXPECTED RESULT:  The selected file should be opened in editor and then closed without any dialogs.               }}
# {{testcase|Open a file from main menu and close it}}
# {{testcase|Open a file from main menu and close it}}
## Select '''File|Open File''' from the main menu and find <tt> OpenFile.java </tt> file used in previous case
## Select '''File|Open File''' from the main menu and find <tt> OpenFile.java </tt> file used in previous case
Line 182: Line 182:
## '''Don't modify''' the opened file
## '''Don't modify''' the opened file
## Invoke popup menu above editor's tab and choose '''Close All Documents''' item
## Invoke popup menu above editor's tab and choose '''Close All Documents''' item
-
#* {{result|EXPECTED RESULT:  The selected file should be opened in editor and then closed without any dialogs.             }}
+
#* {{result|EXPECTED RESULT:  The selected file should be opened in editor and then closed without any dialogs.               }}
# {{testcase|Opening a file that is already opened in editor}}
# {{testcase|Opening a file that is already opened in editor}}
## Expand nodes in Projects view and double click <tt> OpenFile.java </tt> source file
## Expand nodes in Projects view and double click <tt> OpenFile.java </tt> source file
Line 188: Line 188:
## Double click <tt> OpenFile.java </tt> source file in Projects view
## Double click <tt> OpenFile.java </tt> source file in Projects view
## Invoke popup menu above editor's tab and choose '''Close All Documents''' item
## Invoke popup menu above editor's tab and choose '''Close All Documents''' item
-
#* {{result|EXPECTED RESULT:  - The document that was just opened (double-clicked) must be opened and focused in editor<br>- All opened documents must be closed after you perform the last step             }}
+
#* {{result|EXPECTED RESULT:  - The document that was just opened (double-clicked) must be opened and focused in editor<br>- All opened documents must be closed after you perform the last step               }}
====Test suite: Closing Modified Files====
====Test suite: Closing Modified Files====
Line 198: Line 198:
## Close file with the '''X''' on editor's tab
## Close file with the '''X''' on editor's tab
## Confirm your changes by clicking '''Save'''
## Confirm your changes by clicking '''Save'''
-
#* {{result|EXPECTED RESULT:        <br>- Modify flag must show up after you modify a file.<br>- A dialog asking for confirmation must show up after the fourth step.<br>- The file must be saved (check it on hard disk) and editor tab must be closed.             }}
+
#* {{result|EXPECTED RESULT:        <br>- Modify flag must show up after you modify a file.<br>- A dialog asking for confirmation must show up after the fourth step.<br>- The file must be saved (check it on hard disk) and editor tab must be closed.               }}
# {{testcase|Close a modified file (Discard)}}
# {{testcase|Close a modified file (Discard)}}
## Open <tt> OpenFile.java </tt> and modify it
## Open <tt> OpenFile.java </tt> and modify it
## Close the sample file using '''Ctrl+W''' shortcut
## Close the sample file using '''Ctrl+W''' shortcut
## Choose '''Discard''' in the dialog to discard your changes
## Choose '''Discard''' in the dialog to discard your changes
-
#* {{result|EXPECTED RESULT:        <br>- Editor tab should be closed.<br>- All changes are lost (check the file on hard disk)               }}
+
#* {{result|EXPECTED RESULT:        <br>- Editor tab should be closed.<br>- All changes are lost (check the file on hard disk)               }}
# {{testcase|Close a modified file (Cancel)}}
# {{testcase|Close a modified file (Cancel)}}
## Open <tt> OpenFile.java </tt> and modify it
## Open <tt> OpenFile.java </tt> and modify it
## Close the sample file using main menu action '''Window|Close Window'''
## Close the sample file using main menu action '''Window|Close Window'''
## Choose '''Cancel'''
## Choose '''Cancel'''
-
#* {{result|EXPECTED RESULT:  <br>- Nothing happens - a file remains opened and it is not saved<br>- A bold font must remain in editor tab           }}
+
#* {{result|EXPECTED RESULT:  <br>- Nothing happens - a file remains opened and it is not saved<br>- A bold font must remain in editor tab           }}
====Test suite: Read-Only Files====
====Test suite: Read-Only Files====
Line 215: Line 215:
## Open a read-only file in editor
## Open a read-only file in editor
## Try to type some characters inside
## Try to type some characters inside
-
#* {{result|EXPECTED RESULT:        <br>- It is not possible to make any changes in read-only file<br>- Read-only status is indicated by italics font in the editor's tab             }}
+
#* {{result|EXPECTED RESULT:        <br>- It is not possible to make any changes in read-only file<br>- Read-only status is indicated by italics font in the editor's tab               }}
# {{testcase|Make file read only}}
# {{testcase|Make file read only}}
## Open any read/write file in editor
## Open any read/write file in editor
Line 221: Line 221:
## Make file read only (outside IDE)
## Make file read only (outside IDE)
## Save file
## Save file
-
#* {{result|EXPECTED RESULT:  Saving should not be possible, a warning should be displayed, telling the user that the file has become read only.             }}
+
#* {{result|EXPECTED RESULT:  Saving should not be possible, a warning should be displayed, telling the user that the file has become read only.               }}
====Test suite: Tab Focus====
====Test suite: Tab Focus====
Line 230: Line 230:
## Use next tab action ('''Ctrl+PgUp/PgDown''') to switch to next file
## Use next tab action ('''Ctrl+PgUp/PgDown''') to switch to next file
## Use '''Ctrl+Tab''' to switch to next file
## Use '''Ctrl+Tab''' to switch to next file
-
#* {{result|EXPECTED RESULT:  Tabs should be switched intuitively and focus should remain in editor window.             }}
+
#* {{result|EXPECTED RESULT:  Tabs should be switched intuitively and focus should remain in editor window.               }}
# {{testcase|Clone editor}}
# {{testcase|Clone editor}}
## Open some file
## Open some file
Line 237: Line 237:
## Do some modification in the cloned editor
## Do some modification in the cloned editor
## Close original editor, modify the cloned file and save it
## Close original editor, modify the cloned file and save it
-
#* {{result|EXPECTED RESULT:Both editor are synchronized, modifications are immediately  propagated to the second editor. After closing original file the cloned editor works correctly. }}
+
#* {{result|EXPECTED RESULT:Both editor are synchronized, modifications are immediately  propagated to the second editor. After closing original file the cloned editor works correctly.   }}
====Test suite: Performance After Startup====
====Test suite: Performance After Startup====
Line 247: Line 247:
## Open file (just a file, not a project) <tt> OpenFile.java </tt> from the sample project in IDE (use "File|Open File" from the main menu)
## Open file (just a file, not a project) <tt> OpenFile.java </tt> from the sample project in IDE (use "File|Open File" from the main menu)
## Close the file
## Close the file
-
#* {{result|EXPECTED RESULT:  Editor should be opened within a reasonable time. It should be less than 3 sec. on usual workstation.             }}
+
#* {{result|EXPECTED RESULT:  Editor should be opened within a reasonable time. It should be less than 3 sec. on usual workstation.               }}
# {{testcase|Open Project}}
# {{testcase|Open Project}}
## Start IDE with a fresh userdir
## Start IDE with a fresh userdir
Line 253: Line 253:
## Open file <tt> OpenFile.java </tt>
## Open file <tt> OpenFile.java </tt>
## Wait until file is opened, wait until scanning is finished (you can see the progress in right-bottom corner of IDE)
## Wait until file is opened, wait until scanning is finished (you can see the progress in right-bottom corner of IDE)
-
#* {{result|EXPECTED RESULT:        <br>- The selected project is opened in reasonable time.<br>- Scanning is started immediately after opening the project and should be performed in reasonable time.(runs on background)<br>. The file can be edited when opened, syntax coloring for all elements is shown in reasonable time (after scan is finished).             }}
+
#* {{result|EXPECTED RESULT:        <br>- The selected project is opened in reasonable time.<br>- Scanning is started immediately after opening the project and should be performed in reasonable time.(runs on background)<br>. The file can be edited when opened, syntax coloring for all elements is shown in reasonable time (after scan is finished).               }}
====Test suite: Performance when working with long files====
====Test suite: Performance when working with long files====
Line 263: Line 263:
## Close the file
## Close the file
## Open it again and keep it opened
## Open it again and keep it opened
-
#* {{result|EXPECTED RESULT:  Time of opening/closing file should be acceptable             }}
+
#* {{result|EXPECTED RESULT:  Time of opening/closing file should be acceptable               }}
# {{testcase|Working With Long Java File - No comments}}
# {{testcase|Working With Long Java File - No comments}}
## Use the same file from previous case, open it if it is not opened
## Use the same file from previous case, open it if it is not opened
Line 269: Line 269:
## Add Javadoc comment before the method "newMethod" - type e.g. /** My first javadoc comment */
## Add Javadoc comment before the method "newMethod" - type e.g. /** My first javadoc comment */
## Test the speed of Enter key inside JavaDoc - press Enter when caret is just after "/**" that you typed in the previous step
## Test the speed of Enter key inside JavaDoc - press Enter when caret is just after "/**" that you typed in the previous step
-
#* {{result|EXPECTED RESULT:  All actions should be done in acceptable time.               }}
+
#* {{result|EXPECTED RESULT:  All actions should be done in acceptable time.               }}
# {{testcase|Working With Long Java File - No Errors}}
# {{testcase|Working With Long Java File - No Errors}}
## Switch to the big java file (should be opened in editor from previous case)
## Switch to the big java file (should be opened in editor from previous case)
Line 278: Line 278:
## Go to the beginning of document ('''Ctrl+Home''')
## Go to the beginning of document ('''Ctrl+Home''')
## Scroll the editor window - hold '''Ctrl+Up/Down''' longer then 4 seconds
## Scroll the editor window - hold '''Ctrl+Up/Down''' longer then 4 seconds
-
#* {{result|EXPECTED RESULT:  All actions should be completed in a very short time               }}
+
#* {{result|EXPECTED RESULT:  All actions should be completed in a very short time               }}
# {{testcase|Working With Long Java File - Errors}}
# {{testcase|Working With Long Java File - Errors}}
## Switch to the java file (should be opened in editor from previous case)
## Switch to the java file (should be opened in editor from previous case)
Line 286: Line 286:
## Scroll to the editor window - press '''Ctrl+Up/Down''' longer then 4 seconds
## Scroll to the editor window - press '''Ctrl+Up/Down''' longer then 4 seconds
## Type new field to body of a class - type "Integer myInt2 = new Integer(10);"
## Type new field to body of a class - type "Integer myInt2 = new Integer(10);"
-
#* {{result|EXPECTED RESULT:  All actions should be completed in a short time, errors should show up in editor almost instantly.               }}
+
#* {{result|EXPECTED RESULT:  All actions should be completed in a short time, errors should show up in editor almost instantly.               }}
====Test suite: Internationalization====
====Test suite: Internationalization====
Line 298: Line 298:
## Save and close the file
## Save and close the file
## Open the file again
## Open the file again
-
#* {{result|EXPECTED RESULT:  All characters in chosen language should be displayed properly.               }}
+
#* {{result|EXPECTED RESULT:  All characters in chosen language should be displayed properly.               }}
# {{testcase|I18N undo action}}
# {{testcase|I18N undo action}}
## Select part of the text with national characters and invoke '''Cut''' action ('''Ctrl+X''').
## Select part of the text with national characters and invoke '''Cut''' action ('''Ctrl+X''').
## Try to invoke the '''Undo''' action ('''Ctrl+Z''').
## Try to invoke the '''Undo''' action ('''Ctrl+Z''').
-
#* {{result|EXPECTED RESULT:  All changes should be correctly undone.               }}
+
#* {{result|EXPECTED RESULT:  All changes should be correctly undone.               }}
====Test suite: Line Endings====
====Test suite: Line Endings====
Line 308: Line 308:
# {{testcase|Line endings - new files}}
# {{testcase|Line endings - new files}}
## Create new Java file
## Create new Java file
-
#* {{result|EXPECTED RESULT:  Check line endings of the new file in any binary editor (for example "mc" in Linux, press F3 to view the file and then F4 to switch to HEX mode). It should be '\n'       }}
+
#* {{result|EXPECTED RESULT:  Check line endings of the new file in any binary editor (for example "mc" in Linux, press F3 to view the file and then F4 to switch to HEX mode). It should be '\n'         }}
# {{testcase|Line endings - existing Java files}}
# {{testcase|Line endings - existing Java files}}
## Open a file with Unix EOL's (<tt>NewCanvasActionUnix.java</tt> under <tt>test.eols</tt> package)
## Open a file with Unix EOL's (<tt>NewCanvasActionUnix.java</tt> under <tt>test.eols</tt> package)
Line 317: Line 317:
## Type some new lines
## Type some new lines
## Save files
## Save files
-
#* {{result|EXPECTED RESULT:  Check line endings in any binary editor for all files. The type of line endings must be preserved             }}
+
#* {{result|EXPECTED RESULT:  Check line endings in any binary editor for all files. The type of line endings must be preserved               }}
====Test suite: Using Clipboard====
====Test suite: Using Clipboard====
Line 329: Line 329:
## Select another portion of text and cut it to the clipboard ('''Edit|Cut''' or '''Ctrl+X''')
## Select another portion of text and cut it to the clipboard ('''Edit|Cut''' or '''Ctrl+X''')
## Move blinking caret to another place of editor and paste data from clipboard to the source file ('''Edit|Paste''' or '''Ctrl+V''')
## Move blinking caret to another place of editor and paste data from clipboard to the source file ('''Edit|Paste''' or '''Ctrl+V''')
-
#* {{result|EXPECTED RESULT:  Copied text is duplicated in editor, cut text is removed, texts are placed in caret position. Caret should be behind pasted data.             }}
+
#* {{result|EXPECTED RESULT:  Copied text is duplicated in editor, cut text is removed, texts are placed in caret position. Caret should be behind pasted data.               }}
# {{testcase|Copy/Cut data between two edited files}}
# {{testcase|Copy/Cut data between two edited files}}
## Switch to the first file.
## Switch to the first file.
Line 335: Line 335:
## Switch to the second file.
## Switch to the second file.
## Paste the data from clipboard to the second file
## Paste the data from clipboard to the second file
-
#* {{result|EXPECTED RESULT:  Selected text is copied (cut) from the first file to the second file.               }}
+
#* {{result|EXPECTED RESULT:  Selected text is copied (cut) from the first file to the second file.               }}
# {{testcase|Copy/Cut data To cloned view}}
# {{testcase|Copy/Cut data To cloned view}}
## Switch to a java file.
## Switch to a java file.
Line 342: Line 342:
## There should be auto focus on the cloned view, if no then get focus to the cloned view (click to cloned view).
## There should be auto focus on the cloned view, if no then get focus to the cloned view (click to cloned view).
## Paste data from clipboard to source file in cloned view
## Paste data from clipboard to source file in cloned view
-
#* {{result|EXPECTED RESULT:  Text is correctly pasted in caret's position and both editor windows (cloned and original) contain the same data.             }}
+
#* {{result|EXPECTED RESULT:  Text is correctly pasted in caret's position and both editor windows (cloned and original) contain the same data.               }}
# {{testcase|Copy/Cut data from OS to Netbeans}}
# {{testcase|Copy/Cut data from OS to Netbeans}}
## Open any file in native editor which uses system clipboard
## Open any file in native editor which uses system clipboard
Line 348: Line 348:
## Focus some Netbeans Java editor tab
## Focus some Netbeans Java editor tab
## Paste text from clipboard to the edited file
## Paste text from clipboard to the edited file
-
#* {{result|EXPECTED RESULT:        Selected text is copied from native editor and correctly pasted to Netbeans editor.             }}
+
#* {{result|EXPECTED RESULT:        Selected text is copied from native editor and correctly pasted to Netbeans editor.               }}
# {{testcase|Copy/Cut data from Netbeans to OS}}
# {{testcase|Copy/Cut data from Netbeans to OS}}
## Switch to a file in IDE's editor
## Switch to a file in IDE's editor
Line 354: Line 354:
## Open any file in native editor which use system clipboard
## Open any file in native editor which use system clipboard
## Paste text from clipboard to a text file in native editor (depends on native editor)
## Paste text from clipboard to a text file in native editor (depends on native editor)
-
#* {{result|EXPECTED RESULT:        Selected text is copied from Netbeans to native editor               }}
+
#* {{result|EXPECTED RESULT:        Selected text is copied from Netbeans to native editor               }}
# {{testcase|Copy Paste history}}
# {{testcase|Copy Paste history}}
## Open any files
## Open any files
Line 360: Line 360:
## Press ''Ctrl-Shift-D''
## Press ''Ctrl-Shift-D''
## By arrows keys select some item and press enter
## By arrows keys select some item and press enter
-
#* {{result|EXPECTED RESULT:''Ctrl-Shift-D'' open history popup where are last 9 string inserted into clipboard. This list is browsable by arrow keys. Enter inserts selected text into editor. Another possibility to insert text is direst pressing  number 1 - 9. When the text is too long to be displayed whole in the list, additional popup is opened, displaying whole text }}
+
#* {{result|EXPECTED RESULT:''Ctrl-Shift-D'' open history popup where are last 9 string inserted into clipboard. This list is browsable by arrow keys. Enter inserts selected text into editor. Another possibility to insert text is direst pressing  number 1 - 9. When the text is too long to be displayed whole in the list, additional popup is opened, displaying whole text   }}
# {{testcase|Rectangular selection}}
# {{testcase|Rectangular selection}}
## Turn on rectangular selection
## Turn on rectangular selection
Line 367: Line 367:
## Select another rectangular block of code as target
## Select another rectangular block of code as target
## Press Paste
## Press Paste
-
#* {{result|EXPECTED RESULT:  Block of code of copied / moved to new position       }}
+
#* {{result|EXPECTED RESULT:  Block of code of copied / moved to new position         }}
====Test suite: Drag & Drop====
====Test suite: Drag & Drop====
Line 376: Line 376:
## Select a block of code by mouse
## Select a block of code by mouse
## Drag the code and drop it to a different position in source code
## Drag the code and drop it to a different position in source code
-
#* {{result|EXPECTED RESULT:  The code should be moved to the new position.               }}
+
#* {{result|EXPECTED RESULT:  The code should be moved to the new position.               }}
# {{testcase|Undo test}}
# {{testcase|Undo test}}
## Drag &amp; Drop a piece of code
## Drag &amp; Drop a piece of code
## Press '''Ctrl+Z'''
## Press '''Ctrl+Z'''
-
#* {{result|EXPECTED RESULT:  The code should be moved and undo should return the code into it's original position.             }}
+
#* {{result|EXPECTED RESULT:  The code should be moved and undo should return the code into it's original position.               }}
# {{testcase|Interaction with guarded blocks}}
# {{testcase|Interaction with guarded blocks}}
## Create a new form
## Create a new form
## Try to invoke drag&amp;drop action on guarded blocks
## Try to invoke drag&amp;drop action on guarded blocks
-
#* {{result|EXPECTED RESULT:  Only the code outside guarded blocks should be moved. The code inside guarded blocks is copied.             }}
+
#* {{result|EXPECTED RESULT:  Only the code outside guarded blocks should be moved. The code inside guarded blocks is copied.               }}
====Test suite: Editor's Toolbar and Line numbers====
====Test suite: Editor's Toolbar and Line numbers====
Line 393: Line 393:
## Invoke popup menu above gutter
## Invoke popup menu above gutter
## Try to check/uncheck '''Show Line Numbers'''
## Try to check/uncheck '''Show Line Numbers'''
-
#* {{result|EXPECTED RESULT:        <br>- Gutter must be displayed on the left side of the Editor Window<br>- Line numbers should be shown or hidden according to state of checkbox in gutter's context menu             }}
+
#* {{result|EXPECTED RESULT:        <br>- Gutter must be displayed on the left side of the Editor Window<br>- Line numbers should be shown or hidden according to state of checkbox in gutter's context menu               }}
# {{testcase|Show and hide editor's toolbar (using gutter)}}
# {{testcase|Show and hide editor's toolbar (using gutter)}}
## Open a file in editor
## Open a file in editor
Line 399: Line 399:
## Invoke popup menu above gutter
## Invoke popup menu above gutter
## Try to check/uncheck '''Show Toolbar'''
## Try to check/uncheck '''Show Toolbar'''
-
#* {{result|EXPECTED RESULT:        <br>- Gutter must be displayed on the left side of the Editor Window<br>- Editor's toolbar should be shown or hidden according to state of checkbox in gutter's context menu             }}
+
#* {{result|EXPECTED RESULT:        <br>- Gutter must be displayed on the left side of the Editor Window<br>- Editor's toolbar should be shown or hidden according to state of checkbox in gutter's context menu               }}
# {{testcase|Show and hide line numbers (using main menu)}}
# {{testcase|Show and hide line numbers (using main menu)}}
## Open Java file in editor
## Open Java file in editor
## Try to show/hide line numbers using main menu action '''View|Show Line Numbers'''
## Try to show/hide line numbers using main menu action '''View|Show Line Numbers'''
-
#* {{result|EXPECTED RESULT:        Line numbers should be displayed and hidden according to state of checkbox state.               }}
+
#* {{result|EXPECTED RESULT:        Line numbers should be displayed and hidden according to state of checkbox state.               }}
# {{testcase|Show and hide editor's toolbar (using main menu)}}
# {{testcase|Show and hide editor's toolbar (using main menu)}}
## Open Java file in editor
## Open Java file in editor
## Try to show/hide editor's toolbar using main menu action '''View|Show Editor Toolbar'''
## Try to show/hide editor's toolbar using main menu action '''View|Show Editor Toolbar'''
-
#* {{result|EXPECTED RESULT:        Toolbar should be displayed and hidden according to state of checkbox state.               }}
+
#* {{result|EXPECTED RESULT:        Toolbar should be displayed and hidden according to state of checkbox state.               }}
====Test suite: Find&Replace Test====
====Test suite: Find&Replace Test====
Line 419: Line 419:
## Close search button by '''x''' button
## Close search button by '''x''' button
## Open search bar again and press '''Esc''' when focus is in search text field
## Open search bar again and press '''Esc''' when focus is in search text field
-
#* {{result|EXPECTED RESULT:  Search bar is opened and focus is transferred to '''Search''' text field.<br/>Search bar stays opened when switching editors.<br/> Esc or ''x'' button closes search bar       }}
+
#* {{result|EXPECTED RESULT:  Search bar is opened and focus is transferred to '''Search''' text field.<br/>Search bar stays opened when switching editors.<br/> Esc or ''x'' button closes search bar         }}
# {{testcase|Simple search}}
# {{testcase|Simple search}}
## Open '''search.txt'''
## Open '''search.txt'''
Line 425: Line 425:
## Press '''enter'''
## Press '''enter'''
## Press '''Next''' button in search bar several times
## Press '''Next''' button in search bar several times
-
#* {{result|EXPECTED RESULT:  Search bar is opened. Search result are highlighted while typing. When enter is pressed focus is transferred to editor and cursor is moved to the first occurrence. In status bar there is message that search was successful. '''Next"" button jumps across next occurrences of given text.  Number of matches are shown in search bar, next to the Highlight checkbox, as for example 'Highlight X Results '       }}
+
#* {{result|EXPECTED RESULT:  Search bar is opened. Search result are highlighted while typing. When enter is pressed focus is transferred to editor and cursor is moved to the first occurrence. In status bar there is message that search was successful. '''Next"" button jumps across next occurrences of given text.  Number of matches are shown in search bar, next to the Highlight checkbox, as for example 'Highlight X Results '       }}
# {{testcase|Search backwards}}
# {{testcase|Search backwards}}
## Open search.txt
## Open search.txt
Line 431: Line 431:
## Press ''Ctrl-F''' and type ''search''
## Press ''Ctrl-F''' and type ''search''
## Press '''Previous''' several times
## Press '''Previous''' several times
-
#* {{result|EXPECTED RESULT:  Cursor is move to last occurrence of searched text before current position       }}
+
#* {{result|EXPECTED RESULT:  Cursor is move to last occurrence of searched text before current position         }}
# {{testcase|Match Case}}
# {{testcase|Match Case}}
## Open search.txt
## Open search.txt
Line 437: Line 437:
## Type ''Search'' and check '''Match Case'''
## Type ''Search'' and check '''Match Case'''
## Press enter
## Press enter
-
#* {{result|EXPECTED RESULT:  Only occurrences with correct case are found       }}
+
#* {{result|EXPECTED RESULT:  Only occurrences with correct case are found         }}
# {{testcase|Whole words}}
# {{testcase|Whole words}}
## Open search.txt
## Open search.txt
## Press '''Ctrl-F''' and type '''search'''
## Press '''Ctrl-F''' and type '''search'''
## Press enter
## Press enter
-
#* {{result|EXPECTED RESULT:  Only whole words are found       }}
+
#* {{result|EXPECTED RESULT:  Only whole words are found         }}
# {{testcase|Regular expression}}
# {{testcase|Regular expression}}
## Open '''search.txt'''
## Open '''search.txt'''
## Press '''Ctrl-F''' and type ''.*[1-9]."
## Press '''Ctrl-F''' and type ''.*[1-9]."
## Check ''Regular Expression'' check box and press ''Enter''
## Check ''Regular Expression'' check box and press ''Enter''
-
#* {{result|EXPECTED RESULT:  One occurrence is found. Only 4 characters are selected       }}
+
#* {{result|EXPECTED RESULT:  One occurrence is found. Only 4 characters are selected         }}
# {{testcase|Highlight results}}
# {{testcase|Highlight results}}
## Open ''search.txt''' and press ''Ctrl-F'''
## Open ''search.txt''' and press ''Ctrl-F'''
## Type ''search'' into the text field
## Type ''search'' into the text field
## Toggle ''Highlight Results''
## Toggle ''Highlight Results''
-
#* {{result|EXPECTED RESULT:  When Highlight is on, all occurrences of searched text is marked by orange background, this mark stays even when search bar is closed       }}
+
#* {{result|EXPECTED RESULT:  When Highlight is on, all occurrences of searched text is marked by orange background, this mark stays even when search bar is closed         }}
# {{testcase|Wrap around}}
# {{testcase|Wrap around}}
## Open ''search.txt'' and press ''Ctrl-F''
## Open ''search.txt'' and press ''Ctrl-F''
## type '''search''' into text field
## type '''search''' into text field
## toggle '''Wrap Around''' and press '''Next''' several times
## toggle '''Wrap Around''' and press '''Next''' several times
-
#* {{result|EXPECTED RESULT:  When wrap is on the search continues from the beginning of the file, once the EOF is reached. Otherwise the search ends an the end of the file  with message ''search is not found'' in the status bar       }}
+
#* {{result|EXPECTED RESULT:  When wrap is on the search continues from the beginning of the file, once the EOF is reached. Otherwise the search ends an the end of the file  with message ''search is not found'' in the status bar         }}
# {{testcase|Searching when search bar is closed}}
# {{testcase|Searching when search bar is closed}}
## Open '''search.txt''' and press '''Ctrl-F'''
## Open '''search.txt''' and press '''Ctrl-F'''
Line 463: Line 463:
## Close search bar
## Close search bar
## Try '''Find Next Occurrence''', '''Find Previous Occurrence''' and '''Toggle Highlight Results''' from the editor tool bar.
## Try '''Find Next Occurrence''', '''Find Previous Occurrence''' and '''Toggle Highlight Results''' from the editor tool bar.
-
#* {{result|EXPECTED RESULT:  The buttons works as expected       }}
+
#* {{result|EXPECTED RESULT:  The buttons works as expected         }}
# {{testcase|Previous searches }}
# {{testcase|Previous searches }}
## Open search bar
## Open search bar
## Expand '''Search:''' combo box
## Expand '''Search:''' combo box
-
#* {{result|EXPECTED RESULT:  Combo box list contains all strings from previous searches       }}
+
#* {{result|EXPECTED RESULT:  Combo box list contains all strings from previous searches         }}
# {{testcase|Open replace dialog}}
# {{testcase|Open replace dialog}}
## Open some file
## Open some file
## Press '''Ctrl-H'''
## Press '''Ctrl-H'''
## Close replace bar by ''x'' button and by esc
## Close replace bar by ''x'' button and by esc
-
#* {{result|EXPECTED RESULT:  Replace bar is correctly opened, ''x'' button or ''esc'' closes the panel       }}
+
#* {{result|EXPECTED RESULT:  Replace bar is correctly opened, ''x'' button or ''esc'' closes the panel         }}
# {{testcase|Simple replace}}
# {{testcase|Simple replace}}
## Open ''search.txt'' and press '''Ctrl-H'''
## Open ''search.txt'' and press '''Ctrl-H'''
Line 478: Line 478:
## Press ''Replace''
## Press ''Replace''
## Undo all changes
## Undo all changes
-
#* {{result|EXPECTED RESULT:  Next occurrence of ''search'' behind cursor position is replace with ''replaced'', Changes can be undone         }}
+
#* {{result|EXPECTED RESULT:  Next occurrence of ''search'' behind cursor position is replace with ''replaced'', Changes can be undone         }}
# {{testcase|Replace All}}
# {{testcase|Replace All}}
## Open ''search.txt'' and press '''Ctrl-H'''
## Open ''search.txt'' and press '''Ctrl-H'''
Line 484: Line 484:
## Press ''Replace all''
## Press ''Replace all''
## Undo all changes
## Undo all changes
-
#* {{result|EXPECTED RESULT:  All occurrences of ''search'' behind current cursor position are replaced with ''replaced'' (if wrap around is enabled the all occurrences is whole file are replaced)       }}
+
#* {{result|EXPECTED RESULT:  All occurrences of ''search'' behind current cursor position are replaced with ''replaced'' (if wrap around is enabled the all occurrences is whole file are replaced)         }}
# {{testcase|Replace backwards}}
# {{testcase|Replace backwards}}
## Open ''search.txt'' and press '''Ctrl-H'''
## Open ''search.txt'' and press '''Ctrl-H'''
Line 491: Line 491:
## check ''Replace backwards''' and press '''Replace'''
## check ''Replace backwards''' and press '''Replace'''
## Undo all changes
## Undo all changes
-
#* {{result|EXPECTED RESULT:  Last occurrence of ''search'' before current cursor position is replaced       }}
+
#* {{result|EXPECTED RESULT:  Last occurrence of ''search'' before current cursor position is replaced         }}
# {{testcase|Preserve case}}
# {{testcase|Preserve case}}
## Open ''search.txt'' and press ''Ctrl-H''
## Open ''search.txt'' and press ''Ctrl-H''
Line 498: Line 498:
## Check '"Preserve Case''' and press '''Replace All'''
## Check '"Preserve Case''' and press '''Replace All'''
## Undo changes
## Undo changes
-
#* {{result|EXPECTED RESULT:  All occurrences are replaced. Case is preserved, e.g. ''search'' is replaced with ''replaced'' and ''Search'' is replaced with ''Replaced''       }}
+
#* {{result|EXPECTED RESULT:  All occurrences are replaced. Case is preserved, e.g. ''search'' is replaced with ''replaced'' and ''Search'' is replaced with ''Replaced''         }}
# {{testcase|Search Selection}}
# {{testcase|Search Selection}}
## Open ''search.txt''
## Open ''search.txt''
## Select part of some word
## Select part of some word
## Press '''Ctrl-F3''' or use '''Find Selection''' from editor toolbar
## Press '''Ctrl-F3''' or use '''Find Selection''' from editor toolbar
-
#* {{result|EXPECTED RESULT:  All occurrences of selected text are found, cursor is moved to the first of them       }}
+
#* {{result|EXPECTED RESULT:  All occurrences of selected text are found, cursor is moved to the first of them         }}
# {{testcase|Code completion - find }}
# {{testcase|Code completion - find }}
## Open search bar
## Open search bar
Line 509: Line 509:
## Press ctrl-space to get code completion
## Press ctrl-space to get code completion
## Select item form code completion
## Select item form code completion
-
#* {{result|EXPECTED RESULT: When pressing ctrl-space the code completion popup is opened, providing all words in current file beginning with given prefix. After confirmation the selected word is inserted in the find text field       }}
+
#* {{result|EXPECTED RESULT: When pressing ctrl-space the code completion popup is opened, providing all words in current file beginning with given prefix. After confirmation the selected word is inserted in the find text field       }}
# {{testcase|Code Completion - replace}}
# {{testcase|Code Completion - replace}}
## Repeat previous test case, but instead of Search Bar and ''Find'' text field, use Replace Bar and ''Replace'' text field
## Repeat previous test case, but instead of Search Bar and ''Find'' text field, use Replace Bar and ''Replace'' text field
-
#* {{result|EXPECTED RESULT: The code completion works as in previous testcase       }}
+
#* {{result|EXPECTED RESULT: The code completion works as in previous testcase       }}
# {{testcase|Search behavior - firefox}}
# {{testcase|Search behavior - firefox}}
## Open '''Options'''
## Open '''Options'''
## Select ''Editor'', on the ''General'' tab select '''Enter to find next''' to switch search bar to firefox style
## Select ''Editor'', on the ''General'' tab select '''Enter to find next''' to switch search bar to firefox style
## In editor open search bar and try Enter and Esc key behavior
## In editor open search bar and try Enter and Esc key behavior
-
#* {{result|EXPECTED RESULT:  On Enter, next occurrence is find - caret is moved, Esc closes the search bar     }}
+
#* {{result|EXPECTED RESULT:  On Enter, next occurrence is find - caret is moved, Esc closes the search bar       }}
# {{testcase|Search behavior - vi}}
# {{testcase|Search behavior - vi}}
## Open '''Options'''
## Open '''Options'''
## Select ''Editor'', on the ''General'' tab select '''Enter to finish search''' to switch search bar to vi style
## Select ''Editor'', on the ''General'' tab select '''Enter to finish search''' to switch search bar to vi style
## In editor open search bar and try Enter and Esc key behavior
## In editor open search bar and try Enter and Esc key behavior
-
#* {{result|EXPECTED RESULT:  Enter finds next occurrence of the searched text, moves the cursor and closes the search bar. Esc closes immediately the search bar. The search is closed also when focus is moved to the editor     }}
+
#* {{result|EXPECTED RESULT:  Enter finds next occurrence of the searched text, moves the cursor and closes the search bar. Esc closes immediately the search bar. The search is closed also when focus is moved to the editor       }}
# {{testcase|Closing Search bar}}
# {{testcase|Closing Search bar}}
## Open any file file and press ''Ctrl-F'' or ''Ctrl-H'' to open search/replace bar
## Open any file file and press ''Ctrl-F'' or ''Ctrl-H'' to open search/replace bar
## Put cursor into the editor
## Put cursor into the editor
## Press ''Esc''
## Press ''Esc''
-
#* {{result|EXPECTED RESULT:Search/Replace bar is closed }}
+
#* {{result|EXPECTED RESULT:Search/Replace bar is closed   }}
====Test suite: Bookmarks====
====Test suite: Bookmarks====
Line 537: Line 537:
## use contex menu in gutter -> Bookmarks | Toggle Bookmark
## use contex menu in gutter -> Bookmarks | Toggle Bookmark
## use button in editor toolbar (tooltip:  Toggle Bookmark)
## use button in editor toolbar (tooltip:  Toggle Bookmark)
-
#* {{result|EXPECTED RESULT:  Bookmark is added to current line or is removed if there is one already               }}
+
#* {{result|EXPECTED RESULT:  Bookmark is added to current line or is removed if there is one already               }}
# {{testcase|Navigating among bookmarks}}
# {{testcase|Navigating among bookmarks}}
## Place several bookmarks in a file
## Place several bookmarks in a file
Line 543: Line 543:
## Use gutter context menu - Bookmarks | Next Bookmark /  Bookmarks | Previous Bookmark
## Use gutter context menu - Bookmarks | Next Bookmark /  Bookmarks | Previous Bookmark
## Use buttons in editor toolbar
## Use buttons in editor toolbar
-
#* {{result|EXPECTED RESULT:  Caret cycle through bookmarked lines               }}
+
#* {{result|EXPECTED RESULT:  Caret cycle through bookmarked lines                 }}
# {{testcase|Bookmark persistence }}
# {{testcase|Bookmark persistence }}
## Place several bookmarks in a file
## Place several bookmarks in a file
Line 549: Line 549:
## Close/Reopen file
## Close/Reopen file
## Restart IDE
## Restart IDE
-
#* {{result|EXPECTED RESULT:  Bookmark should stay intact               }}
+
#* {{result|EXPECTED RESULT:  Bookmark should stay intact               }}
# {{testcase|Moving bookmark}}
# {{testcase|Moving bookmark}}
## Put bookmark in the document
## Put bookmark in the document
## Go to previous line and press enter or delete it
## Go to previous line and press enter or delete it
-
#* {{result|EXPECTED RESULT:  Bookmark moved to mark the same line of code (e.g. is moved to next line if a new line is added before if and vice versa)               }}
+
#* {{result|EXPECTED RESULT:  Bookmark moved to mark the same line of code (e.g. is moved to next line if a new line is added before if and vice versa)               }}
# {{testcase|Bookmark view}}
# {{testcase|Bookmark view}}
## Add several bookmarks into some files
## Add several bookmarks into some files
## Open bookmark view ''Window | Navigation | Bookmarks ''
## Open bookmark view ''Window | Navigation | Bookmarks ''
-
#* {{result|EXPECTED RESULT: Bookmark view is opened in bottom od IDE window. In the left, there is list of bookmarks (ordered in tree), it the right there is preview of currently selected bookmark.     }}
+
#* {{result|EXPECTED RESULT: Bookmark view is opened in bottom od IDE window. In the left, there is list of bookmarks (ordered in tree), it the right there is preview of currently selected bookmark.       }}
# {{testcase|Bookmark view - switching between list and tree}}
# {{testcase|Bookmark view - switching between list and tree}}
## In the Bookmark view switch between list and tree representation
## In the Bookmark view switch between list and tree representation
#* {{result|EXPECTED RESULT: List view - all bookmark are listed in one table, there is name of the bookmark (blanks by default), shortcut and location. <br/>
#* {{result|EXPECTED RESULT: List view - all bookmark are listed in one table, there is name of the bookmark (blanks by default), shortcut and location. <br/>
-
Tree view - the bookmarks are order into tree, copying the physical location of the files with bookmarks     }}
+
Tree view - the bookmarks are order into tree, copying the physical location of the files with bookmarks       }}
# {{testcase|Naming the bookmarks}}
# {{testcase|Naming the bookmarks}}
## Open Bookmarks view
## Open Bookmarks view
Line 567: Line 567:
## Set bookmark name  in tree mode  by editing (F2) the list item
## Set bookmark name  in tree mode  by editing (F2) the list item
## Set bookmark name  in table mode  by double click on appropriate table cell
## Set bookmark name  in table mode  by double click on appropriate table cell
-
#* {{result|EXPECTED RESULT: Bookmark are named correctly, the name is persistent.     }}
+
#* {{result|EXPECTED RESULT: Bookmark are named correctly, the name is persistent.       }}
# {{testcase|Bookmarks shortcuts}}
# {{testcase|Bookmarks shortcuts}}
## Open Bookmarks view
## Open Bookmarks view
## Set shortcut for bookmark in table mode by editing the appropriate table cell
## Set shortcut for bookmark in table mode by editing the appropriate table cell
-
#* {{result|EXPECTED RESULT: The assigned shortcut can by only single letter or number.  The shortcut is displayed also in tree mode.     }}
+
#* {{result|EXPECTED RESULT: The assigned shortcut can by only single letter or number.  The shortcut is displayed also in tree mode.     }}
# {{testcase|Go to bookmark}}
# {{testcase|Go to bookmark}}
## Press Goto to line shortcut (ctrl-G by default) twice
## Press Goto to line shortcut (ctrl-G by default) twice
## Press Bookmark shortcut
## Press Bookmark shortcut
-
#* {{result|EXPECTED RESULT:  After pressing second Go to Line shortcut the dialog is displayed - there is all letters and numbers. The assigned character are highlighted. When hovering mouse over highlighted item - a bookmark location is displayed in popup. When pressing used shortcut a related files is opened and scrolled to proper position.     }}
+
#* {{result|EXPECTED RESULT:  After pressing second Go to Line shortcut the dialog is displayed - there is all letters and numbers. The assigned character are highlighted. When hovering mouse over highlighted item - a bookmark location is displayed in popup. When pressing used shortcut a related files is opened and scrolled to proper position.     }}
# {{testcase|Bookmark history popup}}
# {{testcase|Bookmark history popup}}
## Open some fie
## Open some fie
Line 581: Line 581:
## Use the shortcuts to navigate through the list
## Use the shortcuts to navigate through the list
## Select desired item in the popup and release the ctrl-shift
## Select desired item in the popup and release the ctrl-shift
-
#* {{result|EXPECTED RESULT: A bookmark popup is displayed when pressing the key shortcut. Last item is named ''Bookmarks'' and open Bookmarks view.  Navigation in the list works like navigation in the list of opened documents.     }}
+
#* {{result|EXPECTED RESULT: A bookmark popup is displayed when pressing the key shortcut. Last item is named ''Bookmarks'' and open Bookmarks view.  Navigation in the list works like navigation in the list of opened documents.     }}
====Test suite: Go To Line====
====Test suite: Go To Line====
Line 589: Line 589:
## Call Go to line from main menu '''Navigation  | Go to line "" or use shortcut '''Ctrl-G'''
## Call Go to line from main menu '''Navigation  | Go to line "" or use shortcut '''Ctrl-G'''
## Enter some value and press enter
## Enter some value and press enter
-
#* {{result|EXPECTED RESULT:  Caret is moved to proper line of code       }}
+
#* {{result|EXPECTED RESULT:  Caret is moved to proper line of code         }}
# {{testcase|Go to line behind EOF}}
# {{testcase|Go to line behind EOF}}
## Call Go to Line
## Call Go to Line
## Enter number bigger then number of line in current file  and confirm
## Enter number bigger then number of line in current file  and confirm
-
#* {{result|EXPECTED RESULT:  Caret is moved at the last line of the file       }}
+
#* {{result|EXPECTED RESULT:  Caret is moved at the last line of the file         }}
# {{testcase|Go to line - negative case}}
# {{testcase|Go to line - negative case}}
## Open Go To Line
## Open Go To Line
## Try enter invalid values - character, negative or float number
## Try enter invalid values - character, negative or float number
-
#* {{result|EXPECTED RESULT: Invalid value cannot by entered        }}
+
#* {{result|EXPECTED RESULT:For invalid value go to line feature should not work and pop up window stays as it      }}
# {{testcase|Go to line - last values}}
# {{testcase|Go to line - last values}}
## Call Go To Line
## Call Go To Line
## Check the combo box values
## Check the combo box values
-
#* {{result|EXPECTED RESULT:  Combo box  contains recently used values         }}
+
#* {{result|EXPECTED RESULT:  Combo box  contains recently used values         }}
# {{testcase|Go to line - Cancel}}
# {{testcase|Go to line - Cancel}}
## Call Go To Line
## Call Go To Line
## Press Cancel
## Press Cancel
-
#* {{result|EXPECTED RESULT:  Caret is not moved, Go To Line dialog is closed       }}
+
#* {{result|EXPECTED RESULT:  Caret is not moved, Go To Line dialog is closed         }}
====Test suite: Jump List====
====Test suite: Jump List====
Line 613: Line 613:
## Try to jump through the jump list by pressing '''ALT+Left''' for previous entry and '''ALT+Right''' for next entry
## Try to jump through the jump list by pressing '''ALT+Left''' for previous entry and '''ALT+Right''' for next entry
## Try to jump through the jump list by selecting specific file from a popup window available in the right part of '''Go forward'''/'''Go backward''' buttons (editor toolbar)
## Try to jump through the jump list by selecting specific file from a popup window available in the right part of '''Go forward'''/'''Go backward''' buttons (editor toolbar)
-
#* {{result|EXPECTED RESULT:  Editor should navigate through all positions in successful searches. Watch out for performance and for side effects.             }}
+
#* {{result|EXPECTED RESULT:  Editor should navigate through all positions in successful searches. Watch out for performance and for side effects.               }}
# {{testcase|Jump List - comboboxes}}
# {{testcase|Jump List - comboboxes}}
## Open some file
## Open some file
Line 619: Line 619:
## Open Jump List (by clicking on small black down arrow next to Go Back/ Forward button
## Open Jump List (by clicking on small black down arrow next to Go Back/ Forward button
## From the list select some item and click on it
## From the list select some item and click on it
-
#* {{result|EXPECTED RESULT:  Black button open list of previous/next locations in the jump list. Clicking on item will move cursor to related position       }}
+
#* {{result|EXPECTED RESULT:  Black button open list of previous/next locations in the jump list. Clicking on item will move cursor to related position         }}
# {{testcase|Last edit}}
# {{testcase|Last edit}}
## Open some file and modify it
## Open some file and modify it
## Save it and close
## Save it and close
## Press '''Ctrl-Q''' (or use button in editor tool bar)
## Press '''Ctrl-Q''' (or use button in editor tool bar)
-
#* {{result|EXPECTED RESULT:  File is opened again and cursor is moved to position where the file was edited       }}
+
#* {{result|EXPECTED RESULT:  File is opened again and cursor is moved to position where the file was edited         }}
====Test suite: Print to HTML====
====Test suite: Print to HTML====
Line 630: Line 630:
# {{testcase|Menu Print to HTML}}
# {{testcase|Menu Print to HTML}}
## '''Check''' main menu '''File|Print to HTML'''.
## '''Check''' main menu '''File|Print to HTML'''.
-
#* {{result|EXPECTED RESULT:  Name of menu is "Print to HTML", mnemonic is on 'H'. Enabled only when a file is selected in Explorer window.       }}
+
#* {{result|EXPECTED RESULT:  Name of menu is "Print to HTML", mnemonic is on 'H'. Enabled only when a file is selected in Explorer window.         }}
# {{testcase|Default values}}
# {{testcase|Default values}}
## Open a java file.
## Open a java file.
## Invoke "Print to HTML" dialog.
## Invoke "Print to HTML" dialog.
-
#* {{result|EXPECTED RESULT:  Default file location is in your home directory. ( e.g. /home/pf120623/Test.java ) <br> Colors used are the same as those in Editor (without semantic coloring). <br> Option "Print only selected text" is enabled only if piece of code is selected in the editor. In this case, it is selected by default. <br> Option "Show line numbers" is enabled is line numbers are visible in editor. <br> Option "Open generated HTML in browser" is enabled for all time and not selected by default.               }}
+
#* {{result|EXPECTED RESULT:  Default file location is in your home directory. ( e.g. /home/pf120623/Test.java ) <br> Colors used are the same as those in Editor (without semantic coloring). <br> Option "Print only selected text" is enabled only if piece of code is selected in the editor. In this case, it is selected by default. <br> Option "Show line numbers" is enabled is line numbers are visible in editor. <br> Option "Open generated HTML in browser" is enabled for all time and not selected by default.               }}
# {{testcase|Select Location}}
# {{testcase|Select Location}}
## Open Print to HTML dialog.
## Open Print to HTML dialog.
Line 643: Line 643:
## Change path. E.g. /var/tmp/test2.html and confirm file chooser dialog by '''Open'''.
## Change path. E.g. /var/tmp/test2.html and confirm file chooser dialog by '''Open'''.
## Confirm Print to HTML dialog by '''Ok''' button.
## Confirm Print to HTML dialog by '''Ok''' button.
-
#* {{result|EXPECTED RESULT:  The path shouldn't be changed  after step 4. (must be /tmp/test.html)  <br> The path should be changed in step 6. There should be created new file /var/tmp/test2.html       }}
+
#* {{result|EXPECTED RESULT:  The path shouldn't be changed  after step 4. (must be /tmp/test.html)  <br> The path should be changed in step 6. There should be created new file /var/tmp/test2.html         }}
# {{testcase|Select Only selected text}}
# {{testcase|Select Only selected text}}
## '''Select''' some rows of code in the Editor.
## '''Select''' some rows of code in the Editor.
## Open Print to HTML dialog and confirm it.
## Open Print to HTML dialog and confirm it.
-
#* {{result|EXPECTED RESULT:  The checkbox "Print only selected text" should be enabled and selected. There should be a html file created, containing only selected text. Check this in HTML browser.             }}
+
#* {{result|EXPECTED RESULT:  The checkbox "Print only selected text" should be enabled and selected. There should be a html file created, containing only selected text. Check this in HTML browser.               }}
# {{testcase|Select Open generated HTML in browser}}
# {{testcase|Select Open generated HTML in browser}}
## Open Print to HTML dialog.
## Open Print to HTML dialog.
## Select option "'''Open generated HTML in browser'''"
## Select option "'''Open generated HTML in browser'''"
## Confirm the dialog with '''Ok''' button
## Confirm the dialog with '''Ok''' button
-
#* {{result|EXPECTED RESULT:  File should be generated and opened in default HTML browser.               }}
+
#* {{result|EXPECTED RESULT:  File should be generated and opened in default HTML browser.               }}
====Test suite: Word Matching====
====Test suite: Word Matching====
Line 660: Line 660:
## Put cursor in the middle of the text
## Put cursor in the middle of the text
## Press '''Ctrl-K''' several times
## Press '''Ctrl-K''' several times
-
#* {{result|EXPECTED RESULT:  Previous word from the code is inserted at cursor position.         }}
+
#* {{result|EXPECTED RESULT:  Previous word from the code is inserted at cursor position.         }}
# {{testcase|Next Word}}
# {{testcase|Next Word}}
## Repeat previous test case but press '''Ctrl-Shit-K'''
## Repeat previous test case but press '''Ctrl-Shit-K'''
-
#* {{result|EXPECTED RESULT:  Next word from the code is inserted as cursor position       }}
+
#* {{result|EXPECTED RESULT:  Next word from the code is inserted as cursor position         }}
# {{testcase|Filtered world matching}}
# {{testcase|Filtered world matching}}
## Open some file
## Open some file
Line 669: Line 669:
## Type some character, e.g. 'p'
## Type some character, e.g. 'p'
## Press '''Ctrl-K'''
## Press '''Ctrl-K'''
-
#* {{result|EXPECTED RESULT:  Previous word beginning with 'p' is inserted at cursor position       }}
+
#* {{result|EXPECTED RESULT:  Previous word beginning with 'p' is inserted at cursor position         }}
====Test suite: Select Document Node in Project,Files,Favorites====
====Test suite: Select Document Node in Project,Files,Favorites====
Line 679: Line 679:
## Use '''Select in Files''' command or use shortcut '''Ctrl+Shift+2'''<br>'''&rarr; the file is selected in Files'''
## Use '''Select in Files''' command or use shortcut '''Ctrl+Shift+2'''<br>'''&rarr; the file is selected in Files'''
## Use '''Select in Favorites''' command or use shortcut '''Ctrl+Shift+3'''<br>'''&rarr; the file is selected in Favorites'''
## Use '''Select in Favorites''' command or use shortcut '''Ctrl+Shift+3'''<br>'''&rarr; the file is selected in Favorites'''
-
#* {{result|EXPECTED RESULT:  Node corresponding to opened editor is selected in Project/Files/Favorites view             }}
+
#* {{result|EXPECTED RESULT:  Node corresponding to opened editor is selected in Project/Files/Favorites view               }}
# {{testcase|Same name test - Projects view}}
# {{testcase|Same name test - Projects view}}
## Close all projects and create a new project
## Close all projects and create a new project
Line 686: Line 686:
## Open Main.html and call Select in Project
## Open Main.html and call Select in Project
## Try to repeat previous steps
## Try to repeat previous steps
-
#* {{result|EXPECTED RESULT:        The right node is always selected in Projects view             }}
+
#* {{result|EXPECTED RESULT:        The right node is always selected in Projects view               }}
# {{testcase|Same name test - Files view}}
# {{testcase|Same name test - Files view}}
## Close all projects and create a new project
## Close all projects and create a new project
Line 693: Line 693:
## Open Main.html and call Select in Files
## Open Main.html and call Select in Files
## Try to repeat previous steps
## Try to repeat previous steps
-
#* {{result|EXPECTED RESULT:        The right node is always selected in Files view             }}
+
#* {{result|EXPECTED RESULT:        The right node is always selected in Files view               }}
====Test suite: Change case, insert current date====
====Test suite: Change case, insert current date====
Line 701: Line 701:
## Select some text with both lower and upper case
## Select some text with both lower and upper case
## Press '''Ctrl+U U''' (Ctrl+U followed by U)
## Press '''Ctrl+U U''' (Ctrl+U followed by U)
-
#* {{result|EXPECTED RESULT:        <br>- Selection should be converted to upper-case.             }}
+
#* {{result|EXPECTED RESULT:        <br>- Selection should be converted to upper-case.               }}
# {{testcase|Selection to lower-case}}
# {{testcase|Selection to lower-case}}
## Open a java file in editor.
## Open a java file in editor.
## Select some text with both lower and upper case
## Select some text with both lower and upper case
## Press '''Ctrl+U L''' (Ctrl+U followed by L)
## Press '''Ctrl+U L''' (Ctrl+U followed by L)
-
#* {{result|EXPECTED RESULT:        <br>- Selection should be converted to lower-case.             }}
+
#* {{result|EXPECTED RESULT:        <br>- Selection should be converted to lower-case.               }}
# {{testcase|Switch case in selection}}
# {{testcase|Switch case in selection}}
## Open a java file in editor.
## Open a java file in editor.
## Select some text with both lower and upper case
## Select some text with both lower and upper case
## Press '''Ctrl+U S''' (Ctrl+U followed by S)
## Press '''Ctrl+U S''' (Ctrl+U followed by S)
-
#* {{result|EXPECTED RESULT:        <br>- Selection should be converted so that letters that were originally in capitals are now in lower case and vice versa.             }}
+
#* {{result|EXPECTED RESULT:        <br>- Selection should be converted so that letters that were originally in capitals are now in lower case and vice versa.               }}
====Test suite: Show white spaces====
====Test suite: Show white spaces====
Line 718: Line 718:
## Open some file
## Open some file
## Select ''View -> Show Notprintable character''
## Select ''View -> Show Notprintable character''
-
#* {{result|EXPECTED RESULT:      Non-printable (space, new lines and tabs) characters are showed in all editors             }}
+
#* {{result|EXPECTED RESULT:      Non-printable (space, new lines and tabs) characters are showed in all editors             }}
# {{testcase|Typing not printable characters}}
# {{testcase|Typing not printable characters}}
## Open some editor
## Open some editor
## Type space and tab
## Type space and tab
## Enter new-lines
## Enter new-lines
-
#* {{result|EXPECTED RESULT:      Newly typed not printable characters are indicated by appropriate symbols (the formatting settings may by changed to input tab character)             }}
+
#* {{result|EXPECTED RESULT:      Newly typed not printable characters are indicated by appropriate symbols (the formatting settings may by changed to input tab character)             }}
# {{testcase|Remove trailing spaces}}
# {{testcase|Remove trailing spaces}}
## Open any file
## Open any file
## Type several spaces at the end of some lines
## Type several spaces at the end of some lines
## Call ''Source -> Remove Trailing spaces''
## Call ''Source -> Remove Trailing spaces''
-
#* {{result|EXPECTED RESULT:Trailing spaces are removed. }}
+
#* {{result|EXPECTED RESULT:Trailing spaces are removed.   }}
====Test suite: Zoom====
====Test suite: Zoom====
Line 736: Line 736:
## Open ''Tools->Options->Keymap'' and set shortcut for ''Zoom Text In'' action (Default is alt-mouse wheel)
## Open ''Tools->Options->Keymap'' and set shortcut for ''Zoom Text In'' action (Default is alt-mouse wheel)
## Open editor and call ''Zoom Text In'' action
## Open editor and call ''Zoom Text In'' action
-
#* {{result|EXPECTED RESULT:      The font in editor is enlarged. Syntax coloring must stay untouched           }}
+
#* {{result|EXPECTED RESULT:      The font in editor is enlarged. Syntax coloring must stay untouched             }}
# {{testcase|Zoom out}}
# {{testcase|Zoom out}}
## Open ''Tools->Options->Keymap'' and set shortcut for ''Zoom Text Out'' (Default is alt-mouse wheel)
## Open ''Tools->Options->Keymap'' and set shortcut for ''Zoom Text Out'' (Default is alt-mouse wheel)
## Open some file and call ''Zoom Text Out'' action
## Open some file and call ''Zoom Text Out'' action
-
#* {{result|EXPECTED RESULT:      Font size in actual editor is reduced.             }}
+
#* {{result|EXPECTED RESULT:      Font size in actual editor is reduced.             }}
====Test suite: On Save Actions====
====Test suite: On Save Actions====
Line 750: Line 750:
## Select ''Reformat: Modified Lines Only''
## Select ''Reformat: Modified Lines Only''
## Modify lines 13-17 and save the file
## Modify lines 13-17 and save the file
-
#* {{result|EXPECTED RESULT:Modified lines are reformated when the file is saved. Other lines stays untouched }}
+
#* {{result|EXPECTED RESULT:Modified lines are reformated when the file is saved. Other lines stays untouched   }}
# {{testcase|Reformat - all Lines}}
# {{testcase|Reformat - all Lines}}
## Open ''onsave.Reformat.java'' file
## Open ''onsave.Reformat.java'' file
Line 756: Line 756:
## Select ''Reformat: All Lines''
## Select ''Reformat: All Lines''
## Modify the file and save
## Modify the file and save
-
#* {{result|EXPECTED RESULT:Whole file is reformatted after save }}
+
#* {{result|EXPECTED RESULT:Whole file is reformatted after save   }}
# {{testcase|Remove Trailing spaces - modified lines}}
# {{testcase|Remove Trailing spaces - modified lines}}
## Open ''onsave.TrailingSpaces.java'' file
## Open ''onsave.TrailingSpaces.java'' file
Line 762: Line 762:
## Select ''Remove trailing lines: Modified Lines Only''
## Select ''Remove trailing lines: Modified Lines Only''
## Modify the line 14 and save
## Modify the line 14 and save
-
#* {{result|EXPECTED RESULT:Trailing spaces are removed from line 14, other lines are untouched }}
+
#* {{result|EXPECTED RESULT:Trailing spaces are removed from line 14, other lines are untouched   }}
# {{testcase|Remove Trailing spaces - all lines}}
# {{testcase|Remove Trailing spaces - all lines}}
## Open ''onsave.TrailingSpaces.java'' file
## Open ''onsave.TrailingSpaces.java'' file
Line 769: Line 769:
## Modify the line 14
## Modify the line 14
## Put cursor at the line 12, column 5 and save
## Put cursor at the line 12, column 5 and save
-
#* {{result|EXPECTED RESULT:Trailing spaces are removed from the whole file. Except the actual line 12 }}
+
#* {{result|EXPECTED RESULT:Trailing spaces are removed from the whole file. Except the actual line 12   }}
# {{testcase|Language specific actions}}
# {{testcase|Language specific actions}}
## Set the on save options for ''language: All Languages'' to default values - none
## Set the on save options for ''language: All Languages'' to default values - none
## Repeat previous 4 test cases for ''language:Java''
## Repeat previous 4 test cases for ''language:Java''
-
#* {{result|EXPECTED RESULT:The functionality for java files are exactly the same, as was described earlier. No on save actions are performed for other file types (xml, php etc....) }}
+
#* {{result|EXPECTED RESULT:The functionality for java files are exactly the same, as was described earlier. No on save actions are performed for other file types (xml, php etc....)   }}
====Test suite: Brace Matching====
====Test suite: Brace Matching====
Line 780: Line 780:
## Open ''Braces.java''
## Open ''Braces.java''
## Put cursor at any opening or closing brace
## Put cursor at any opening or closing brace
-
#* {{result|EXPECTED RESULT:Matching brace is highlighted by yellow color. When there are two braces next to each other and cursor is between them, the first brace has priority.   }}
+
#* {{result|EXPECTED RESULT:Matching brace is highlighted by yellow color. When there are two braces next to each other and cursor is between them, the first brace has priority.   }}
# {{testcase|Brace matching - no match}}
# {{testcase|Brace matching - no match}}
## Open ''Braces.java''
## Open ''Braces.java''
## Type single ( or [
## Type single ( or [
-
#* {{result|EXPECTED RESULT:The brace is highlighted by red background it there is not matching brace }}
+
#* {{result|EXPECTED RESULT:The brace is highlighted by red background it there is not matching brace   }}
# {{testcase|Jump to matching brace}}
# {{testcase|Jump to matching brace}}
## Open '''Braces.java'''
## Open '''Braces.java'''
Line 790: Line 790:
## Press '''Ctrl-['''
## Press '''Ctrl-['''
## Repeat it for all types of brackets
## Repeat it for all types of brackets
-
#* {{result|EXPECTED RESULT:Cursor jump to paired bracket }}
+
#* {{result|EXPECTED RESULT:Cursor jump to paired bracket   }}
# {{testcase|Braces Outline}}
# {{testcase|Braces Outline}}
## Open ''Braces.java''
## Open ''Braces.java''
## Put cursor on opening or closing bracket
## Put cursor on opening or closing bracket
-
#* {{result|EXPECTED RESULT:The matching bracket is indicated by the outline between the line numbers and folding symbol.   }}
+
#* {{result|EXPECTED RESULT:The matching bracket is indicated by the outline between the line numbers and folding symbol.   }}
# {{testcase|Opening brace popup}}
# {{testcase|Opening brace popup}}
## Open ''Braces.java''
## Open ''Braces.java''
Line 800: Line 800:
## Scroll the editor so the opening brace is out of the screen
## Scroll the editor so the opening brace is out of the screen
## Put cursor at the closing bracket
## Put cursor at the closing bracket
-
#* {{result|EXPECTED RESULT:The popup displaying the line with opening bracket is shown at the top of the editor. This popup goes away when cursor is moved or editor scrolled. The popup is not show when the line is not out of screen. }}
+
#* {{result|EXPECTED RESULT:The popup displaying the line with opening bracket is shown at the top of the editor. This popup goes away when cursor is moved. The popup is not show when the line is not out of screen.   }}
# {{testcase|Outline and popup settings}}
# {{testcase|Outline and popup settings}}
## Open options ''Editor -> General''
## Open options ''Editor -> General''
## Disable ''Show outline'' and ''Show tooltips''
## Disable ''Show outline'' and ''Show tooltips''
## Repeat previous two test cases
## Repeat previous two test cases
-
#* {{result|EXPECTED RESULT:The outline and popup are not shown any more }}
+
#* {{result|EXPECTED RESULT:The outline and popup are not shown any more   }}
{{attachments|
{{attachments|
* [[Media:TS73-PlainEditor.zip]]
* [[Media:TS73-PlainEditor.zip]]
}}
}}

Revision as of 13:31, 22 July 2013

Plain Editor Test Specification

Author:Jiri Prox
Version: 7.4
Last update:2013/07/21
Introduction:This specification cover features of plain editor. This functionality is common for all files and should work in every kind of editor. It covers basis editing, navigation, text selecting and other common utilities.

Contents

Test suite: Keyboard and Shortcuts

Purpose: Tests key shortcuts, basic manipulations with caret and modifying editor's content

  1. Typing characters in editor
    1. Open some Java file and focus the editor
    2. Try to type some text in the editor
    3. Press insert to switch from insertion to overwrite mode (on mac first map the Toggle Typing Mode keymap in NetBeans Preferences)
    4. Type some characters when overwrite mode is on
    5. Open some Java file and focus the editor
    6. Press arrow keys , , and
    7. Press arrow keys and in combination with Ctrl key (on Mac OS X use Alt key instead) (Ctrl+→ and Ctrl+←)
    8. Open some Java file and focus the editor, place caret to some line with indented text
    9. Press Home key several times (on Mac OS X use fn+left arrow)
    10. Open some Java file and focus the editor, place caret to some line with text
    11. Press End key (on Mac OS X use fn+right arrow)
    12. Press Ctrl-Up/Down several times
    13. Press PageUp/PageDown for a few times (on Mac OS X use fn+up/down arrow)
    14. Press Ctrl+Home/End a few times (on Mac OS X use cmd+up/down arrow)
    15. If you have changed some settings concerning key bindings, start IDE with a fresh userdir, open the some project and open some files in editor
    16. Try shortcuts for clipboard actions: Ctrl+C (Copy), Ctrl+X (Cut), Ctrl+V (Paste), Delete (Delete).
    17. Try shortcuts for other actions: Ctrl+F (find), Ctrl+G (Go to line), Ctrl+H (Replace) and Ctrl+F4 (Close).
    18. Open some file that has not been opened yet in the editor (from the any Java application)
    19. Try to use Undo/Redo shortcuts Ctrl-Z/Ctrl-Y, it should not be possible to do it because no changes were done previously
    20. Check if menu items for Undo/Redo (Edit|Undo and Edit|Redo) are disabled
    21. Perform any changes in the file
    22. Use the Undo action once (Ctrl+Z or a toolbar icon)
    23. Use the Redo action once (Ctrl+Y or a toolbar icon)
    24. Type another characters
    25. Use Undo as long as possible (vary between shortcut/toolbar action/main menu action), so that opened file has the same content as previously saved version
    • EXPECTED RESULT: Flag suggesting file is modified (file name is written in bold in th editor tab) disappeared after the last step and undo properly cleared all typed changes (characters). All navigation keys works as expected
  2. Other keybindings
    1. Try some of the key shortcuts defined in Tools|Options|Keymap
    2. Set a new shortcut for some action and then invoke it in editor
    3. Try to change existing shortcut to something different
    • EXPECTED RESULT: The proper action is always called. In step 3, the old shortcut does not work any more.
  3. Remove line
    1. Open some file in the editor
    2. Place caret to some non-empty line
    3. Press Shift+Delete (or Ctrl+E)
    4. Undo the last action
    • EXPECTED RESULT: Whole line is removed when you press Shift+Delete. Line deletion can be undone.
  4. File Path
    1. Open any file
    2. Hover mouse over the editor tab
    3. Right click on editor tab and select Copy File Path
    • EXPECTED RESULT:When hovering mouse over tab, the absolute path to the selected file is shown in popup. After selecting Copy File Path the absolute path is inserted into the clipboard
  5. Undo after save
    1. Open any file
    2. Make some modifications
    3. Save the file
    4. Make another modifications
    5. Call undo to get file to original state
    • EXPECTED RESULT:The modifications are undone, until the file get to the state as it was when it was opened. When the content matches the state when the file was saved last time the 'modified' marker (bold font in editor tab) is not shown

Test suite: Mouse Test

Purpose: Tests basic mouse functionality.
Setup: Opened some Java file in editor

  1. Mouse click
    1. Change focus to another window different from editor window.
    2. Click to editor window at any position.
    3. Try to click to different places in editor.
    • EXPECTED RESULT: Focus is changed to editor and cursor should be positioned at the clicked place or at end of line you have clicked.
  2. Mouse click after EOF
    1. Click on the first row in a file, caret should move to this place.
    2. Click behind the end of file to an empty area of editor.
    • EXPECTED RESULT: Caret must move to last line in editor. Caret is placed at EOL or at the column you have clicked (if it exists).
  3. Mouse double click
    1. Move mouse over any word in editor window.
    2. Double click quickly.
    3. Double click in front of the first character of the word.
    4. Double click behind last char of the word.
    • EXPECTED RESULT: Words must be selected (highlighted) and cursor positioned at end of selected words. If you double click between words and separator, the the first positioned (word or separator) will be selected.
  4. Mouse triple click
    1. Quickly triple click on any line in editor.
    • EXPECTED RESULT: Whole line you have clicked on should be selected.
  5. Mouse wheel
    1. Try to use the mouse wheel in editor.
    • EXPECTED RESULT: Document in editor should scroll up or down.
  6. Pop-up menu
    1. Open class in editor
    2. Right-click the editor and check the pop-up menu
    3. Left-click somewhere else in the editor to hide the pop-up menu
    4. Invoke pop-up menu using right-click again
    5. Right-click some other place in editor, pop-up menu should appear in that place
    6. Invoke the pop-up menu for the last time
    7. Press Esc key to hide the pop-up menu
    • EXPECTED RESULT: Pop-up menu is shown and hidden as expected.

Test suite: Selecting text

Purpose: This suite describes various ways of selecting text

  1. Select by mouse
    1. Open some file
    2. Put mouse caret somewhere and select part of line
    3. Try expand selection over several lines
    • EXPECTED RESULT: Selection text is highlighted, the selection area expands as expected
  2. Select by keyboard
    1. Open some file
    2. Put cursor in the middle of the file
    3. Press Shift + arrow keys
    4. Try Shift-Home/Shift-End, Shift-PgUp/Shift/End
    5. Try Ctrl-A
    • EXPECTED RESULT: Selected text is highlighted, selection is expanded as expected
  3. Double click
    1. Open some file
    2. Try double click on some word (press-release-press and hold)
    • EXPECTED RESULT: The whole word is selected
  4. Triple click
    1. Open some file
    2. Try triple click on non empty line (press-release-press-release-press and hold)
    • EXPECTED RESULT: Whole line is selected
  5. Rectangular selection
    1. Open some file
    2. Toggle Rectangular Selection (Alt-Shift-R or by button in editor toolbar)
    3. Select text with keyboard (shift+arrow keys) or by mouse
    4. Try expanding existing selection (shift-arrow keys, or Home/End/PgUp/PgDown)
    • EXPECTED RESULT: Rectangular block of text is selected, selection expands as expected

Test suite: Creating a New File

Purpose: Tests if it is possible to create a new file in a project and if editor's tabs are correctly focused.

  1. Create file
    1. Call File | Create New File
    2. Select Java, Java Class
    3. Press Next"""
    4. Type new class name and package
    5. Confirm by Finish button
    • EXPECTED RESULT: File is created and opened in editor. File has correct name and location. Content of the file is correctly formatted
  2. Create new file cancel
    1. Repeat previous test case but do not press 'Finish but press Cancel
    • EXPECTED RESULT: No file is created
  3. Invalid name or package
    1. Call File | Create New File
    2. Select Java Class and press Next
    3. Enter invalid class name (name is not identifier or already exists)
    4. Entry invalid package name
    • EXPECTED RESULT: Error message is displayed at the bottom of the dialog, Finish button is disabled
  4. Create file from context menu
    1. Right click on package node, Source Package or project node in project view
    2. Select New
    3. Select Other...
    • EXPECTED RESULT: The new submenu contains list of common/lates used file types, Other ... opens New File Dialog as in previous test cases
  5. Create new java class using FQN
    1. Call File | Create New File
    2. Select Java, Java Class
    3. in name text field type fully qualified class name
    4. press Finish
    • EXPECTED RESULT:When entering FQN into name text field, the package is disabled and filled with package part of the entered FQN. The invalid name detection and check for duplicate class works as expected.

Test suite: Opening Files in Editor

Purpose: This suite checks if is possible open files in Editor. There are more possibilities how to open file - they are described below.

  1. Open external file
    1. Open external file (file that is not a part of any NB project) from main menu action File|Open File...
    • EXPECTED RESULT:
      - File must be opened in editor.
      - There is a lot of limitations, because the file is not part of any project. (no classpath is set)
      - These features must work: Syntax coloring, Code Completion for JDK classes, Code Folding
      - These features won't work: Code Completion for non JDK classes, Compile/run the class
  2. Open file from project that is not opened
    1. Open file which is part of project which is not opened with File|Open File... menu.
    • EXPECTED RESULT:
      - File must be opened in editor and all java-related stuff must work: Code Completion, Code Folding, compilation, running, etc.
      - This action does not open the project where the class belongs to.
  3. Open a file in Projects view and close it
    1. Open attached project
    2. Expand plaineditor package under Source Packages node in Project view and double click the OpenFile.java source file
    3. Don't modify this file in editor
    4. Invoke popup menu above editor's tab and choose Close All Documents item
    • EXPECTED RESULT: The selected file should be opened in editor and then closed without any dialogs.
  4. Open a file in Files view and close it
    1. Open attached project if it is not opened yet
    2. Expand nodes in Files view and double click on the OpenFile.java source file
    3. Don't modify this file in editor
    4. Invoke popup menu above editor's tab and choose Close All Documents item
    • EXPECTED RESULT: The selected file should be opened in editor and then closed without any dialogs.
  5. Open a file from main menu and close it
    1. Select File|Open File from the main menu and find OpenFile.java file used in previous case
    2. Open it
    3. Don't modify the opened file
    4. Invoke popup menu above editor's tab and choose Close All Documents item
    • EXPECTED RESULT: The selected file should be opened in editor and then closed without any dialogs.
  6. Opening a file that is already opened in editor
    1. Expand nodes in Projects view and double click OpenFile.java source file
    2. Double click OpenFile.java source file in Projects view
    3. Double click OpenFile.java source file in Projects view
    4. Invoke popup menu above editor's tab and choose Close All Documents item
    • EXPECTED RESULT: - The document that was just opened (double-clicked) must be opened and focused in editor
      - All opened documents must be closed after you perform the last step

Test suite: Closing Modified Files

Purpose: This suite checks if a dialog shows up when user attempts to close a modified file

  1. Close a modified file (Save)
    1. Open OpenFile.java and modify it
    2. Modify flag (bold font) must by used in editor tab
    3. Close file with the X on editor's tab
    4. Confirm your changes by clicking Save
    • EXPECTED RESULT:
      - Modify flag must show up after you modify a file.
      - A dialog asking for confirmation must show up after the fourth step.
      - The file must be saved (check it on hard disk) and editor tab must be closed.
  2. Close a modified file (Discard)
    1. Open OpenFile.java and modify it
    2. Close the sample file using Ctrl+W shortcut
    3. Choose Discard in the dialog to discard your changes
    • EXPECTED RESULT:
      - Editor tab should be closed.
      - All changes are lost (check the file on hard disk)
  3. Close a modified file (Cancel)
    1. Open OpenFile.java and modify it
    2. Close the sample file using main menu action Window|Close Window
    3. Choose Cancel
    • EXPECTED RESULT:
      - Nothing happens - a file remains opened and it is not saved
      - A bold font must remain in editor tab

Test suite: Read-Only Files

  1. Open read-only file
    1. Open a read-only file in editor
    2. Try to type some characters inside
    • EXPECTED RESULT:
      - It is not possible to make any changes in read-only file
      - Read-only status is indicated by italics font in the editor's tab
  2. Make file read only
    1. Open any read/write file in editor
    2. Make some changes inside
    3. Make file read only (outside IDE)
    4. Save file
    • EXPECTED RESULT: Saving should not be possible, a warning should be displayed, telling the user that the file has become read only.

Test suite: Tab Focus

  1. Switching editor tabs
    1. Open two Java source files in editor and focus one of them (move mouse cursor to editor pane and click)
    2. Repeatedly switch to next file and return to previous one by clicking on editor tabs
    3. Use next tab action (Ctrl+PgUp/PgDown) to switch to next file
    4. Use Ctrl+Tab to switch to next file
    • EXPECTED RESULT: Tabs should be switched intuitively and focus should remain in editor window.
  2. Clone editor
    1. Open some file
    2. Right click on the tab and select Clone
    3. Do some modification in the original editor
    4. Do some modification in the cloned editor
    5. Close original editor, modify the cloned file and save it
    • EXPECTED RESULT:Both editor are synchronized, modifications are immediately propagated to the second editor. After closing original file the cloned editor works correctly.

Test suite: Performance After Startup

Purpose: Test speed and issues caused by IDE initialization.
Setup: Start these tests immediately after main window is opened

  1. Open File After Startup
    1. Start the IDE
    2. Open file (just a file, not a project) OpenFile.java from the sample project in IDE (use "File|Open File" from the main menu)
    3. Close the file
    • EXPECTED RESULT: Editor should be opened within a reasonable time. It should be less than 3 sec. on usual workstation.
  2. Open Project
    1. Start IDE with a fresh userdir
    2. Open sample project
    3. Open file OpenFile.java
    4. Wait until file is opened, wait until scanning is finished (you can see the progress in right-bottom corner of IDE)
    • EXPECTED RESULT:
      - The selected project is opened in reasonable time.
      - Scanning is started immediately after opening the project and should be performed in reasonable time.(runs on background)
      . The file can be edited when opened, syntax coloring for all elements is shown in reasonable time (after scan is finished).

Test suite: Performance when working with long files

Purpose: Tests speed of editing long files in editor

  1. Open Long Java File
    1. Open big java file (performanceBig.java) in editor (e.g. from main menu : File|Open File)
    2. Wait for the file to be opened
    3. Close the file
    4. Open it again and keep it opened
    • EXPECTED RESULT: Time of opening/closing file should be acceptable
  2. Working With Long Java File - No comments
    1. Use the same file from previous case, open it if it is not opened
    2. Try to scroll the file with scrollbars sliders
    3. Add Javadoc comment before the method "newMethod" - type e.g. /** My first javadoc comment */
    4. Test the speed of Enter key inside JavaDoc - press Enter when caret is just after "/**" that you typed in the previous step
    • EXPECTED RESULT: All actions should be done in acceptable time.
  3. Working With Long Java File - No Errors
    1. Switch to the big java file (should be opened in editor from previous case)
    2. Type some new java elements to class, e.g. type Integer myInt = new Integer( and wait for completion
    3. Go through the code completion list
    4. Type 10); and press enter
    5. Go to the end of document (Ctrl+End)
    6. Go to the beginning of document (Ctrl+Home)
    7. Scroll the editor window - hold Ctrl+Up/Down longer then 4 seconds
    • EXPECTED RESULT: All actions should be completed in a very short time
  4. Working With Long Java File - Errors
    1. Switch to the java file (should be opened in editor from previous case)
    2. Do some changes that corrupts the file - corrupt some fields and methods, for example
    3. Go to the end of document (Ctrl+End)
    4. Go to the beginning of document (Ctrl+Home)
    5. Scroll to the editor window - press Ctrl+Up/Down longer then 4 seconds
    6. Type new field to body of a class - type "Integer myInt2 = new Integer(10);"
    • EXPECTED RESULT: All actions should be completed in a short time, errors should show up in editor almost instantly.

Test suite: Internationalization

Purpose: Checks editor's support for national characters
Setup: You must have national support in OS set up (fonts, keyboard, etc.) and some file opened in editor. You can find information about your locale in Help|About

  1. National keyboards
    1. Create a new Java file (File|New File...)
    2. Switch to a keyboard layout that is different from English (e.g. to Czech or German)
    3. Type some non-English characters in the editor
    4. Save and close the file
    5. Open the file again
    • EXPECTED RESULT: All characters in chosen language should be displayed properly.
  2. I18N undo action
    1. Select part of the text with national characters and invoke Cut action (Ctrl+X).
    2. Try to invoke the Undo action (Ctrl+Z).
    • EXPECTED RESULT: All changes should be correctly undone.

Test suite: Line Endings

  1. Line endings - new files
    1. Create new Java file
    • EXPECTED RESULT: Check line endings of the new file in any binary editor (for example "mc" in Linux, press F3 to view the file and then F4 to switch to HEX mode). It should be '\n'
  2. Line endings - existing Java files
    1. Open a file with Unix EOL's (NewCanvasActionUnix.java under test.eols package)
    2. Type some new lines
    3. Open a file with windows EOL's (NewCanvasActionWin.java under test.eols package)
    4. Type some new lines
    5. Open a file with Mac EOL's (NewCanvasActionMac.java under test.eols package)
    6. Type some new lines
    7. Save files
    • EXPECTED RESULT: Check line endings in any binary editor for all files. The type of line endings must be preserved

Test suite: Using Clipboard

Purpose: To test Copy/Cut/Paste actions and interoperability with external/native editors.
Setup: You will need two java files opened in editor.

  1. Copy/Cut data inside a single Java file
    1. Switch to a java file in editor.
    2. Select a portion of text and copy it to the clipboard (Edit|Copy or Ctrl+C)
    3. Move blinking caret to another place of editor and paste data from clipboard to the source file (Edit|Paste or Ctrl+V)
    4. Select another portion of text and cut it to the clipboard (Edit|Cut or Ctrl+X)
    5. Move blinking caret to another place of editor and paste data from clipboard to the source file (Edit|Paste or Ctrl+V)
    • EXPECTED RESULT: Copied text is duplicated in editor, cut text is removed, texts are placed in caret position. Caret should be behind pasted data.
  2. Copy/Cut data between two edited files
    1. Switch to the first file.
    2. Select any portion of text and copy (or cut) it to the clipboard
    3. Switch to the second file.
    4. Paste the data from clipboard to the second file
    • EXPECTED RESULT: Selected text is copied (cut) from the first file to the second file.
  3. Copy/Cut data To cloned view
    1. Switch to a java file.
    2. Select any portion of text and copy (or cut) it to the clipboard
    3. Clone view (display popup menu over editor's tab and invoke "Clone Document").
    4. There should be auto focus on the cloned view, if no then get focus to the cloned view (click to cloned view).
    5. Paste data from clipboard to source file in cloned view
    • EXPECTED RESULT: Text is correctly pasted in caret's position and both editor windows (cloned and original) contain the same data.
  4. Copy/Cut data from OS to Netbeans
    1. Open any file in native editor which uses system clipboard
    2. Select some text and copy (or cut) it to the system clipboard (depends on native editor)
    3. Focus some Netbeans Java editor tab
    4. Paste text from clipboard to the edited file
    • EXPECTED RESULT: Selected text is copied from native editor and correctly pasted to Netbeans editor.
  5. Copy/Cut data from Netbeans to OS
    1. Switch to a file in IDE's editor
    2. Select some text in and copy (or cut) it to clipboard
    3. Open any file in native editor which use system clipboard
    4. Paste text from clipboard to a text file in native editor (depends on native editor)
    • EXPECTED RESULT: Selected text is copied from Netbeans to native editor
  6. Copy Paste history
    1. Open any files
    2. Several times select some text and call Copy action
    3. Press Ctrl-Shift-D
    4. By arrows keys select some item and press enter
    • EXPECTED RESULT:Ctrl-Shift-D open history popup where are last 9 string inserted into clipboard. This list is browsable by arrow keys. Enter inserts selected text into editor. Another possibility to insert text is direst pressing number 1 - 9. When the text is too long to be displayed whole in the list, additional popup is opened, displaying whole text
  7. Rectangular selection
    1. Turn on rectangular selection
    2. Select block of code
    3. Press Copy (or Cut)
    4. Select another rectangular block of code as target
    5. Press Paste
    • EXPECTED RESULT: Block of code of copied / moved to new position

Test suite: Drag & Drop

Purpose: Tests the drag & drop functionality inside NetBeans editor.
Setup: Opened any file in editor and focus should be in editor window.

  1. Basic test
    1. Select a block of code by mouse
    2. Drag the code and drop it to a different position in source code
    • EXPECTED RESULT: The code should be moved to the new position.
  2. Undo test
    1. Drag & Drop a piece of code
    2. Press Ctrl+Z
    • EXPECTED RESULT: The code should be moved and undo should return the code into it's original position.
  3. Interaction with guarded blocks
    1. Create a new form
    2. Try to invoke drag&drop action on guarded blocks
    • EXPECTED RESULT: Only the code outside guarded blocks should be moved. The code inside guarded blocks is copied.

Test suite: Editor's Toolbar and Line numbers

  1. Show and hide line numbers (using gutter)
    1. Open a file in editor.
    2. Check if gutter is in its position (gutter = gray left edge of editor window).
    3. Invoke popup menu above gutter
    4. Try to check/uncheck Show Line Numbers
    • EXPECTED RESULT:
      - Gutter must be displayed on the left side of the Editor Window
      - Line numbers should be shown or hidden according to state of checkbox in gutter's context menu
  2. Show and hide editor's toolbar (using gutter)
    1. Open a file in editor
    2. Check if gutter is in its position (gutter = gray left edge of editor window).
    3. Invoke popup menu above gutter
    4. Try to check/uncheck Show Toolbar
    • EXPECTED RESULT:
      - Gutter must be displayed on the left side of the Editor Window
      - Editor's toolbar should be shown or hidden according to state of checkbox in gutter's context menu
  3. Show and hide line numbers (using main menu)
    1. Open Java file in editor
    2. Try to show/hide line numbers using main menu action View|Show Line Numbers
    • EXPECTED RESULT: Line numbers should be displayed and hidden according to state of checkbox state.
  4. Show and hide editor's toolbar (using main menu)
    1. Open Java file in editor
    2. Try to show/hide editor's toolbar using main menu action View|Show Editor Toolbar
    • EXPECTED RESULT: Toolbar should be displayed and hidden according to state of checkbox state.

Test suite: Find&Replace Test

Purpose: This suite tests the search/replace bar

  1. Open and close search bar
    1. Open some file
    2. Press Ctrl-F
    3. Type some text info Search text field
    4. Open another file or switch editor
    5. Close search button by x button
    6. Open search bar again and press Esc when focus is in search text field
    • EXPECTED RESULT: Search bar is opened and focus is transferred to Search text field.
      Search bar stays opened when switching editors.
      Esc or x button closes search bar
  2. Simple search
    1. Open search.txt
    2. Open search bar and type Search
    3. Press enter
    4. Press Next button in search bar several times
    • EXPECTED RESULT: Search bar is opened. Search result are highlighted while typing. When enter is pressed focus is transferred to editor and cursor is moved to the first occurrence. In status bar there is message that search was successful. Next"" button jumps across next occurrences of given text. Number of matches are shown in search bar, next to the Highlight checkbox, as for example 'Highlight X Results '
  3. Search backwards
    1. Open search.txt
    2. Put cursor at the end of text
    3. Press Ctrl-F' and type search
    4. Press Previous several times
    • EXPECTED RESULT: Cursor is move to last occurrence of searched text before current position
  4. Match Case
    1. Open search.txt
    2. Press Ctrl-F
    3. Type Search and check Match Case
    4. Press enter
    • EXPECTED RESULT: Only occurrences with correct case are found
  5. Whole words
    1. Open search.txt
    2. Press Ctrl-F and type search
    3. Press enter
    • EXPECTED RESULT: Only whole words are found
  6. Regular expression
    1. Open search.txt
    2. Press Ctrl-F and type .*[1-9]."
    3. Check Regular Expression check box and press Enter
    • EXPECTED RESULT: One occurrence is found. Only 4 characters are selected
  7. Highlight results
    1. Open search.txt and press Ctrl-F
    2. Type search into the text field
    3. Toggle Highlight Results
    • EXPECTED RESULT: When Highlight is on, all occurrences of searched text is marked by orange background, this mark stays even when search bar is closed
  8. Wrap around
    1. Open search.txt and press Ctrl-F
    2. type search into text field
    3. toggle Wrap Around and press Next several times
    • EXPECTED RESULT: When wrap is on the search continues from the beginning of the file, once the EOF is reached. Otherwise the search ends an the end of the file with message search is not found in the status bar
  9. Searching when search bar is closed
    1. Open search.txt and press Ctrl-F
    2. type search into the text field and press enter
    3. Close search bar
    4. Try Find Next Occurrence, Find Previous Occurrence and Toggle Highlight Results from the editor tool bar.
    • EXPECTED RESULT: The buttons works as expected
  10. Previous searches
    1. Open search bar
    2. Expand Search: combo box
    • EXPECTED RESULT: Combo box list contains all strings from previous searches
  11. Open replace dialog
    1. Open some file
    2. Press Ctrl-H
    3. Close replace bar by x button and by esc
    • EXPECTED RESULT: Replace bar is correctly opened, x button or esc closes the panel
  12. Simple replace
    1. Open search.txt and press Ctrl-H
    2. Type search to search text field, type replaced to replace with text field
    3. Press Replace
    4. Undo all changes
    • EXPECTED RESULT: Next occurrence of search behind cursor position is replace with replaced, Changes can be undone
  13. Replace All
    1. Open search.txt and press Ctrl-H
    2. Type search to search text field and replaced to replace with
    3. Press Replace all
    4. Undo all changes
    • EXPECTED RESULT: All occurrences of search behind current cursor position are replaced with replaced (if wrap around is enabled the all occurrences is whole file are replaced)
  14. Replace backwards
    1. Open search.txt and press Ctrl-H
    2. Type search into search text field and press Next several times
    3. type replaced into replace with text field
    4. check Replace backwards' and press Replace
    5. Undo all changes
    • EXPECTED RESULT: Last occurrence of search before current cursor position is replaced
  15. Preserve case
    1. Open search.txt and press Ctrl-H
    2. Type search into search text field, uncheck Match case
    3. Type replaced into replace with text field
    4. Check '"Preserve Case and press Replace All
    5. Undo changes
    • EXPECTED RESULT: All occurrences are replaced. Case is preserved, e.g. search is replaced with replaced and Search is replaced with Replaced
  16. Search Selection
    1. Open search.txt
    2. Select part of some word
    3. Press Ctrl-F3 or use Find Selection from editor toolbar
    • EXPECTED RESULT: All occurrences of selected text are found, cursor is moved to the first of them
  17. Code completion - find
    1. Open search bar
    2. Type part of word which is present in editor, e.g. se
    3. Press ctrl-space to get code completion
    4. Select item form code completion
    • EXPECTED RESULT: When pressing ctrl-space the code completion popup is opened, providing all words in current file beginning with given prefix. After confirmation the selected word is inserted in the find text field
  18. Code Completion - replace
    1. Repeat previous test case, but instead of Search Bar and Find text field, use Replace Bar and Replace text field
    • EXPECTED RESULT: The code completion works as in previous testcase
  19. Search behavior - firefox
    1. Open Options
    2. Select Editor, on the General tab select Enter to find next to switch search bar to firefox style
    3. In editor open search bar and try Enter and Esc key behavior
    • EXPECTED RESULT: On Enter, next occurrence is find - caret is moved, Esc closes the search bar
  20. Search behavior - vi
    1. Open Options
    2. Select Editor, on the General tab select Enter to finish search to switch search bar to vi style
    3. In editor open search bar and try Enter and Esc key behavior
    • EXPECTED RESULT: Enter finds next occurrence of the searched text, moves the cursor and closes the search bar. Esc closes immediately the search bar. The search is closed also when focus is moved to the editor
  21. Closing Search bar
    1. Open any file file and press Ctrl-F or Ctrl-H to open search/replace bar
    2. Put cursor into the editor
    3. Press Esc
    • EXPECTED RESULT:Search/Replace bar is closed

Test suite: Bookmarks

Setup: Opened any file in editor

  1. Adding bookmarks
    1. Put caret at any line in document
    2. Press Ctrl-Shift-M
    3. use contex menu in gutter -> Bookmarks | Toggle Bookmark
    4. use button in editor toolbar (tooltip: Toggle Bookmark)
    • EXPECTED RESULT: Bookmark is added to current line or is removed if there is one already
  2. Navigating among bookmarks
    1. Place several bookmarks in a file
    2. Press Ctrl-Shift-Comma/Ctrl-Shift-Period
    3. Use gutter context menu - Bookmarks | Next Bookmark / Bookmarks | Previous Bookmark
    4. Use buttons in editor toolbar
    • EXPECTED RESULT: Caret cycle through bookmarked lines
  3. Bookmark persistence
    1. Place several bookmarks in a file
    2. Switch files
    3. Close/Reopen file
    4. Restart IDE
    • EXPECTED RESULT: Bookmark should stay intact
  4. Moving bookmark
    1. Put bookmark in the document
    2. Go to previous line and press enter or delete it
    • EXPECTED RESULT: Bookmark moved to mark the same line of code (e.g. is moved to next line if a new line is added before if and vice versa)
  5. Bookmark view
    1. Add several bookmarks into some files
    2. Open bookmark view Window | Navigation | Bookmarks
    • EXPECTED RESULT: Bookmark view is opened in bottom od IDE window. In the left, there is list of bookmarks (ordered in tree), it the right there is preview of currently selected bookmark.
  6. Bookmark view - switching between list and tree
    1. In the Bookmark view switch between list and tree representation
    • EXPECTED RESULT: List view - all bookmark are listed in one table, there is name of the bookmark (blanks by default), shortcut and location.

Tree view - the bookmarks are order into tree, copying the physical location of the files with bookmarks

  1. Naming the bookmarks
    1. Open Bookmarks view
    2. Set bookmark name in tree mode by right click on bookmarks and selecting Rename
    3. Set bookmark name in tree mode by editing (F2) the list item
    4. Set bookmark name in table mode by double click on appropriate table cell
    • EXPECTED RESULT: Bookmark are named correctly, the name is persistent.
  2. Bookmarks shortcuts
    1. Open Bookmarks view
    2. Set shortcut for bookmark in table mode by editing the appropriate table cell
    • EXPECTED RESULT: The assigned shortcut can by only single letter or number. The shortcut is displayed also in tree mode.
  3. Go to bookmark
    1. Press Goto to line shortcut (ctrl-G by default) twice
    2. Press Bookmark shortcut
    • EXPECTED RESULT: After pressing second Go to Line shortcut the dialog is displayed - there is all letters and numbers. The assigned character are highlighted. When hovering mouse over highlighted item - a bookmark location is displayed in popup. When pressing used shortcut a related files is opened and scrolled to proper position.
  4. Bookmark history popup
    1. Open some fie
    2. Press Bookmark History Popup Next/Prev (by default ctrl-shift-comma, ctrl-shift-period)
    3. Use the shortcuts to navigate through the list
    4. Select desired item in the popup and release the ctrl-shift
    • EXPECTED RESULT: A bookmark popup is displayed when pressing the key shortcut. Last item is named Bookmarks and open Bookmarks view. Navigation in the list works like navigation in the list of opened documents.

Test suite: Go To Line

  1. Go to Line
    1. Open some file
    2. Call Go to line from main menu Navigation | Go to line "" or use shortcut Ctrl-G
    3. Enter some value and press enter
    • EXPECTED RESULT: Caret is moved to proper line of code
  2. Go to line behind EOF
    1. Call Go to Line
    2. Enter number bigger then number of line in current file and confirm
    • EXPECTED RESULT: Caret is moved at the last line of the file
  3. Go to line - negative case
    1. Open Go To Line
    2. Try enter invalid values - character, negative or float number
    • EXPECTED RESULT:For invalid value go to line feature should not work and pop up window stays as it
  4. Go to line - last values
    1. Call Go To Line
    2. Check the combo box values
    • EXPECTED RESULT: Combo box contains recently used values
  5. Go to line - Cancel
    1. Call Go To Line
    2. Press Cancel
    • EXPECTED RESULT: Caret is not moved, Go To Line dialog is closed

Test suite: Jump List

  1. Basic Jump List functionality
    1. Open several java files and perform several searches.
    2. Try to jump through the jump list by pressing ALT+Left for previous entry and ALT+Right for next entry
    3. Try to jump through the jump list by selecting specific file from a popup window available in the right part of Go forward/Go backward buttons (editor toolbar)
    • EXPECTED RESULT: Editor should navigate through all positions in successful searches. Watch out for performance and for side effects.
  2. Jump List - comboboxes
    1. Open some file
    2. Perform several Go To Source/Definition, among multiple files
    3. Open Jump List (by clicking on small black down arrow next to Go Back/ Forward button
    4. From the list select some item and click on it
    • EXPECTED RESULT: Black button open list of previous/next locations in the jump list. Clicking on item will move cursor to related position
  3. Last edit
    1. Open some file and modify it
    2. Save it and close
    3. Press Ctrl-Q (or use button in editor tool bar)
    • EXPECTED RESULT: File is opened again and cursor is moved to position where the file was edited

Test suite: Print to HTML

  1. Menu Print to HTML
    1. Check main menu File|Print to HTML.
    • EXPECTED RESULT: Name of menu is "Print to HTML", mnemonic is on 'H'. Enabled only when a file is selected in Explorer window.
  2. Default values
    1. Open a java file.
    2. Invoke "Print to HTML" dialog.
    • EXPECTED RESULT: Default file location is in your home directory. ( e.g. /home/pf120623/Test.java )
      Colors used are the same as those in Editor (without semantic coloring).
      Option "Print only selected text" is enabled only if piece of code is selected in the editor. In this case, it is selected by default.
      Option "Show line numbers" is enabled is line numbers are visible in editor.
      Option "Open generated HTML in browser" is enabled for all time and not selected by default.
  3. Select Location
    1. Open Print to HTML dialog.
    2. Type a path of file to text field. E.g. /tmp/test.html
    3. Click to Browse ... button -> File chooser dialog
    4. Click Cancel in file chooser dialog
    5. Click to Browse ... button again -> File chooser dialog
    6. Change path. E.g. /var/tmp/test2.html and confirm file chooser dialog by Open.
    7. Confirm Print to HTML dialog by Ok button.
    • EXPECTED RESULT: The path shouldn't be changed after step 4. (must be /tmp/test.html)
      The path should be changed in step 6. There should be created new file /var/tmp/test2.html
  4. Select Only selected text
    1. Select some rows of code in the Editor.
    2. Open Print to HTML dialog and confirm it.
    • EXPECTED RESULT: The checkbox "Print only selected text" should be enabled and selected. There should be a html file created, containing only selected text. Check this in HTML browser.
  5. Select Open generated HTML in browser
    1. Open Print to HTML dialog.
    2. Select option "Open generated HTML in browser"
    3. Confirm the dialog with Ok button
    • EXPECTED RESULT: File should be generated and opened in default HTML browser.

Test suite: Word Matching

  1. Previous Word
    1. Open some file
    2. Put cursor in the middle of the text
    3. Press Ctrl-K several times
    • EXPECTED RESULT: Previous word from the code is inserted at cursor position.
  2. Next Word
    1. Repeat previous test case but press Ctrl-Shit-K
    • EXPECTED RESULT: Next word from the code is inserted as cursor position
  3. Filtered world matching
    1. Open some file
    2. Put caret at the middle of the code
    3. Type some character, e.g. 'p'
    4. Press Ctrl-K
    • EXPECTED RESULT: Previous word beginning with 'p' is inserted at cursor position

Test suite: Select Document Node in Project,Files,Favorites

  1. Menu "Navigate"
    1. Verify functionality for every Navigate|Select in ... main menu item:
    2. Have a document focused in the IDE
    3. Use Select in Projects command or use shortcut Ctrl+Shift+1
      → the file is selected in Projects
    4. Use Select in Files command or use shortcut Ctrl+Shift+2
      → the file is selected in Files
    5. Use Select in Favorites command or use shortcut Ctrl+Shift+3
      → the file is selected in Favorites
    • EXPECTED RESULT: Node corresponding to opened editor is selected in Project/Files/Favorites view
  2. Same name test - Projects view
    1. Close all projects and create a new project
    2. Create files Main.java and Main.html in one package
    3. Open Main.java and call Select in Project
    4. Open Main.html and call Select in Project
    5. Try to repeat previous steps
    • EXPECTED RESULT: The right node is always selected in Projects view
  3. Same name test - Files view
    1. Close all projects and create a new project
    2. Create files Main.java and Main.html in one package
    3. Open Main.java and call Select in Files
    4. Open Main.html and call Select in Files
    5. Try to repeat previous steps
    • EXPECTED RESULT: The right node is always selected in Files view

Test suite: Change case, insert current date

  1. Selection to upper-case
    1. Open a java file in editor.
    2. Select some text with both lower and upper case
    3. Press Ctrl+U U (Ctrl+U followed by U)
    • EXPECTED RESULT:
      - Selection should be converted to upper-case.
  2. Selection to lower-case
    1. Open a java file in editor.
    2. Select some text with both lower and upper case
    3. Press Ctrl+U L (Ctrl+U followed by L)
    • EXPECTED RESULT:
      - Selection should be converted to lower-case.
  3. Switch case in selection
    1. Open a java file in editor.
    2. Select some text with both lower and upper case
    3. Press Ctrl+U S (Ctrl+U followed by S)
    • EXPECTED RESULT:
      - Selection should be converted so that letters that were originally in capitals are now in lower case and vice versa.

Test suite: Show white spaces

  1. Enable show not printable character
    1. Open some file
    2. Select View -> Show Notprintable character
    • EXPECTED RESULT: Non-printable (space, new lines and tabs) characters are showed in all editors
  2. Typing not printable characters
    1. Open some editor
    2. Type space and tab
    3. Enter new-lines
    • EXPECTED RESULT: Newly typed not printable characters are indicated by appropriate symbols (the formatting settings may by changed to input tab character)
  3. Remove trailing spaces
    1. Open any file
    2. Type several spaces at the end of some lines
    3. Call Source -> Remove Trailing spaces
    • EXPECTED RESULT:Trailing spaces are removed.

Test suite: Zoom

Purpose: This test suite is related to zoom in text editor.

  1. Zoom in
    1. Open Tools->Options->Keymap and set shortcut for Zoom Text In action (Default is alt-mouse wheel)
    2. Open editor and call Zoom Text In action
    • EXPECTED RESULT: The font in editor is enlarged. Syntax coloring must stay untouched
  2. Zoom out
    1. Open Tools->Options->Keymap and set shortcut for Zoom Text Out (Default is alt-mouse wheel)
    2. Open some file and call Zoom Text Out action
    • EXPECTED RESULT: Font size in actual editor is reduced.

Test suite: On Save Actions

Purpose: This test suite cover Reformatting and Removing trailing spaces on save. The functionality is demonstrated at java file, although it should work on all types of file

  1. Reformat - modified lines
    1. Open onsave.Reformat.java file
    2. In the options switch to Editor -> On Save, language: All languages
    3. Select Reformat: Modified Lines Only
    4. Modify lines 13-17 and save the file
    • EXPECTED RESULT:Modified lines are reformated when the file is saved. Other lines stays untouched
  2. Reformat - all Lines
    1. Open onsave.Reformat.java file
    2. In the options switch to Editor -> On Save, language: All languages
    3. Select Reformat: All Lines
    4. Modify the file and save
    • EXPECTED RESULT:Whole file is reformatted after save
  3. Remove Trailing spaces - modified lines
    1. Open onsave.TrailingSpaces.java file
    2. In the options switch to Editor -> On Save, language: All languages
    3. Select Remove trailing lines: Modified Lines Only
    4. Modify the line 14 and save
    • EXPECTED RESULT:Trailing spaces are removed from line 14, other lines are untouched
  4. Remove Trailing spaces - all lines
    1. Open onsave.TrailingSpaces.java file
    2. In the options switch to Editor -> On Save, language: All languages
    3. Select Remove trailing lines: All Lines
    4. Modify the line 14
    5. Put cursor at the line 12, column 5 and save
    • EXPECTED RESULT:Trailing spaces are removed from the whole file. Except the actual line 12
  5. Language specific actions
    1. Set the on save options for language: All Languages to default values - none
    2. Repeat previous 4 test cases for language:Java
    • EXPECTED RESULT:The functionality for java files are exactly the same, as was described earlier. No on save actions are performed for other file types (xml, php etc....)

Test suite: Brace Matching

  1. Brace Matching - match
    1. Open Braces.java
    2. Put cursor at any opening or closing brace
    • EXPECTED RESULT:Matching brace is highlighted by yellow color. When there are two braces next to each other and cursor is between them, the first brace has priority.
  2. Brace matching - no match
    1. Open Braces.java
    2. Type single ( or [
    • EXPECTED RESULT:The brace is highlighted by red background it there is not matching brace
  3. Jump to matching brace
    1. Open Braces.java
    2. Put cursor on opening or closing bracket
    3. Press Ctrl-[
    4. Repeat it for all types of brackets
    • EXPECTED RESULT:Cursor jump to paired bracket
  4. Braces Outline
    1. Open Braces.java
    2. Put cursor on opening or closing bracket
    • EXPECTED RESULT:The matching bracket is indicated by the outline between the line numbers and folding symbol.
  5. Opening brace popup
    1. Open Braces.java
    2. Select some closing bracket
    3. Scroll the editor so the opening brace is out of the screen
    4. Put cursor at the closing bracket
    • EXPECTED RESULT:The popup displaying the line with opening bracket is shown at the top of the editor. This popup goes away when cursor is moved. The popup is not show when the line is not out of screen.
  6. Outline and popup settings
    1. Open options Editor -> General
    2. Disable Show outline and Show tooltips
    3. Repeat previous two test cases
    • EXPECTED RESULT:The outline and popup are not shown any more
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