Installing a Custom Test Type > Configuring Support for Versions

Configuring Support for Versions

The versioning configuration file contains the meta-data on the custom test type that enables support for versioning and baselining.

Place the versioning configuration file on the Application Lifecycle Management server at <base repository path>\sa\DomsInfo\MetaData\TEST\.

Elements

TestType
The name of the custom test type
Repository
The container for specification of files and folders to be copied when creating new versions.
Folders
The configuration of the directory tree to copy.
A Folders element must have a Filter attribute. The ID and BlindCopy attributes are optional. If there is more than one Folders element at the same level in the same containing element, the IDattribute is mandatory.
A Folders element can contain Folders elements and Files elements.
Files
The configuration of the files to be copied in the folders defined in the containing Folders element.
A Files element can have a Filter attribute and an ID attribute. If there is more than one Files element at the same level in the same Folders container, the ID attribute is mandatory.
Versioning
The value of the boolean Enabled attribute indicates whether versioning is enabled for the test type. Set Enabled to true if your implementation supports Versioning.
Baselining
The value of the boolean Enabled attribute indicates whether baselining is enabled for the test type. Set Enabled to true if your implementation supports Baselining. The Baselining element can contain a Pinning element.
Pinning
The value of the boolean Enabled attribute indicates whether pinning a run to a test set version is enabled for the test type. If this attribute is set true but the custom test type code does not support pinning, the most recent version of the test is used.

Attributes

BlindCopy
If BlindCopy is true, the complete trees whose roots are the folders specified by the Filter are copied. If there is a Files element contained in the Folders element, it is ignored.
To copy only selected files in a tree, do not use BlindCopy. Use nested Folders elements that contain Files elements with the appropriate Filter attributes.
If BlindCopy is false or not present, only the files specified in the contained Files elements are copied. It there are no contained Fileselements, the folders specified in the Filter attribute are created and remain empty.
Enabled
Set to true if your implementation supports the feature.
To support Pinning, get the Test object from the TSTest in the RemoteAgent.run Method.
To support Versioning, implement ScriptViewer.ShowTestEx, and, if your application implements ResultViewer, implement ResultViewer.ShowResultEx. In addition, if your application changes any other entity that is subject to version control, you must use the REST check-in and check-out resources or the OTA TDAPIOLELib.IVersionControl.CheckOutand CheckIn when changing the entity.
No code changes are required to support Baselining beyond providing this configuration file.
Filter
The Folder or File items to include. Wildcards are permitted.
ID
An identifier for an element is required when more than one element of the same type exists and the elements are direct children of the same parent element. The value of the ID must be unique among children of the same parent.

 

Example

For an example of the configuration file, see Versioning Configuration File

 


© 1993 - 2013 Hewlett-Packard Development Company, L.P.