| # | Test case [automated] | Description |
| 1 | Check name | 1.
Open some java file (e.g. HelloWorld.java).
|
|
EXPECTED RESULT:
Title of selected Document Window contains title "HelloWorld.java", nothing else. In a tooltip over document header is path to showed file. |
| 2 | Check name - modified | 1.
Open some java file (e.g. HelloWorld.java). 2.
Modify file in editor.
|
|
EXPECTED RESULT:
Title of selected Document Window contains title "HelloWorld.java" and asterisk(modified status). |
| 3 | Check description - read-only | 1.
Open some read-only java file (e.g. HelloWorld.java).
|
|
EXPECTED RESULT:
Title of selected document contains title "HelloWorld.java[r/o]" (the [r/o] shows, this file is read only). |
| 4 | Persistence of Window System - document | 1.
Open some java file (e.g. HelloWorld.java). 2.
Restart IDE.
|
|
EXPECTED RESULT:
Source Editor with opened file HelloWorld is displayed. |
| 5 | Check Document Window icon | 1.
Open 2 java files. 2.
Open 2 form files. 3.
Open 2 files from CVS repository. 4.
Open 2 xml files. 5.
Open 2 txt files.
|
|
EXPECTED RESULT:
Each Document Window has an icon. Icon doesn't represent displayed object, but editor or viewer of the Document Window. Java, Xml and Txt editors have the same icons, Form editors have the same icons and files from CVS have the same icons. |
| 6 | Open the Document Window - java file | 1.
Open java file (e.g. HelloWorld.java).
|
|
EXPECTED RESULT:
Source Editor is opened, it contains Source Editor tab HelloWorld.java, this tab is selected and focus is inside editor. |
| 7 | Open the Document Window - java file - already opened | 1.
Open 2 java files (e.g. HelloWorld_1.java, HelloWorld_2.java - second tab is selected). 2.
Open java file (e.g. HelloWorld_1.java).
|
|
EXPECTED RESULT:
Editor is opened, it contains Source Editor tabs HelloWorld_1.java and HelloWorld_2.java, source editor tab HelloWorld_1.java is selected and focus is inside editor. |
| 8 | Open the Document Window - form file | 1.
Open form file (e.g. HelloWorld_jframe.java).
|
|
EXPECTED RESULT:
Editor is opened, it contains HelloWorld.java tab with selected Design editor. |
| 9 | Open the Document Window - form file - already opened | 1.
Open 2 form files (e.g. HelloWorld_jframe_1.java, HelloWorld_jframe_2.java - second tab is selected). 2.
Open java file (e.g. HelloWorld_jframe_1.java).
|
|
EXPECTED RESULT:
Editor is opened, it contains 2 tabs HelloWorld_jframe_1.java and HelloWorld_jframe_2.java, HelloWorld_jframe_1.java tab with selected Design editor. |
| 10 | Close document window - by close button in the header | 1.
Open java file (e.g. HelloWorld.java). 2.
Push close button on the tab HelloWorld.java.
|
|
EXPECTED RESULT:
HelloWorld (and only HelloWorld) Document Window is closed. |
| 11 | Close document window - by contextual menu | 1.
Open java file (e.g. HelloWorld.java). 2.
From contextual menu of HelloWorld Document Window push Close Window.
|
|
EXPECTED RESULT:
HelloWorld (and only HelloWorld) Document Window is closed. |
| 12 | Close document window - by main menu | 1.
Open java file (e.g. HelloWorld.java). 2.
From main menu push Window | Close Window.
|
|
EXPECTED RESULT:
HelloWorld (and only HelloWorld) Document Window is closed. |
| 13 | Close document window - by shortcut | 1.
Open java file (e.g. HelloWorld.java). 2.
Press shortcut for Close Window action (Ctrl+F4).
|
|
EXPECTED RESULT:
HelloWorld (and only HelloWorld) Document Window is closed. |
| 14 | Close All Documents - by contextual menu | 1.
Open 2 java files (e.g. HelloWorld_1.java, HelloWorld_2.java). 2.
From contextual menu of HelloWorld Document Window push Close All Windows.
|
|
EXPECTED RESULT:
All (both HelloWorld_1 and HelloWorld_2) Document Windows are closed. |
| 15 | Close All Documents - by main menu | 1.
Open 2 java files (e.g. HelloWorld_1.java, HelloWorld_2.java). 2.
From main menu push Window | Close All Windows.
|
|
EXPECTED RESULT:
All (both HelloWorld_1 and HelloWorld_2) Document Windows are closed. |
| 16 | Close All Documents - by shortcut | 1.
Open java file (e.g. HelloWorld.java). 2.
Press shortcut for Close All Windows action (Ctrl+Shift+F4).
|
|
EXPECTED RESULT:
All (both HelloWorld_1 and HelloWorld_2) Document Windows are closed. |
| 17 | Close All Documents - split - by contextual menu | 1.
Open 2 java files (e.g. HelloWorld_1.java, HelloWorld_2.java). 2.
DnD HelloWorld_1 window to the bottom of Document Area. 3.
From contextual menu of HelloWorld_1 Document Window push Close All Windows.
|
|
EXPECTED RESULT:
All (both HelloWorld_1 and HelloWorld_2) Document Windows are closed. |
| 18 | Close All Documents - split - by main menu | 1.
Open 2 java files (e.g. HelloWorld_1.java, HelloWorld_2.java). 2.
DnD HelloWorld_1 window to the bottom of Document Area. 3.
From main menu push Window | Close All Windows.
|
|
EXPECTED RESULT:
All (both HelloWorld_1 and HelloWorld_2) Document Windows are closed. |
| 19 | Close Other Documents - by contextual menu | 1.
Open 3 java files (e.g. HelloWorld_1.java, HelloWorld_2.java, HelloWorld_3.java). 2.
From contextual menu of HelloWorld_2.java push Close Other Windows.
|
|
EXPECTED RESULT:
HelloWorld_1.java and HelloWorld_3.java Document Windows are closed only HelloWorld_2.java stays opened. |
| 20 | Close Other Documents - by main menu | 1.
Open 3 java files (e.g. HelloWorld_1.java, HelloWorld_2.java, HelloWorld_3.java). 2.
Select HelloWorld_2.java and push from main menu Window | Close Other Documents .
|
|
EXPECTED RESULT:
HelloWorld_1.java and HelloWorld_3.java Document Windows are closed only HelloWorld_2.java stays opened. |
| 21 | Save document - by contextual menu | 1.
Open java file (e.g. HelloWorld.java). 2.
Modify HelloWorld source code. 3.
From contextual menu of Window push Save Document.
|
|
EXPECTED RESULT:
Before saving HelloWorld tab contains asterisk as modified flag, after HelloWorld (and only HelloWorld) document is saved and asterisk vanishes from header. |
| 22 | Save document - by main menu | 1.
Open java file (e.g. HelloWorld.java). 2.
Modify HelloWorld source code. 3.
From main menu push File | Save.
|
|
EXPECTED RESULT:
Before saving HelloWorld tab contains asterisk as modified flag, after HelloWorld (and only HelloWorld) document is saved and asterisk vanishes from header. |
| 23 | Save document - by shortcut | 1.
Open java file (e.g. HelloWorld.java). 2.
Modify HelloWorld source code. 3.
Press shortcut for Save action (Ctrl+S).
|
|
EXPECTED RESULT:
Before saving HelloWorld tab contains asterisk as modified flag, after HelloWorld (and only HelloWorld) document is saved and asterisk vanishes from header. |
| 24 | Save document - not modified | 1.
Open java file (e.g. HelloWorld.java). 2.
Modify HelloWorld source code. 3.
Save HelloWorld file.
|
|
EXPECTED RESULT:
Contextual menu of the document contains disabled Save Document item, Save item is disabled in File main menu and shortcut for Save action did nothing. |
| 25 | Clone document window - by contextual menu | 1.
Open java file (e.g. HelloWorld.java). 2.
From contextual menu of Window push Clone Window.
|
|
EXPECTED RESULT:
HelloWorld as original and HelloWorld as clone(new tab in Editor Area) are opened. |
| 26 | Clone document window - by main menu | 1.
Open java file (e.g. HelloWorld.java). 2.
From main menu push Window | Clone Window.
|
|
EXPECTED RESULT:
HelloWorld as original and HelloWorld as clone(new tab in Editor Area) are opened. |
| 27 | Clone document window - not cloneable | 1.
Open Welcome Screen (Help | Welcome Screen).
|
|
EXPECTED RESULT:
Menu item Clone Window is disabled in Window main menu. |
| 28 | Clone Window | 1.
Open Files window (Window | Files).
|
|
EXPECTED RESULT:
Menu item Clone Window is disabled in Window main menu. |
| 29 | Maximize Document Window - by contextual menu | 1.
Open java file (e.g. HelloWorld.java). 2.
From contextual menu of Window push Maximize Window.
|
|
EXPECTED RESULT:
Editor Window(whole window consists of all opened document windows) is maximized and HelloWorld source editor tab is selected and activated. Contextual menu contains Restore Window item instead of Maximize Window. Main menu Window contains Restore Window item instead of Maximize Window. |
| 30 | Maximize Document Window - by main menu | 1.
Open java file (e.g. HelloWorld.java). 2.
From main menu push Window | Maximize Window.
|
|
EXPECTED RESULT:
Editor Window(whole window consists of all opened document windows) is maximized and HelloWorld source editor tab is selected and activated. Contextual menu contains Restore Window item instead of Maximize Window. Main menu Window contains Restore Window item instead of Maximize Window. |
| 31 | Maximize Document Window - by shortcut | 1.
Open java file (e.g. HelloWorld.java). 2.
Press shortcut for Maximize Window action (Shift+Escape).
|
|
EXPECTED RESULT:
Editor Window(whole window consists of all opened document windows) is maximized and HelloWorld source editor tab is selected and activated. Contextual menu contains Restore Window item instead of Maximize Window. Main menu Window contains Restore Window item instead of Maximize Window. |
| 32 | Maximize Document Window - by doubleclick on header | 1.
Open java file (e.g. HelloWorld.java). 2.
Doubleclick on header of Document Window.
|
|
EXPECTED RESULT:
Editor Window(whole window consists of all opened document windows) is maximized and HelloWorld source editor tab is selected and activated. Contextual menu contains Restore Window item instead of Maximize Window. Main menu Window contains Restore Window item instead of Maximize Window. |
| 33 | Persistence of maximized Document Window - restart | 1.
Open java file (e.g. HelloWorld.java). 2.
Doubleclick on header of Document Window. 3.
Restart IDE.
|
|
EXPECTED RESULT:
Editor Window(whole window consists of all opened document windows) is maximized and HelloWorld source editor tab is selected and activated. Contextual menu contains Restore Window item instead of Maximize Window. Main menu Window contains Restore Window item instead of Maximize Window. |
| 34 | Restore Document Window - by contextual menu | 1.
Open java file (e.g. HelloWorld.java). 2.
Maximize Document Window(by contextual menu). 3.
From contextual menu of Window push Restore Window.
|
|
EXPECTED RESULT:
Editor Window(whole window consists of all opened document windows) is maximized and HelloWorld source editor tab is selected and activated. Contextual menu contains Restore Window item instead of Maximize Window. Main menu Window contains Restore Window item instead of Maximize Window. |
| 35 | Restore Document Window - by main menu | 1.
Open java file (e.g. HelloWorld.java). 2.
Maximize Document Window(by main menu). 3.
From main menu push Window | Restore Window.
|
|
EXPECTED RESULT:
Editor Window(whole window consists of all opened document windows) is maximized and HelloWorld source editor tab is selected and activated. Contextual menu contains Restore Window item instead of Maximize Window. Main menu Window contains Restore Window item instead of Maximize Window. |
| 36 | Restore Document Window - by shortcut | 1.
Open java file (e.g. HelloWorld.java). 2.
Maximize Document Window(by shortcut). 3.
Press shortcut for Restore Window action (Shift+Escape).
|
|
EXPECTED RESULT:
Editor Window(whole window consists of all opened document windows) is maximized and HelloWorld source editor tab is selected and activated. Contextual menu contains Restore Window item instead of Maximize Window. Main menu Window contains Restore Window item instead of Maximize Window. |
| 37 | Restore Document Window - by doubleclick on header | 1.
Open java file (e.g. HelloWorld.java). 2.
Maximize Document Window(by shortcut). 3.
Doubleclick on header of Runtime Window.
|
|
EXPECTED RESULT:
Editor Window(whole window consists of all opened document windows) is maximized and HelloWorld source editor tab is selected and activated. Contextual menu contains Restore Window item instead of Maximize Window. Main menu Window contains Restore Window item instead of Maximize Window. |
| 38 | Check contextual menu on Document Window header | 1.
Check contextual menu on Document Window headers.
|
|
EXPECTED RESULT:
Document Window contextual menu is defined in UI specification http://ui.netbeans.org/docs/ui/ws/ws_spec.html Figures 8 and 9. |
| 39 | Check properties dialog of folder | 1.
Push from contextual menu of node Properties.
|
|
EXPECTED RESULT:
Properties are opened as a new dialog. |