|
OpenTAP 9.35
API Reference
|
Abstract class forming the basis for all ResultListeners. More...
Public Member Functions | |
| virtual void | OnTestPlanRunStart (TestPlanRun planRun) |
| Called when a test plan starts. | |
| virtual void | OnTestPlanRunCompleted (TestPlanRun planRun, System.IO.Stream logStream) |
| Called when test plan finishes. At this point no more results will be sent to the result listener from the test plan run. | |
| virtual void | OnTestStepRunStart (TestStepRun stepRun) |
| Called just before a test step is started. | |
| virtual void | OnTestStepRunCompleted (TestStepRun stepRun) |
| Called when a test step run is completed. Result might still be propagated to the result listener after this event. | |
| virtual void | OnResultPublished (Guid stepRunId, ResultTable result) |
| Called when a result is received. | |
Public Member Functions inherited from OpenTap.Resource | |
| Resource () | |
| Instantiate a new instance of Resource class and creates logging source. | |
| override string | ToString () |
| Overrides ToString() to return the Name of the resource. Can be overridden by derived classes to provider a more descriptive name. Note the overrider should include the Name in the output. | |
| virtual void | Open () |
| When overridden in a derived class, should contain implementation to open a connection to the resource represented by this class. Any one time initialization should be done here as well. | |
| virtual void | Close () |
| When overridden in a derived class, should contain implementation to close the connection made to the resource represented by this class. | |
| void | OnActivity () |
| Triggers the ActivityStateChanged event. | |
Public Member Functions inherited from OpenTap.ValidatingObject | |
| void | OnPropertyChanged (string propertyName) |
| Triggers the PropertyChanged event. | |
Public Member Functions inherited from OpenTap.IValidatingObject | |
Public Member Functions inherited from OpenTap.IResource | |
Public Member Functions inherited from OpenTap.INotifyActivity | |
Public Member Functions inherited from OpenTap.IResultListener | |
Protected Member Functions | |
| virtual void | onEnabledChanged (bool oldValue, bool newValue) |
| Called when IsEnabled is changed. | |
Protected Member Functions inherited from OpenTap.ValidatingObject | |
| virtual string | GetError (string propertyName=null) |
| Return the error for a given property. | |
| void | ThrowOnValidationError (bool ignoreDisabledProperties) |
| Checks all validation rules on this object (Rules) and throws an AggregateException on errors. | |
Properties | |
| bool | IsEnabled [get, set] |
| Gets or sets if this resources is enabled. | |
Properties inherited from OpenTap.Resource | |
| TraceSource | Log [get] |
| Default log that the resource object can write to. Typically used by instances and extensions of the Resource object. | |
| string | Name [get, set] |
| A short name displayed in the user interface where space is limited. | |
| bool | IsConnected [get, set] |
| Indicates whether this resource is currently connected. This value should be set by Open() and Close(). | |
Properties inherited from OpenTap.ValidatingObject | |
| ValidationRuleCollection | Rules [get] |
| All the validation rules. Add new rules to this in order to get runtime value validation. | |
| string | Error [get] |
| Gets the error messages for each invalid rule and joins them with a newline. | |
Properties inherited from OpenTap.IValidatingObject | |
Properties inherited from OpenTap.IResource | |
Properties inherited from OpenTap.IEnabledResource | |
Additional Inherited Members | |
Events inherited from OpenTap.Resource | |
| EventHandler< EventArgs > | Activity |
| Invoked on activity. | |
Events inherited from OpenTap.ValidatingObject | |
| PropertyChangedEventHandler | PropertyChanged |
| Standard PropertyChanged event object. | |
Events inherited from OpenTap.INotifyActivity | |
| EventHandler< EventArgs > | Activity |
| Invoked on activity. | |
Abstract class forming the basis for all ResultListeners.
|
inlineprotectedvirtual |
Called when IsEnabled is changed.
| oldValue | |
| newValue |
|
inlinevirtual |
Called when a result is received.
| stepRunId | Step run ID. |
| result | Result structure. |
Implements OpenTap.IResultListener.
|
inlinevirtual |
Called when test plan finishes. At this point no more results will be sent to the result listener from the test plan run.
| planRun | Test plan run parameters. |
| logStream | The log file from the test plan run as a stream. |
Implements OpenTap.IResultListener.
|
inlinevirtual |
Called when a test plan starts.
| planRun | Test plan run parameters. |
Implements OpenTap.IResultListener.
Reimplemented in OpenTap.TestPlanRunSummaryListener.
|
inlinevirtual |
Called when a test step run is completed. Result might still be propagated to the result listener after this event.
| stepRun | Step run parameters. |
Implements OpenTap.IResultListener.
Reimplemented in OpenTap.TestPlanRunSummaryListener.
|
inlinevirtual |
Called just before a test step is started.
| stepRun |
Implements OpenTap.IResultListener.
Reimplemented in OpenTap.TestPlanRunSummaryListener.
OpenTAP 9.35 API built Thu Sep 3 2026 13:51:29