| # |
Test case |
Description |
| 1 |
Update action |
- Switch to
"Files" view.
- Invoke CVS | Update popup menu action.
|
|
| RESULT: |
Verify that in "Output" tab there
is message " IDE: [date time] Updating Sources 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 green. |
|
| 3 |
File differences |
- Select this file.
- Invoke CVS | 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. |
|
| 4 |
Files differences |
- Create new package
"xx.yy" in
this project.
- Create new
"java class"
"NewClass" in package "xx.yy".
- Invoke CVS | Show Project Changes from
main menu.
- Files should be listed in
"Versioning"
tab - "Main.java" and "NewClass".
- Select the root of the project and invoke CVS
| Diff Project popup menu action.
|
|
| RESULT: |
Special window is displayed. "Main.java,
NewClass.java" 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 "Versioning"
tab - same result as for context command. |
|
| 5 |
Commit file |
- Switch to
"Versioning" tab -
synchronized view.
- Push
"Commit" icon.
-
"Commit dialog" shows up. It
should contain two files: "Main.java" and "NewClass.java".
Enter some commit message and push "Commit" button.
|
|
| RESULT: |
Verify that green badges disappeared. Files
should disappear from "Versioning" 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 CVS |
Export "..." 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. |
|
| 7 |
Applying patch |
- Switch to
"Files" view and select
project root.
- Invoke CVS | Revert Modifactions from
main menu or popup menu.
- 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 CVS | 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 CVS | 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 "Versioning" tab. |
|
| 9 |
Resolve conflict |
- Invoke CVS | 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 (green 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
"Versioning" tab.
- Select
"NewClass.java" in "Versioning"
tab and invoke Revert Delete
- 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 "Versioning"
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 "Versioning"
tab. |
|
| 11 |
Project Deletion |
- Create new project.
- Add this project into the source control.
Invoke CVS | 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 Versioning
view. These files should be in Locally Deleted status.
Select all files in Locally Deleted state and invoke Revert
Delete popup action from Versioning view. After
successful action it should be allowed to open this project again. |
|
| 12 |
Exclude file from commit |
- Create
"JFrame" in "xx.yy"
package.
- Invoke CVS | Commit... on this JFrame
in
"Projects" view.
- Switch to
"Versioning" 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 "Versioning" tab and
performing Include in Commit must return file to "committing"
status. |
|
| 13 |
Ignore file |
- Create new
"Java class"
("NewClass2") into "xx.yy" package.
- Select this java file and invoke CVS |
Ignore .
|
|
| RESULT: |
".cvsignore" should be displayed
in "Versioning" tab. "NewClass2.java"
should change its color to gray, path to ".cvsignore"
file should be indicated by badges. |
|
| 14 |
Working with ignored file |
- Switch to
"Versioning" tab,
select ".cvsignore" file and invoke Commit popup
menu action on it.
-
"Commit" dialog containing only ".cvsignore"
file shows up.
- Enter some commit message and push
"Commit"
button.
-
".cvsignore" file should
disappear from "Versioning" tab, so badges indicating
path for ".cvsignore" should disappear.
- Open
"NewClass2.java" into the
editor, modify this file and save the changes.
- Switch to
"Projects" view,
select project root and invoke CVS | Show Project Changes.
|
|
| RESULT: |
Verify that there no badges indicating path to "NewClass2.java"
file. Color of file name should be gray. This should NOT be listed in "Versioning"
tab. |
|
| 15 |
Unignore file |
- Select
"NewClass2.java" in "Projects"
view and invoke CVS | Unignore popup menu action. Verify that
this action is also accessible from main menu.
-
"Versioning" tab should contain ".cvsingnore
(Locally Deleted)" and "NewClass2.java (Locally New)"
files. Path to this should be indicated with green badges.
- Select project root and invoke CVS |
Commit All Files action from main menu.
-
"Commit" dialog shows up, enter
some commit message and push "Commit" button.
|
|
| RESULT: |
Both files should disappear from "Versioning"
tab. Font color of "NewClass2.java" file is black now. |
|
| 16 |
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 green, verify the path indicating green badges.
- Select
"NewClass2.java" and
invoke CVS | Revert Modifications
- Confirm your decision by clicking Yes in
follow-up question dialog.
|
|
| RESULT: |
All changes should be reverted. Indicating
badges should disappear. NewClass2.java file should not
be listed in "Versioning" tab. |
|
| 17 |
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. |
|
| 18 |
Status and Labels |
- Select View | Show CVS Status Labels
value from main menu.
- Modified files should have
"[Modified]"
status information in explorers.
- Files in conflict should have
"[Conflict]"
status information in explorers.
- Files in branch should have also information
with branch name in explorer. ([Modified; NewBranch])
|
|
| RESULT: |
Verify this functionality in Projects,
Files and Favorites view.
There are no status information for "uptodated" files and no labels for
files in "Trunk". |
|
| 19 |
Actions in Projects view |
- Add new package
"aa" and new "Interface.java"
- Add new package
"aa.bb" and new "NewClass.java"
- Invoke CVS | Commit on
"aa"
package.
- Commit dialog shows up. There should be only
"Interface.java"
listed in commit dialog. Push "Commit" button.
- Make sure that only
"aa" and
file in was added. Have a look in tab for cvsroot in "Output"
window.
|
|
| RESULT: |
CVS actions invoked on packages "Projects"
view shouldn't be performed recursively. Make sure that Update,
Diff, Tag, Branch, 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. |
|