Interface ITestExecutionCollector
- Namespace
- Xping.Sdk.Core.Collection
- Assembly
- Xping.Sdk.Core.dll
Defines a contract for collecting and managing test execution data.
public interface ITestExecutionCollector : IAsyncDisposable
- Inherited Members
Methods
FlushAsync(CancellationToken)
Manually triggers a flush of buffered test executions to the uploader.
Task FlushAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA cancellation token to cancel the operation.
Returns
- Task
A task representing the asynchronous flush operation.
GetStatsAsync()
Retrieves statistics about the collector's current state.
Task<CollectorStats> GetStatsAsync()
Returns
- Task<CollectorStats>
A task containing the collector statistics.
RecordTest(TestExecution)
Records a test execution for later upload.
void RecordTest(TestExecution execution)
Parameters
executionTestExecutionThe test execution data to record.