Using TestStand with Subversion

The Agent SVN plug-in allows you to seamlessly integrate TestStand with Subversion.

Features of the plug-in include:

  • Easy to install, easy to configure, easy to use
  • Add solutions, projects and files to Subversion, all from within the IDE
  • Check out, check in, get latest version all without leaving the IDE
  • Revert file changes from within the IDE
  • Provides the option of automatic file locking on check out and unlocking on check in
  • View file differences, file status and file history from within the IDE
  • The power of Subversion with the feel of Visual Source Safe
  • Can use an external difference tool to view file differences
TestStand

Tutorial

Described below are the steps required to get Agent SVN to work with TestStand and Subversion.

As an introductory tutorial, it is recommended you follow the steps as described.


Step 1: Agent SVN Provider Setup

Inside TestStand with a workspace open, right click on the workspace and select the Properties menu to edit the workspace properties.

Change to the Source Code Control panel and select the Agent SVN as the active provider as shown below:

ts-options


Use the Run Agent SVN button to bring up the Agent SVN configuration utility to do the once off configuration of the plug-in.

For this initial testing use the Folder entry field to define the location of a local Subversion repository and select the Local File protocol as shown below:

agent-svn-setup

NOTE: It is highly recommended you start with this minimal configuration since this is by far the simplest Subversion configuration model.

This will give you an opportunity to become familiar with how the plug-in works and at a later point it will be easy to reconfigure Agent SVN to another repository location using a different protocol.


Step 2: Add the Workspace to Source Control

To add the workspace to Subversion use the Add to Source Control menu as shown below:

ts-worksace-add

That will bring up the binding dialog as shown below:

ts-worksace-add

Accepting that binding dialog will then prompt with the following response.

ts-worksace-add

Answer yes to have the project added to the source control.

That same binding dialog will be displayed for all the projects in the workspace.

The final step of the check-in process is the Add to Source Code Control dialog shown below:

ts-worksace-add

Add a check-in comment and complete the check-in by hiting the Ok button.


Step 3: Checking the Subversion Repository

Use the Subversion repoitory browser to check the workspace items have been added to the repository as shown below:

ts-checkin


Step 4: Using the Source Control Inside TestStand

At this stage the workspace has been imported into the repository and the project has been bound to the repository.

With the workspace fully configured, use the check out, check in, revert, compare or any of the other source control commands to manage the files in the workspace.

To access the source control from inside TestStand use the popup menu as shown below:

ts-use

For example, using the check-out option from that menu will display the check-out dialog shown below:

ts-check-out


Latest Version: Agent SVN 2.76
Released: 30th January 2024