DDS Test Helpers API Reference
DDS Test Helpers

A set of functions that simplifies testing of Connext applications. More...

Functions

DDS_Long DDSCTestContext_getCurrentAliveWriterCount (DDS_DataReader *reader)
 Get the current count of alive writers matched with the given reader. More...
 
DDS_ReturnCode_t DDSCTestContext_waitForReaders (int numReaders, DDS_DataWriter *writer, int timeoutSecs)
 Does an active wait until numReaders readers are discovered by writer, or during timeoutSecs until failure. More...
 
DDS_ReturnCode_t DDSCTestContext_waitForWriters (int numWriters, DDS_DataReader *reader, int timeoutSecs)
 Does an active wait until numWriters writers are discovered by reader, or during timeoutSecs until failure. More...
 
RTIBool DDSCTestHelper_detectInterferingParticipants (int domainId)
 Creates a participant in an scenario where no participants are expected to detect interferences. More...
 

Detailed Description

A set of functions that simplifies testing of Connext applications.

Function Documentation

◆ DDSCTestContext_getCurrentAliveWriterCount()

DDS_Long DDSCTestContext_getCurrentAliveWriterCount ( DDS_DataReader *  reader)

Get the current count of alive writers matched with the given reader.

Parameters
readerThe reader whose alive writer count we need
Returns
The count of alive writers

◆ DDSCTestContext_waitForReaders()

DDS_ReturnCode_t DDSCTestContext_waitForReaders ( int  numReaders,
DDS_DataWriter *  writer,
int  timeoutSecs 
)

Does an active wait until numReaders readers are discovered by writer, or during timeoutSecs until failure.

Parameters
numReadersIn. The number of readers we expect to discover.
writerIn. The DataWriter to monitor.
timeoutSecsIn. Time to wait until numReaders readers are discovered, in seconds.
Returns
DDS_RETCODE_OK if numReaders readers are discovered, another return code if something goes wrong or the timeout is reached before all expected readers are discovered.

◆ DDSCTestContext_waitForWriters()

DDS_ReturnCode_t DDSCTestContext_waitForWriters ( int  numWriters,
DDS_DataReader *  reader,
int  timeoutSecs 
)

Does an active wait until numWriters writers are discovered by reader, or during timeoutSecs until failure.

Parameters
numWritersIn. The number of writers we expect to discover.
readerIn. The DataReader to monitor.
timeoutSecsIn. Time to wait until numWriter writers are discovered, in seconds.
Returns
DDS_RETCODE_OK if numWriters writers are discovered, another return code if something goes wrong or the timeout is reached before all expected writers are discovered.

◆ DDSCTestHelper_detectInterferingParticipants()

RTIBool DDSCTestHelper_detectInterferingParticipants ( int  domainId)

Creates a participant in an scenario where no participants are expected to detect interferences.

Parameters
domainId/b In. The domain ID to be monitored.