RetryBaseAttribute.ExecuteAsync(RetryContext) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Retries the test method. The details of how retry is done is left to the derived classes. Note that a first run of the method was already executed and failed before this method is called.
protected internal abstract System.Threading.Tasks.Task<Microsoft.VisualStudio.TestTools.UnitTesting.RetryResult> ExecuteAsync (Microsoft.VisualStudio.TestTools.UnitTesting.RetryContext retryContext);
abstract member ExecuteAsync : Microsoft.VisualStudio.TestTools.UnitTesting.RetryContext -> System.Threading.Tasks.Task<Microsoft.VisualStudio.TestTools.UnitTesting.RetryResult>
Protected Friend MustOverride Function ExecuteAsync (retryContext As RetryContext) As Task(Of RetryResult)
Parameters
- retryContext
- RetryContext
An object to encapsulate the state needed for retry execution.
Returns
Returns a RetryResult object that contains the results of all attempts. Only the last added element is used to determine the test outcome. The other results are currently not used, but may be used in the future for tooling to show the state of the failed attempts.