| # | Test case | Description |
| 1 | Update action |
- Switch to
"Files" view.
- Invoke Subversion | Update popup menu action on project root.
|
|
| RESULT: |
Verify that in "Output" tab there is message " ==IDE== date time Updating "Project" finished.".
|
|
| 2 | File modifying |
- Select e.g.
"Main.java" file, modify it.
- Insert brand-new line somewhere into the file.
- Delete some other line but not directly next to the new line.
-
Modify another line but not directly next to the lines mentioned above and Save the file.
|
|
| RESULT: |
The file "Main.java" must change its foreground color to blue.
|
|
| 3 | File differences |
- Select this file.
- Invoke Subversion | Diff "Main.java" action from main menu.
|
|
| RESULT: |
All three differences must be highlighted in a special window with both versions of the file. New line is green, removed line is red and modified one is blue. At the bottom of this component there is part for viewing properties differences.
|
|
| 4 | Files/Folders differences |
- Create new package
"xx.yy" in this project.
-
Create new
"java class" "NewClass" in package "xx.yy".
- Invoke Subversion | Show "Project" Changes from main menu.
-
Files should be listed in
"Subversion" tab - "Main.java" and "NewClass". Also the new packages "xx.yy"should be displayed as [New].
-
Select the root of the project and invoke Subversion | Diff popup menu action.
|
|
| RESULT: |
Special window is displayed. "Main.java, NewClass.java, xx, yy" should be contained in combobox field. Verify functionality of "UP" and "DOWN" arrows. (Arrow navigates among all differences on processed files). Verify functionality of "Diff" icon in "Subversion" tab - same result as for context command. "Diff all" component provides icons for "Refresh Status", "Update all" and "Commit all" action.
|
|
| 5 | Commit files/folders |
- Switch to
"Subversion" tab.
- Push
"Commit all" icon.
-
"Commit dialog" shows up. It should contain two files: "Main.java", "NewClass.java", and two folders "xx" and "yy". Enter some commit message and push "Commit" button.
|
|
| RESULT: |
Verify that blue badges disappeared. Files and folders/packages should disappear from "Subversion" tab immediately too.
|
|
| 6 | Creation of patch |
- Modify
"Main.java" file and save it.
- Modify
"NewClass.java" file and save it.
-
Select project root and invoke Subversion | Export "Project" Diff Patch... from main menu. Select desired output file for patch and confirm the dialog.
|
|
| RESULT: |
Patch should be created in your chosen file. If this action is invoked on context that has no modified files, information dialog should be displayed only.
|
|
| WILL BE IMPLEMENTED LATER |
|
| 7 | Applying patch |
- Switch to
"Files" view and select project root.
-
Invoke Subversion | Revert Modifications from main menu or popup menu. (Select
"Revert Local Changes" option and push Revert button.)
- Make sure that all modified files are "uptodated" now.
-
Select project root and invoke Tools | Apply Diff Patch... popup menu action.
-
Answer
"Yes" in question dialog to confirm watching differences.
|
|
| RESULT: |
Verify that new tabs were opened into the editor for all patched files. Verify results generated by "Command-line Diff" and "Built-in Diff" engines. Verify results displayed by "Graphical Diff Viewer" and "Textual Diff Viewer" visualizers.
|
|
|
|
| 8 | Create conflict |
- Modify
"Main.java" file and save it.
-
Invoke Subversion | Check out... from main menu and setup the same parameters as for previous Suites but with different
"Workfile location".
-
Open the same project, modify
"Main.java" class at the same line as in previous test suite, and commit it.
-
Return to previous project, select the project root and invoke Subversion | Update with Dependencies popup menu action.
|
|
| RESULT: |
"Conflicts warning" dialog should be displayed. Path to "Main.java" file should be indicated with red badges. This file should change its color to red too. Verify functionality of All, Local and Remote buttons in "Subversion" tab.
|
|
| 9 | Resolve conflict |
-
Invoke Subversion | Resolve conflicts popup menu action on
"Main.java" node.
-
Merging tool must get opened in editor area highlighting the line with conflict. Left pane should read
"Working File", right pane "Remote File" and bottom should read "Merge Result".
-
Select left modification (the working one) and push
"Accept" button above its pane.
-
Make sure that colors changed to blue or green and
"Unresolved" in top of the component says "0 conflicts". Push "OK" button and confirm your decision.
|
|
| RESULT: |
The data node should change back to "Main.java" and should have appropriate badge (blue badges for path). In addition, the merge tool must be closed.
|
|
| 10 | Delete file |
-
Switch to
"Projects" view and expand "xx.yy" package node.
-
Invoke Delete popup menu action on
"NewClass.java" file node.
- Confirm your decision by clicking Yes in follow-up question dialog.
-
File should disappear from all explorer views. It should appear in
"Subversion" tab with "Locally Deleted" status.
-
Select
"NewClass.java" in "Subversion" tab and invoke Revert Delete action
- Confirm your decision by clicking Yes in follow-up question dialog.
- File should appear in all of explorer views.
-
Invoke Delete popup menu action on
"NewClass.java" file node again.
- Confirm your decision by clicking Yes in follow-up question dialog.
-
Select
"NewClass.java" in "Subversion" tab and invoke Commit...
-
"Commit" dialog shows up. Fill commit message and push "Commit".
|
|
| RESULT: |
File "NewClass.java" should disappear from all explorer views, and from "Subversion" tab.
|
|
| 11 | Delete Folder(s) |
- Select package node that contains files.
- Invoke Delete popup menu action on package node.
- Confirm your decision by clicking Yes in follow-up question dialog.
-
Select all deleted nodes in
"Subversion" tab and invoke Revert Delete
- Confirm your decision by clicking Yes in follow-up question dialog.
- Package and its files should appear in all of explorer views.
- Repeat 2nd step.
- Confirm your decision by clicking Yes in follow-up question dialog.
- From
"Subversion" push Commit button.
|
|
| RESULT: | Package with its content should disappear from all views. |
|
|
|
| 12 | Project Deletion |
- Create new project.
-
Add this project into the source control. Invoke Subversion | Show All Changes from main menu.
-
Switch to
"Projects" view, select project node and invoke Delete Project popup menu action. (Confirm dialog and delete also sources)
|
|
| RESULT: |
All files should appear in "Subversion" view. These files should be in "Locally Deleted" status. Select all files in "Locally Deleted" state and invoke Revert Delete popup action from "Subversion" view. After successful action it should be allowed to open this project again.
|
|
|
|
| 13 | Exclude file from commit |
-
Create
"JFrame" in "xx.yy" package.
-
Invoke Subversion | Commit... on this JFrame in
"Projects" view.
-
Switch to
"Subversion" tab, there should be listed "NewJFrame.java" and "NewJFrame.form" files. Select both the files and invoke Commit....
-
"Commit" dialog should be displayed with these JFrame files. Change the "Commit Action" to "Exclude from Commit" for both files. Push "Commit" button.
|
|
| RESULT: |
Both files have to be excluded from commit with no change of their statuses. Include in Commit action should be accessible in popup menu actions in "Subversion" tab and performing Include in Commit must return file to "committing" status.
|
|
| 14 | Ignore file |
-
Create new
"Java class" ("NewClass2") into "xx.yy" package.
- Select this java file and invoke Subversion | Ignore .
|
|
| RESULT: |
"NewClass2.java" should change its color to gray with [Ignored] annotations in all explorer views and it should disappear from "Subversion" tab.
|
|
| 15 | Ignore folders |
-
Create new
"New Package" ("tt2") into "javaapplication" package.
- Select this "tt2" package and invoke Subversion | Ignore .
|
|
| RESULT: |
"tt2" should disappear from "Subversion" view. Externally verify that ".svn" administrative directory of parent folder of "tt2" package contains file "dir-props" listing "tt2" package.
|
|
| 16 | Unignore file |
-
Select
"NewClass2.java" in "Projects" view and invoke Subversion | Unignore popup menu action.
-
"Subversion" tab should contain "NewClass2.java (Locally New)" files. Path to this should be indicated with blue badges.
-
Select project root and invoke Subversion | Commit All Files action from main menu.
-
"Commit" dialog shows up, enter some commit message and push "Commit" button.
|
|
| RESULT: |
File should disappear from "Subversion" tab. Font color of "NewClass2.java" file is black now. Externally verify that ".svn" administrative directory of parent folder of "NewClass2.java" package doesn't contain this file listed in "dir-props".
|
|
| 17 | Reverting modifications |
- Open
"NewClass2.java" to editor.
- Insert brand-new line somewhere into the file.
- Delete some other line but not directly next to the new line.
-
Modify another line but not directly next to the lines mentioned above and Save the file. File name color should change to blue, verify the path indicating blue badges.
-
Select
"NewClass2.java" and invoke Subversion | Revert Modifications
-
"Revert Modifications" dialog should show up. There are three choices: "Revert Local Changes", "Revert Modifications from Single Commit" and "Revert Modifications from Previous Commits". "Revision" should be enabled for second choice. "Starting Revision" and "Ending Revision" revision should be enabled for third choice only. This dialog provide also the functionality of rollbacking changes. For each of these fields "Search..." button should be available.
|
|
| RESULT: |
All changes should be reverted. Indicating badges should disappear. "NewClass2.java" file should not be listed in "Subversion" tab.
|
|
| 18 | Global actions |
- Invoke Show All Changes action from main menu.
- Invoke Diff All Files action from main menu.
- Invoke Update All Files action from main menu.
- Invoke Commit All Files action from main menu.
|
|
| RESULT: | Verify functionality of all above mentioned commands. |
|
| 19 | Actions in Projects view |
-
Add new package
"aa" and new "Interface.java"
-
Add new package
"aa.bb" and new "NewClass.java"
- Invoke Subversion | Commit... on
"aa" package.
-
Commit dialog shows up. There should be
"Interface.java" and "aa" listed in commit dialog. Push "Commit" button.
-
Make sure that only
"aa" and its file were added. Have a look in tab for SVN URL in "Output" window.
|
|
| RESULT: |
Subversion actions invoked on packages "Projects" view shouldn't be performed recursively. Make sure that Update, Diff, Switch to Branch, Merge Changes From Branch, Export Diff Patch and Revert Modifications work correctly. In case of branching actions verify whether new files and folders are added/removed properly.
|
|
| 20 | Refactoring |
-
Select
"Main.java" node and invoke Refactor | Rename... popup menu action on it.
-
Enter new name for it and push
"Next" button. Special window shows up, push Do Refactoring.
-
File with new name should be listed in
"Subversion" view as "[Locally Renamed]" and old one "[Locally Deleted]".
- Commit both files and verify whether new file inherited history by refactoring.
-
Switch to
"Files" view, select package "xx" and invoke Refactor | Rename... popup menu action on it.
-
Enter new name
"yy" for it and push "Next" button. Special window shows up, push "Do Refactoring".
-
Make sure that all refactored nodes with new name are marked as
"[Locally Copied]" (for directories only "[New]" is shown) in the "Subversion" tab. "yy" is "[New]", "NewClass" and "Main" from "yy" are "[Locally Copied]]". "NewClass" and "Main" from "xx" are "[Locally Deleted]]".
|
|
| RESULT: |
Push Commit make sure that file nodes disappear. And all files/directories were committed as well.
|
|