Test Area 1: Add To/Open From Source Control
This source-control plug-in test area covers placing solutions or projects under source control and retrieving them from source control.
Command Menu Access
The following Visual Studio integrated development environment menu paths are used in the test cases:
For Visual SourceSafe, open from source control: File, Open, Project/Solution; look in the Visual SourceSafe location.
For other source control plug-ins, open from source control: File, Source Control, Open from Source Control.
Add to source control: File, Source Control, Add Solution to Source Control File, Source Control, Add Selected Projects to Source Control.
Shortcut Menu (Project/Solution), Add Solution to Source Control.
Add from source control: File, Source Control, Add Project from Source Control.
For Visual SourceSafe, add from source control is also available from File, Add, Existing Project; look in the Visual SourceSafe location.
Note
A path of a local file or a local IIS (web server) can be used in this test.
Expected Behavior
For each supported project type, a user should be able to "Add to" and "Open from" Source Control.
When a project is added to Source Control, a corresponding <ProjectName>.vspscc file (Project hint file) is created. It contains exclusion file list and connection information. Do not delete this file because it contains information specific to the project.
When a solution is added to source control, a corresponding <SolutionName>.vssscc (triple S) file is created. The text file contains connection information and an exclusion file list, similar to the project hint file. This file is temporary and exists only in the source control database.
When a solution is opened from source control, a <SolutionName>.vsscc (double S) file that exists only in the source control database, is created locally in a temporary file. This file contains the path from the solution connection folder to the solution file. This file is temporary and the local copy is deleted when the "Open from Source Control" operation has completed.
After a project is added to the source control, you can perform any source control actions on it (Check out, Get, and so on).
Test Cases
The following are specific test cases for the Add To/Open From Source Control test area.
Case 1a: Add Solution to Source Control
This test case focuses on adding solutions to source control.
Action |
Test Steps |
Expected Results to Verify |
---|---|---|
Add solution containing a client project to source control |
|
Solution/Project was added to source control. |
Add solution containing a File System or local IIS Web project to source control |
|
Solution/Project was added to source control. |
Add solution containing a Remote Site Web project to source control |
|
Solution was added to source control. Remote Site project is NOT under source control. (Remote Site projects must be controlled from their own IIS server.) |
Add a single project solution to source control using Add Selected Projects to Source Control. |
|
Result from Step 2: The project and all files within the project have a checked out source control indicator, and a ToolTip displays "Not under source control". Result from Step 5: Project and solution file are in the same folder in source control. |
Cancel adding a solution to source control |
|
Result from Step 2: The Set project location source control dialog box appears only once. Result from Step 3: Project add canceled, project/solution is NOT under source control and all Add to source control menus still available. |
Case 1b. Open Solution from Source Control
This test case focuses on opening solutions from source control.
Action |
Test Steps |
Expected Results to Verify |
---|---|---|
Open a solution containing a client project from source control |
|
Solution/Project opened from source control. |
Open a solution containing a local or IIS Web project from source control |
|
Solution/Project opened from source control. |
Open a solution containing a Remote Site Web project from source control |
|
Result from Step 2: Remote Site Web is NOT under source control. Result from Step 4: Solution opened from source control. Remote Site project is loaded, but it is NOT under source control. |
Case 1c: Add Solution from Source Control
This test case focuses on adding solutions from source control.
Action |
Test Steps |
Expected Results to Verify |
---|---|---|
Add to Empty solution — a single project solution |
|
The added project appears in Solution Explorer and is checked in. |
Add to solution with single project — single project |
|
The added project appears in Solution Explorer and is checked in. |
Add to solution — solution added to source control by selection |
|
Result from Step 2: Project is not under source control. Result from Step 5: If the first solution had solution items, they cannot be added from source control, so they do not appear. Project from first solution appears as unavailable. |