C# Class Opc.Ua.ServerTest.ServerTestClient

A class used to execute a series of tests against a server.
Show file Open project: OPCFoundation/UA-.NET Class Usage Examples

Public Methods

Method Description
Run ( ConfiguredEndpoint endpoint, ServerTestConfiguration testConfiguration ) : void

Runs the testcases against the endpoint.

ServerTestClient ( ApplicationConfiguration configuration ) : System

Initializes the object with the specified configuration object.

This method will create a default configuration if none is provided.

Private Methods

Method Description
CreateSAMLToken ( string emailAddress, System.IdentityModel.Tokens.X509SecurityToken issuerToken ) : SamlSecurityToken

Creates a SAML token for the specified email address and security token.

CreateSession ( ApplicationConfiguration configuration, BindingFactory bindingFactory, ConfiguredEndpoint endpoint, IUserIdentity identity ) : Session

Creates a session.

CreateUserIdentity ( UserTokenPolicy policy ) : IUserIdentity

Creates a user identity for the policy.

DoTest ( string endpoint, uint &totalCount, uint &failedCount ) : void

Runs a test for a single endpoint.

DoTestForEndpoint ( ConfiguredEndpoint endpoint, uint &totalCount, uint &failedCount ) : void

Runs a test for a single endpoint.

DumpPerfData ( ) : void

Dumps the performance data for a test run.

DumpTable ( double>.Dictionary table, string name ) : void

Dumps a table of results.

GetDefaultSession ( ) : Session

Returns the a session to re-use for different tests.

GetElapsedTime ( System.DateTime start ) : int

Returns the elapsed time in milliseconds.

GetEndpoints ( ConfiguredEndpoint endpoint ) : ConfiguredEndpointCollection

Reads the endpoints for a server.

IndexPerfData ( PerfData data, double>.Dictionary table, string primaryKey ) : void

Indexes the performance data.

IsEndpointSelected ( ConfiguredEndpoint endpoint, EndpointSelection selection, bool useXml ) : bool

Determines whether the endpoint is selected.

Report ( Exception e, string format ) : void

Reports an exception encountered during a test.

Report ( TestBase test, double current, double final ) : void

Used to log errors during a test run.

Report ( TestBase test, string format ) : void

Used to log errors during a test run.

Report ( double current, double final ) : void

Reports the progress for a test.

Report ( string format ) : void

Reports the result of a test.

ReportBreakpoint ( ) : void

Reports a breakpoint for a test.

ReportWithHeader ( string format ) : void

Formats a header block in the log file.

SavePerfData ( ConfiguredEndpoint endpoint, double elaspedTime ) : void

Saves the performance data for a test run.

Session_KeepAlive ( Session session, KeepAliveEventArgs e ) : void

Raised when a keep alive response is returned from the server.

Method Details

Run() public method

Runs the testcases against the endpoint.
public Run ( ConfiguredEndpoint endpoint, ServerTestConfiguration testConfiguration ) : void
endpoint ConfiguredEndpoint The endpoint to test.
testConfiguration ServerTestConfiguration
return void

ServerTestClient() public method

Initializes the object with the specified configuration object.
This method will create a default configuration if none is provided.
public ServerTestClient ( ApplicationConfiguration configuration ) : System
configuration ApplicationConfiguration The application configuration.
return System