Test Area 7: Share
This test area covers sharing items between locations via the Share command.
A hhare operation is the apparent duplication of files and folder items between two or more locations within a source control file hierarchy. Duplication does not really occur on the server, but the user does see the same file in two or more specified locations. Whenever changes are made to any of the shared items, those changes appear in all other shared locations.
Sharing into folders works if you select a folder with at least one file under source control in it. The share command is disabled under the following conditions:
If the selected folder is an empty folder.
If there is a real folder, but it contains no source control files.
If there is a virtual folder, whether files under source control are in it or not.
If there is a Remote Site Web project.
Command Menu Access
The following Visual Studio integrated development environment menu paths are used in the test cases.
Share: File->Source Control->Share.
Expected Behavior
Shared file appears in shared location.
Viewing the source control version store history shows that file(s) are shared.
Editing a shared file edits both locations of the file.
Test Cases
The following are specific test cases for the Share test area.
Action |
Test Steps |
Expected Results to Verify |
---|---|---|
Share a file from one loaded project under source control to another loaded project |
|
Common Expected Behavior. |
Share a file from one project to another |
|
Common Expected Behavior. |
Share a file not part of project from source control into the currently loaded project |
|
The source control store has performed a Get, so the file is now at the local location of the project. |
Share files within the same project to a different folder |
|
Common Expected Behavior. Folder must be checked in with a file in it before it can be used for share. |
Share a folder into the loaded Project — Recursive |
|
Common Expected Behavior. |
Share several files from one project to another |
|
Common Expected Behavior. |