You are creating a custom test type to integrate a testing tool with ALM. This tool must be deployed on the computers that will run the tests using the testing tool. The deployment method of this testing tool depends on the tool and is not discussed in this guide.
These instructions apply to the test type assemblies and the COM interop that you created when you implemented the test type. See Implement the Remote Agent and Test Type. These assemblies are:
Sample INI File
[File_0000] URLName=%URL%/Extensions/MyTestType/MyTestType.lld Shortname=MyTestType.dll Description=My Test Type [File_0001] URLName=%URL%/Extensions/MyTestType/MyScriptViewer.lld Shortname=MyScriptViewer.ocx Description=My Script Viewer [File_0002] Extract=Y URLName=%URL%/Extensions/my_test_type.manifest.cab Shortname=my_test_type.manifest.cab Description=my test type manifest cab CheckMD5=d4fb7dc6e6678826971e936eb1324f42
INI file Parameters
Parameter | Description |
---|---|
URLName | The location of the source file to be downloaded. Must start with %URL% and continue with the relative location under the main web server virtual directory. For example:URLName=%URL%/Extensions/MyTestType/MyFile.xco |
shortname |
The file name extension is the runtime extension. For example: MyFile.dll (not lld) .The options are:
|
description | Optional. A free text description that is displayed during file download. For example: Description=My Test Type Manager |
Extract | For archives (cab). "Y" - Extract the contents of the archive. Default is "N" |
version | Optional. Relevant only for files that have compiled version information. If there is a COM server on the client machine with the same prog ID and the same version, the file is not downloaded. For example: Version=1.48.9.2089 |
CheckMD5 | Optional. The MD5 checksum. Relevant only if the ProgID and Version items are omitted. If there is a file with the same name and checksum in the destination directory, the file is not downloaded. For example: CheckMD5=45168d267a09274d1d1a8cda605b3159 |
DotNet | Optional. "Y" - the COM dll was developed under .NET and must be registered with regasm. The default is "N" |
Create a CAB file containing the INI file. For example, run:
cabarc -s 6144 n CTT4Net.cab CTT4Net.ini
Digitally sign above CAB file. For example, run:
signtool sign /v /f X:\ALM\Issue\CTT\MyCodeSig.pfx /p 123 X:\ALM\Issue\CTT\Deploy\Extensions\CTT4Net.cab
C:\Windows\Microsoft.NET\Framework\<version>\RegSvcs.exe X:\out\MyRemoteAgent.dll
RegSvcs.exe
utility. See the first step in this procedure.Example Registration XML
testtypes.xml |
Copy Code
|
---|---|
<?xml version="1.0" encoding="UTF-8"?> <TestTypes> <TestType name="CTT4Net"> <CLSID>25C17E63-1021-46b2-BEB1-DCCD5B40A276</CLSID> <ImageProviderCLSID>CTT4Net.ImageProvider,CTT4Net</ImageProviderCLSID> <ScriptViewerCLSID>CTT4Net.ScriptViewerControl,CTT4Net</ScriptViewerCLSID> <ExecutionConfigurationViewerCLSID>CTT4Net.ExecConfigViewerControl,CTT4Net</ExecutionConfigurationViewerCLSID> <ResultViewerCLSID>CTT4Net.ResultScriptViewerControl,CTT4Net</ResultViewerCLSID> <RemoteAgentCLSID>479DFA08-CF6D-4890-AAAF-7CAFC39B6974</RemoteAgentCLSID> </TestType> </TestTypes> |
When you have prepared all the files for deployment, the folder structure is:
..\CustomTestTypes\testtypes.xml
..\Extensions\CTT4Net\CTT4Net.cab
..\Extensions\CTT4Net\CTT4Net.lld
..\Extensions\CTT4Net\Interop.TDAPIOLELib.lld
Copy the Extension and CustomTestTypes folders to the web root folder where your ALM server is installed.
Restart the ALM service.
Register the remote agent on the remote client computer. Run command:
C:\Windows\Microsoft.NET\Framework\<version>\RegSvcs.exe X:\out\MyRemoteAgent.dll
Register the ALM client files on client side by getting the following URL: http:///qcbin/start_a.jsp?Common=true