This topic explains how to build a custom integration to any source control system you want to integrate with C/C++test. In this section:
C/C++test ships with support for most common version control / source control systems, such as SVN or Git; see Connecting to Source Control for details. In addition, it provides an open Source Control API, which allows other source control tools to integrate with C/C++test.
C/C++test provides Source Control API documentation that includes Javadoc documentation for all classes and interfaces that must be implemented. The Javadoc documentation is available in following locations:
C/C++test installed as a standalone application: <INSTALL_DIR>\ide\eclipse\plugins\com.parasoft.ptest.sourcecontrol.eclipse.core_<version>\openapi\open_api_javadoc.zip
C/C++test installed as Eclipse plugin: <ECLIPSE_DIR>\plugins\com.parasoft.ptest.sourcecontrol.eclipse.core_<version>\openapiopen_api_javadoc.zip
The interface that connects and creates all required implementation is com.parasoft.xtest.sourcecontrol.openapi.IVersionControlFactory.
This factory provides specific implementation for the following interfaces:
The source control API and all related classes are located in the jar file in <INSTALL_DIR>\plugins\com.parasoft.xtest.libs/Parasoft/sourcecontrol.jar.
Before you can compile, you may need to add the following additional jar files to your classpath:
<INSTALL_DIR>\com.parasoft.xtest.libs/Parasoft/util.jar
<INSTALL_DIR>\com.parasoft.xtest.libs/Parasoft/common.jar
<INSTALL_DIR>\com.parasoft.xtest.libs/Parasoft/preference_api.jar
To implement a custom integration:
After implementation is completed:
<INSTALL_DIR>\plugins\com.parasoft.xtest.sourcecontrol.eclipse.core\ext.
C/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\.
After you extract the open_api_demo.zip file, the following directory structure should be created:
open_api_demo/demo.jar
- Contains a compiled version of the demo source control implementation for Eclipse.open_api_demo/demo.dll
- Contains a compiled version of the demo source control implementation for Visual Studio 2005 or later.open_api_demo/src/*
- This is the source code for the Open API demo implementation.open_api_demo/local_repository/*
- This is a sample Eclipse project for demonstration purposes.The demo was compiled using JDK 1.6.0_29.
You can compile and deploy it using the procedures described in the preceding section.
To play with the demo: