| # | Test case [automated] | Description |
| 1 | Show help | 1.
Run ide with param --help
|
|
EXPECTED RESULT:
There will be shown help on console with General options. Core Options. OpenFile options |
| 2 | Run another instance of IDE | 1.
Run netbeans. 2.
Run the second instance of netbeans for the same userdir. (without any parametr)
|
|
EXPECTED RESULT:
The second instance of netbeans is not runned. |
| 3 | Run another instance with other userdir | 1.
Run netbeans. 2.
Run the second instance of netbeans for the other userdir. (e.g. netbeans --userdir /tmp/someuserdir)
|
|
EXPECTED RESULT:
The both instances of IDE are runned. |
| 4 | Open file | 1.
Run netbeans with param --open 'filename'. Where the 'filename' is some name of java file which will be opened.
|
|
EXPECTED RESULT:
The ide was started and the file was opened in editror |
| 5 | Open file in running netbeans | 1.
Run netbeans. 2.
Execute another instance of netbeans with --open 'filename'. Where the 'filename' is a name of java file which will be opened.
|
|
EXPECTED RESULT:
The file 'filename' is opened in editor of the first instance. The second instance of netbeans is not runned. |
| 6 | Try open unexisting file | 1.
Run netbeans with param --open 'filename'. Where the 'filename' doesn't exist on filesystem.
|
|
EXPECTED RESULT:
After start ide will be shown warning dialog that file 'filename' doesn't exists. |
| 7 | Open file and go to the line | 1.
Start the ide. 2.
Run the second instance of netbeans for the same userdir with param -open 'filename':'line-number'. The file filename must exists and the number of its lines must be great or equal to the 'line-number'. The 'line-number' is integer value of a line number in opened file.
|
|
EXPECTED RESULT:
The file will be opened in the editor od first instance of netbeans. The line of cursor of opened file will be set to the 'line-number' value. |
| 8 | Open file and go to unexisting line | 1.
Start the ide. 2.
Run the second instance of netbeans for the same userdir with param -open 'filename':'line-number'. The file filename must exists and the number of its lines must be less or equal to the 'line-number'. The 'line-number' is integer value of a unexistent line number in opened file.
|
|
EXPECTED RESULT:
The file will be opened in the editor od first instance of netbeans. No exception occured. |
| 9 | Start IDE from other computer in the same userdir | 1.
Run ide on the first computer. 2.
The userdir of runned on first computer will be shared with the second computer through network. Run ide on the second computer with shared userdir.
|
|
EXPECTED RESULT:
On the second computer will be shown confirmation dialog. The dialog contains message about existence of lock in user dir. Click to the Ok button starts ide on second computer. Click to the cancel button doesn't start the ide. |
| 10 | Attributes of lock file | 1.
Run netbeans ide 2.
Login to the system as other user.See to file attributes of lock file from nb userdir runned in first step.
|
|
EXPECTED RESULT:
The file cannot be read by another user. The attributes are 500 on linux/solaris. |
| 11 | Quick start of two IDEs | 1.
Start two ide for the same dir in the same time.
|
|
EXPECTED RESULT:
Only one ide is started and no exception is thrown. |