This topic explains how to connect SOAtest to your source control repository.
Sections include:
Any source control system that plugs into your Parasoft SOAtest environment can be used to manage your source and test files.
If your team is using a one of the specified supported source control system (see list below) and performs the necessary configurations (as described later in this topic), Parasoft can:
SOAtest includes out-of-the-box support for the following source control systems:
Vendor | Tested version |
---|---|
Git | 1.7, 1.8, 1.9, 2.x |
Microsoft Team Foundation Server | 2012, 2015, 2017, 2018, 2019 |
Perforce | 2006.2, 2015 |
Subversion (SVN) | 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9, 1.10, 1.11, 1.12, 1.13 |
You can use the source control API to integrate with other source control systems. Refer to Adding a Custom Source Control Integration.
Each Subclipse plugin version is compatible with specific Subversion versions. Ensure that your Subclipse plugin is compatible with a version of Subversion that Parasoft supports.
For example, you do not install Subversion 1.3 and Subclipse plugin 1.2, Subclipse 1.2 uses Subversion 1.4. Subclipse 1.4.x requires Subversion 1.5.0 version of JavaHL/SVNKit. Subclipse 1.4.5 already has subversion client adapter 1.5.2.
Subversion clients earlier than 1.4 do not support working copies produced by Subversion 1.4. If you are using Subclipse plugin 1.2 (which includes Subversion 1.4), you might receive the following error message:
svn: This client is too old to work with working copy '.'; please get a newer Subversion client
This means that Parasoft is using a command-line client that is version 1.3 or older. The solution is to update your command-line SVN client to version 1.4. The client version can be verified by executing the following command:
svn --version
Some source controls (including ClearCase, Perforce, Synergy, and Visual SourceSafe) require users to mark (lock) sources before editing them. If you are using one of these source control systems and you prompt SOAtest to perform an operation that involves editing a "read-only" file in source control, it will first open a dialog asking you whether you want to make the file writable and lock it. Click OK, then provide your source control username and password in the next dialog that opens; this allows it to access the source control system and set the lock. |
To enable support for any of the supported source control systems:
Make sure that the command line client for the given source control is on the system%PATH%/$PATH and is available when SOAtest is launched.
For example, if you have Subversion, it is not sufficient (or even required) to install the Subclipse plugin to Eclipse (SVN Eclipse plugin). Instead, you should have the plain command line svn.exe Subversion client.
To test the integration:
You can enable debug logging by specifying the JAR shipped with SOAtest to troubleshoot problems with source control integration:
-consolelog J-Dparasoft.logging.config.jar.file=/com/parasoft/xtest/logging/log4j/config/eclipse.on.xml |
A detailed log will print to the console. Include the following flag to include messages from the SCM system:
-Dscontrol.log=true |
The output that results from using the -Dscontrol.log
flag may contain fragments of user source code.
As an alternative to the JAR shipped with SOAtest, you can specify a log4j file on disk using the parasoft.logging.config.file
system property:
-consolelog J-Dparasoft.logging.config.file=<PATH_TO_LOG4J_FILE> |
The Git repository you connect to must allow anonymous pulls.
git clone <repository>
git push
URL must also be configured to automatically push test cases checked in with Git.git config remote.origin.pushurl git@<your repository URL>
it config
on the newly created repository user.name
. git config user.name "<your username>"
When you are enabling source control support, specify the following repository properties in the Create Source Control Description dialog:
A Git repository is considered shallow if the file |
When you are enabling source control support, specify the following repository properties in the Create Source Control Description dialog:
By default, username is used to determine file/method authorship. However, some teams access Perforce with a shared user name and a unique workspace for each developer. If you want to use workspace name (or user name and workspace name) to determine authorship, open the Authorship tab and modify the setting as needed. |
Parasoft’s Subversion support is based on the command line client 'svn'. See About Source Control Support for a list of supported SVN versions.
The client certificate must be stored in the Subversion configuration area. The Subversion client has a built-in system for caching authentication credentials on disk. By default, whenever the command-line client successfully authenticates itself to a server, it saves the credentials in the user's private runtime configuration area—in ~/.subversion/auth/ on Unix-like systems or %APPDATA%/Subversion/auth/ on Windows.
When you are enabling source control support, specify the following repository properties in the Create Source Control Description dialog:
See About Source Control Support for a list of supported versions.
SOAtest for Eclipse doesn't require any additional software to be installed for TFS integration (the required libraries are included).
When you are enabling source control support, specify the following repository properties in the Create Source Control Description dialog:
By default, SOAtest uses the cached credentials for accessing TFS (this could be your user login or some previously logged in information). You can provide custom credentials if you want to use them instead of the cached ones.
Source control definitions can be specified in localsettings (e.g. for sharing team-wide settings via DTP, Concerto, or by specifying options at the command line). See Configuring Localsettings for details.