Custom Test Types Interfaces

TestTypeImageProvider Example

using System;
using System.Drawing;
using Mercury.TD.Client.UI.Modules.Shared.Api;

namespace TestType
{
  public class TestTypeImageProvider : ITestTypeImageProvider
  {
    #region Implementation of ITestTypeImageProvider

    /// 
    /// Returns the test type's icon. Icon's size must be 16x16 pixels.
    /// 
    /// The test status that the bitmap represents.
    /// 0 - General status.
    /// 1 - For test containing design steps.
    /// Icon to display near the tests, test instances and runs of the test type.
    public Image TestTypeIcon(int status)
    {
      return TestTypeResource.TestTypeImage;
    }

    #endregion
  }
}


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