Custom Attributes Code Sample

C# Test Code Sample

using System;
using SilkPerformer;

namespace SPProject1
{
  [VirtualUser("VUser")]
  public class VUser
  {
    public VUser()
{
    }
    [Transaction(ETransactionType.TRANSTYPE_INIT)]
    public void TInit()
    {
    }
    [Transaction(ETransactionType.TRANSTYPE_MAIN)]
    public void TMain()
    {
    }
    [TestMethod]
    [TestAttribute("Attr1", "DefaultValue1")]
    public void TestMethod1()
    {
      string sAttrValue = Bdl.AttributeGet("Attr1");
      Bdl.Print(sAttrValue);
    }
    [Transaction(ETransactionType.TRANSTYPE_END)]
    public void TEnd()
    {
    }
  }
}