OpenTAP 9.34
API Reference
OpenTap.ResultSource Class Reference

Temporarily holds results from a TestStep, before they are propagated to the ResultListener by the TestPlan. See TestStep.Results More...

Inheritance diagram for OpenTap.ResultSource:
OpenTap.IResultSource

Public Member Functions

void AddParameter (ResultParameter param)
 Adds an additional parameter to this TestStep run.
 
 ResultSource (TestStepRun stepRun, TestPlanRun planRun)
 Creates a new ResultProxy. Done for each test step run.
 
void Wait ()
 Waits for the propagation of results from all Proxies to the Listeners. Normally this is not necessary. However, if a step needs to change a property after it has written results, this method makes sure the ResultListeners record the previous/correct value before changing it.

 
void Defer (Action action)
 Defer an action from the current test step run. This means the action will be executed some time after the current run.
 
void Publish< T > (T result)
 Stores an object as a result. These results will be propagated to the ResultStore after the TestStep completes.
 
void Publish (ResultTable result)
 Publishes a result table.
 
void Publish< T > (string name, T result)
 Stores an object as a result. These results will be propagated to the ResultStore after the TestStep completes.
 
void Publish (string name, List< string > columnNames, params IConvertible[] results)
 Stores a result. These results will be propagated to the ResultStore after the TestStep completes.
 
void PublishTable (string name, List< string > columnNames, params Array[] results)
 The fastest way to store a result. These results will be propagated to the ResultStore after the TestStep completes.
 
void PublishTable (ResultTable table)
 Publishes a result table.
 
- Public Member Functions inherited from OpenTap.IResultSource

Detailed Description

Temporarily holds results from a TestStep, before they are propagated to the ResultListener by the TestPlan. See TestStep.Results

Constructor & Destructor Documentation

◆ ResultSource()

OpenTap.ResultSource.ResultSource ( TestStepRun stepRun,
TestPlanRun planRun )
inline

Creates a new ResultProxy. Done for each test step run.

Parameters
stepRunTestStepRun that this result proxy is proxy for.
planRunTestPlanRun that this result proxy is proxy for.

Member Function Documentation

◆ AddParameter()

void OpenTap.ResultSource.AddParameter ( ResultParameter param)
inline

Adds an additional parameter to this TestStep run.

Parameters
paramParameter to add.

◆ Defer()

void OpenTap.ResultSource.Defer ( Action action)
inline

Defer an action from the current test step run. This means the action will be executed some time after the current run.

Parameters
action

Implements OpenTap.IResultSource.

◆ Publish()

void OpenTap.ResultSource.Publish ( string name,
List< string > columnNames,
params IConvertible[] results )
inline

Stores a result. These results will be propagated to the ResultStore after the TestStep completes.

Parameters
nameName of the result.
columnNamesTitles of the columns.
resultsThe values of the results to store.

Implements OpenTap.IResultSource.

◆ Publish< T >() [1/2]

void OpenTap.ResultSource.Publish< T > ( string name,
T result )
inline

Stores an object as a result. These results will be propagated to the ResultStore after the TestStep completes.

Template Parameters
T
Parameters
nameThe name of the result.
resultThe result whose properties should be stored.

◆ Publish< T >() [2/2]

void OpenTap.ResultSource.Publish< T > ( T result)
inline

Stores an object as a result. These results will be propagated to the ResultStore after the TestStep completes.

Template Parameters
T
Parameters
resultThe result whose properties should be stored.

◆ PublishTable()

void OpenTap.ResultSource.PublishTable ( string name,
List< string > columnNames,
params Array[] results )
inline

The fastest way to store a result. These results will be propagated to the ResultStore after the TestStep completes.

Parameters
nameName of the result.
columnNamesTitles of the columns.
resultsThe columns of the results to store.

This is the fastest way to store a large number of results.

Implements OpenTap.IResultSource.

OpenTAP 9.34 API built Wed Jul 1 2026 09:21:15