FeaturesPluginsDocs & SupportCommunityPartners

Command Line Interface and Locking User Directory Test Specification for NetBeans 5.0

Author: Petr Zajac, updated by Tomas Musil
Last update: 12.09.2005
Introduction: This test specs tests the Command Line Interface and Locking User Directory (CLI) feature. Most importatnt IDE switches tested here you can find when running netbeans with --help parametr.For details about this feature see to CLI proposal at http://openide.netbeans.org/proposals/arch/cli.html

Table of Contents

Test suite: Command Line Interface and Locking User Directory

Purpose:
Setup: There is no specials steps to configure the NetBeans ide for testing of CLI.

#Test case [automated]Description
1Show help1. Run ide with param --help
EXPECTED RESULT: There will be shown help on console with General options. Core Options. OpenFile options
2Run another instance of IDE1. 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.
3Run another instance with other userdir1. 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.
4Open file1. 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
5Open file in running netbeans1. 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.
6Try open unexisting file1. 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.
7Open file and go to the line1. 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.
8Open file and go to unexisting line1. 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.
9Start IDE from other computer in the same userdir1. 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.
10Attributes of lock file1. 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.
11Quick start of two IDEs1. Start two ide for the same dir in the same time.
EXPECTED RESULT: Only one ide is started and no exception is thrown.



Generated: Mon Sep 12 17:05:49 CEST 2005
Companion
Projects:
MySQL Database Server   Open JDK: an Open SourceJDK   GlassFish Community: an Open Source Application Server    Mobile & Embedded Community    Open Solaris   java.net - The Source for Java Technology Collaboration   Virtual Box - full virtualizer  Open ESB - The Open Enterprise Service Bus Powered by