Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space CPPTDESKDEV and version 10.4.2

This topic explains how to build a custom integration to any source control system you want to integrate with Parasoft Test C++test (e.g., for code review, scope filters and authorship detection — see About Parasoft Test's see Connecting to Source Control Support for details). 

Parasoft Test C++test provides builtin support for most common version control / source control systems (e.g, SVN, CVS, Subversion, ClearCase etc.) as described in Connecting to Source Control. In addition, it provides an open Source Control API, which allows other source control tools to be integrated with Parasoft TestC++test.

Sections include:

Table of Contents
maxLevel1

...

API Javadoc (Eclipse only)

The Parasoft Test C++test online help system provides a Source Control API topic that includes Javadoc documentation for all classes and interfaces that must be implemented.

...

  1. Create a single jar file containing all of the required classes. There are no specific rules concerning the jar file name or package names etc.
  2. Copy your jar file into your Parasoft Test installation directory and restart your Parasoft Test productC++test. The installation directory is:
    • Eclipse: [INSTALL_DIR]\plugins\com.parasoft.xtest.sourcecontrol.eclipse.core\ext
    • Visual Studio: [INSTALL_DIR]\com.parasoft.xtest.libs.vstudio/ext
  3. Verify the implementation as follows:
    1. Choose Parasoft> Preferences> Source Control.
    2. Ensure that Use Concerto DTP settings is cleared.
    3. Verify that a checkbox with your implementation name appears among the builtin version controls.
    4. Select the checkbox for your implementation, click New, add the required properties, and then click Apply.
    5. Go to the Preferences> Scope and Authorship page and verify that Use source controlcontrol to compute scope is enabled.
    6. Open a file controlled by your version control system, right-click anywhere in the file’s source code, then choose Show author at line. You should see valid version control author information.

Sample Implementation

Parasoft Test C++test provides a sample implementation for the Source Control Open API. A zipped package is located in [INSTALL_DIR]\plugins\com.parasoft.xtest.sourcecontrol.eclipse.core\openapi\demo\.

...

  1. Deploy the demo.jar file.
  2. Unpack the local repository to any location.
  3. Restart your Parasoft Test productC++test.
  4. Import the demo local repository project into your workspace.
  5. Under Parasoft> Preferences> Source Control, enable the demo implementation.





  6. Open a file, right-click anywhere in the file’s source code, then choose Show author at line. You should see valid version control author information.

...