Indicate the expected outcome for the specific probe execution. This is used to decide if a test has successfully passed or failed.
Unlike .rtcSetTestExpectation() , this script command enables you to create your own calculation as an asset. Your function will be called at the end of the test run, letting you decide what to do with the metrics collected and determine if the test should pass or fail.
Where .rtcSetCustomExpectation() is used to calculate custom expectations on the whole data series, this command is used to limit the calculation to the timespan between events created using .rtcEvent() . You can also check other assertions and expectation commands available in testRTC.
Arguments
Name | Type | Description |
---|---|---|
asset-name | string | The name of the asset holding the expectation calculation |
start-event | string | Starting point in time for the metrics used for the calculation |
end-event | string | Starting point in time for the metrics used for the calculation |
Notes
See .rtcSetCustomExpectation() for details and examples.