Constant Values

Some functions in the BDL take constant values as parameters. These constant values are defined as public enums in the SilkPerformer.Bdl namespace. The following list lists some of the defined enums:
  • PrintDisplay (OPT_DISPLAY_ERRORS, OPT_DISPLAY_TRANSACTIONS, ...)
  • PrintColor (TEXT_GRAY, TEXT_BLACK, ...)
  • Severity (SEVERITY_SUCCESS, SEVERITY_INFORMATIONAL, ...)
  • MeasureKind (MEASURE_KIND_SUM, MEASURE_KIND_COUNT, ...)
  • MeasureUsage (MEASURE_USAGE_TIMER, ...)
  • MeasureClass (MEASURE_IIOP, MEASURE_TIMER, ...)
  • ThinkTimeOption (OPT_THINKTIME_RANDOMWAIT, ...)

Example

[Transaction(EtransactionType.TRANSTYPE_MAIN)]
[TestAttribute("Attribute1", "TestValue")]
public void Tmain()
{
  string sValue = Bdl.AttributeGet("Attribute1");
  Bdl.MeasureStart("My Testmeasure");
  string sReturn = SomeMethod(sValue);
  Bdl.Print(sReturn);
  Bdl.MeasureStop("My Testmeasure");
}