| # | Test case | Description |
| 1 | Command editor |
1. Invoke Tools | Options from main menu. 2. Select "Source Creation and Management | Versioned Control Settings | Version Control Settings | CVS". In "Property" tab click "..." button next to "Global Commands". 3. "CVS - Global Commands" editor shows up.
|
|
RESULT:
"CVS - Global Commands" editor must show up. Left pane must contain command tree and right pane is a property sheet. |
| 2 | Popup separator |
1. Right click root node and choose Add | Separator.
|
|
RESULT:
"(separator)" node must appear as the last leaf of popup tree. |
| 3 | Popup submenu |
1. Right click root node and choose Add | Folder. 2. Type "My Submenu" as "Folder Label" and push "OK" button.
|
|
RESULT:
"My Submenu" folder node must appear as the last leaf of popup tree. |
| 4 | Popup action |
1. Right click "My Submenu" node and choose Add | Command. 2. Type "Test" as "Command Label" and push "OK" button. 3. Expand "My Submenu" node.
|
|
RESULT:
There must be "Test" node under "My Submenu" node. |
| 5 | Customize menu |
1. Right click "(separator)" node and choose Move Down. 2. Verify that order of separator and "My Submenu" has changed and Move Down action is not enabled anymore. 3. Cut "(separator)" node and Paste it on "My Submenu" node. 4. Right click "VERIFY_ACTION" node and choose Delete action.
|
|
RESULT:
Separator had to be temporarily below new submenu before its move under "My Submenu". There must be no "VERIFY_ACTION" node anymore. |
| 6 | Setup command |
1. Select "My Submenu | Test" node in the tree. 2. Set "Exec" property to cmd /x /c "echo Ahoj ${NAME}! && notepad ${MYFILE}" for Windows NT/2000 or sh -c "echo Ahoj ${NAME}!; xedit ${MYFILE}" for all the other operating systems. 3. Turn on "Display Output" property and push "OK" button.
|
|
RESULT:
"My Submenu | Test" command must have both properties set as needed. |
| 7 | Invoke command |
1. Invoke "Versioning | Versioning Manager" and select some versioned directory with "CVS" profile. Select "Profile" tab. 2. Switch to "Profile" tab of the customizer. 3. Use "Browse..." button to choose some text file like C:\autoexec.bat or similar on Unix systems. 4. Push "Close" button on the customizer. 5. Right click the filesystem and choose My Submenu | Test action. 6. Make sure that status bar displays "Command Test is running ..." and "VCS Output - Test" window contains "Stop" button. 7. Make sure that Notepad or Xedit was opened with the selected file and there is "Ahoj Jirka!" message in the "Standard Output" tab of mentioned window. 8. Close the external editor and verify that status bar contains "Command Test finished." message.
|
|
RESULT:
Button in output window must disappear and the status must be "Command finished". |
| 8 | Confirmation messages |
1. Invoke "CVS - Global Command" editor and use test case "5.6 Setup command" for next three steps. 2. Setup "Confirmation Message Before Execution" property to "Really ?" text. 3. Setup "Notification Message After Fail" property to "Bad luck ! :-(" text. 4. Close the editor using "OK" button and "Close" the customizer too. 5. Invoke My Submenu | Test command on the root. 6. Answer "Yes" to "Really ?" question dialog. 7. Push "Stop" button on the output window.
|
|
RESULT:
Information window saying "Bad luck ! :-(" must appear. Close it. |
| 9 | Visibility restrictions |
1. Turn off "Visible on Folders" property of the same command. 2. Right click "PVCS D:\Tests\Empty\Work1 | test [Local]" node.
|
|
|
RESULT:
There must be no Test item in My Submenu menu. |
| 10 | Enable restrictions |
1. Setup "Disabled on Statuses" expert property to "Local" value. 2. Right click the root node of your versioned directory. 3. Verify that My Submenu | Test action is visible and enabled. 4. Right click "PVCS D:\Tests\Empty\Work1 | A_File [Local]" node.
|
|
RESULT:
My Submenu | Test command must be visible but disabled. |
| 11 | Input descriptor |
1. Setup "Input Descriptor" property to LABEL("Hello!") PROMPT_FOR(NAME, "What's your name?") value. 2. Invoke My Submenu | Test action on the root node of your versioned directory. 3. "Hello! -" dialog must show up with "What's your name?" textfield. 4. Type there "Maruska" and push "OK" button.
|
|
RESULT:
There must be these two lines in "Standard Output" tab: "Hello Maruska!" and "Cau Martine!". |
| 12 | Multifile recognition |
1. Setup "Disabled on Statuses" property to default value. 2. Turn on "Run on Multiple Files" property. 3. Turn on "Process All Files" expert property. 4. Invoke Compile on "A_File [Local]" node. 5. Invoke My Submenu | Test command on multiselection of "A_File [Local]" and "C_File [Local]" nodes. 6. Check "Prompt for Input on Each Successive File" checkbox and push "OK" button three times.
|
|
RESULT:
There must be three "Test" tabs with "Ahoj !" and "Cau Martine!" lines in "Standard Output" tabs of the output window. |
| 13 | Failure notification |
1. Turn on "Do Not Warn of Failure" expert property. 2. Setup "Exec" property to cmd /x /c "ICQ #103430977" on Windows NT/2000 or sh -c "icq #103430977" on other systems. 3. Turn off "Display Output" property. 4. Invoke My Submenu | Test command on "C_File [Local]" node. 5. Push "OK" button once "Hello! -" dialog appears.
|
|
RESULT:
Status bar says: "Command Test finished.", no notification message appears, nothing gets printed into standard output window of IDE. |
| 14 | Status refreshing |
1. Setup "Exec" property to cmd /x /c "echo ${FILE}, Aktualni" on Windows NT/2000 or sh -c "echo ${FILE}, Aktualni" on other systems. 2. Setup "Data Regex" expert property to ^(.*), (.*) value. 3. Setup "File Index" refresh property to 0. 4. Setup "Status Index" refresh property to 1. 5. Invoke My Submenu | Test command on "C_File [Local]" node and push "OK" button in "Hello! -" dialog.
|
|
RESULT:
Status of C_File must change to "C_File [Aktualni]". |
| 15 | Settings history |
1. Invoke My Submenu | Test command on "C_File [Aktualni]" node. 2. Type Jirka into the textfield, push "Set As Default" and then "OK" button. 3. Invoke that action again. Make sure that "Next" button is disabled and the textfield contains Jirka. 4. Type Maruska into the textfield and push "Get Default Values" button. Jirka must replace it. 5. Type Maruska into the textfield and push "Previous" button.
|
|
RESULT:
Maruska must be replaced by Jirka again and "Next" button must get enabled. Push "Cancel" button. |