Custom Test Type Example

Steps to create .NET class for Custom Test Type:

  1. Create a C# Class Library project named TestType.

    In Visual Studio, right-click on Reference, select Add Reference, select the DLL tab, browse to the local client folder, and select these files:.

    These files are in the local ALM client folder created when you access ALM. For example, C:\Users\my_user_name\AppData\Local\HP\ALM-Client\myALMserver.

  2. Create three user controls for ExecConfigViewerControl, ResultViewerControl and ScriptViewerControl. Paste the sample code to each control.
  3. Create a normal class for ImageProvider, and paste the sample code. Create a 16x16 Image Resource for ImageProvider.

When you reference OTAClient.dll, a file, Interop.TDAPIOLELib.dll, is generated as a COM wrapper. Include Interop.TDAPIOLELib.dll in the deployment of your test type.

Sample C# implementations of Custom Test Type interfaces:


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