C# Class Opc.Ua.ServerTest.MonitoredItemTest

Browses all of the nodes in the hierarchies.
Inheritance: TestBase
ファイルを表示 Open project: OPCFoundation/UA-.NET Class Usage Examples

Public Methods

Method Description
MonitoredItemTest ( Session session, ServerTestConfiguration configuration, ReportMessageEventHandler reportMessage, ReportProgressEventHandler reportProgress, TestBase template ) : System

Creates the test object.

Run ( ServerTestCase testcase, int iteration ) : bool

Runs the test for all of the browse roots.

Session_Notification ( Session session, NotificationEventArgs e ) : void

Private Methods

Method Description
AddVariableToTest ( VariableNode variable, List variables, bool numericOnly ) : void

Recursively collects the child variables.

CalculateDifference ( object before, object after ) : decimal

Calculates the difference between two values.

CheckDeadbandError ( MonitoredItem monitoredItem ) : bool

Checks the error code after specifying a deadband.

CheckNotificationTiming ( MonitoredItem monitoredItem, TestVariable variable, IList notifications ) : bool

Checks the timing for notifications.

CheckReturnedValues ( MonitoredItem monitoredItem, TestVariable variable, IList notifications ) : bool

Checks that the correct values were returned.

DoDeadbandTest ( bool modifyDeadband ) : bool

Reads an verifies all of the nodes.

DoQueueSizeTest ( bool modifyQueueSize ) : bool

Reads an verifies all of the nodes.

DoSamplingIntervalTest ( bool modifySamplingInterval ) : bool

Reads an verifies all of the nodes.

DoWrite ( object state ) : void

Periodically writes to the server.

EnsureInRange ( object value, VariableNode variable, Range range ) : object

Ensures the value is within the EU Range.

HaltTestOnError ( Exception e, string format ) : void

Halts the test after an error occurred.

IncrementValue ( TestVariable variable, double counter ) : object

Returns a new value.

InitialWrite ( ) : void

Removes nodes that are not actually writeable.

ModifyDeadband ( Subscription subscription ) : bool

Modifies the deadband.

ModifyQueueSize ( Subscription subscription ) : bool

Modifies the queue size for the subscription.

ModifySamplingInterval ( Subscription subscription ) : bool

Modifies the sampling interval used.

ReadEURanges ( List variables ) : void

Reads the EU range for a variable.

Write ( int counter ) : bool

Reads the attributes, verifies the results and updates the nodes.

Method Details

MonitoredItemTest() public method

Creates the test object.
public MonitoredItemTest ( Session session, ServerTestConfiguration configuration, ReportMessageEventHandler reportMessage, ReportProgressEventHandler reportProgress, TestBase template ) : System
session Opc.Ua.Client.Session
configuration ServerTestConfiguration
reportMessage ReportMessageEventHandler
reportProgress ReportProgressEventHandler
template TestBase
return System

Run() public method

Runs the test for all of the browse roots.
public Run ( ServerTestCase testcase, int iteration ) : bool
testcase ServerTestCase
iteration int
return bool

Session_Notification() public method

public Session_Notification ( Session session, NotificationEventArgs e ) : void
session Opc.Ua.Client.Session
e Opc.Ua.Client.NotificationEventArgs
return void