|
Hi there,
TestExec SL control has a Limit/Limits object, you can get more information from TestExec SL Control online help file. Below are the VB.NET code snippet for setting up a Nominal Tolerance limit for EchoInt32 action, you can do the samething on the C# langauge also
... Dim objAction As HPTestCoreRuntime.Action Dim objLimit as HPTestCoreRuntime.Limit
' Insert the action 'EchoInt32' objAction = objStatement.Actions.Add(1, "EchoInt32") ' Set the value of the 'Input' parameter to be a reference to 'IntegerOne' in table 'ExtSymTable' objAction.Symbols.Item("Input").SetReference("IntegerOne", "ExtSymTable") ' Insert a Nominal limit checker for the output parameter 'Result' objLimit = objAction.Limits.Add("Result", HPTestCoreRuntime.LimitType.LimitNominalTolerance) ' Set the limit checker values. These are hardcoded, limit parameter names. objLimit.Symbols.Item("Nominal").Value = 123 objLimit.Symbols.Item("+/- Tolerance").Value = 2
|