Udostępnij za pośrednictwem


FailoverTestScenario Class

Definition

Caution

This class is deprecated. Please use Chaos instead https://docs.microsoft.com/azure/service-fabric/service-fabric-controlled-chaos

The FailoverTestScenario is a test which runs a series of faults against a specific partition defined by the PartitionSelector in the FailoverTestScenarioParameters.

[System.Obsolete("This class is deprecated.  Please use Chaos instead https://docs.microsoft.com/azure/service-fabric/service-fabric-controlled-chaos")]
public sealed class FailoverTestScenario : System.Fabric.Testability.Scenario.TestScenario
[<System.Obsolete("This class is deprecated.  Please use Chaos instead https://docs.microsoft.com/azure/service-fabric/service-fabric-controlled-chaos")>]
type FailoverTestScenario = class
    inherit TestScenario
Public NotInheritable Class FailoverTestScenario
Inherits TestScenario
Inheritance
FailoverTestScenario
Attributes

Remarks

The faults induced put the partition through some specific failover scenarios to ensure those paths are tested and exercised. Running your workload against the service at the same time as the test being run will increase the chances of inducing and discovering bugs with the service. The faults induced for the Primary, Secondaries and stateless instances are RestartReplica(only persisted), RemoveReplica, ResartDeployedCodePackage, MovePrimary (only stateful), MoveSecondary (Only stateful), MoveInstance (Only stateless), RestartPartition (no data loss), MoveAuxiliary (Only stateful persisted).

Constructors

FailoverTestScenario(FabricClient, FailoverTestScenarioParameters)

Constructor for the FailoverTestScenario.

Fields

ProgressChanged

Event handler which exposes the current progress of the test. When handled it gives you the ProgressChangedEventArgs which gives out a total % of the test which has already completed and the last operation (string) that was performed which can be useful for logging.

(Inherited from TestScenario)

Properties

FabricClient

This API supports the Service Fabric platform and is not meant to be called from your code

(Inherited from TestScenario)
ScenarioParameters

This API supports the Service Fabric platform and is not meant to be called from your code

(Inherited from TestScenario)

Methods

Dispose()

This method will dispose the TestScenario.

(Inherited from TestScenario)
ExecuteAsync(CancellationToken)

This method executes the test with the specified parameter set passed into the constructor.

(Inherited from TestScenario)
GetElapsedTime()

This API supports the Service Fabric platform and is not meant to be called from your code

(Inherited from TestScenario)
HandleTaskComplete(Task, String, String)

This API supports the Service Fabric platform and is not meant to be called from your code

(Inherited from TestScenario)
OnDispose(Boolean)

This API supports the Service Fabric platform and is not meant to be called from your code

(Inherited from TestScenario)
OnExecuteAsync(CancellationToken)

This API supports the Service Fabric platform and is not meant to be called from your code

(Inherited from TestScenario)
ReportProgress(String, Object[])

This API supports the Service Fabric platform and is not meant to be called from your code

(Inherited from TestScenario)
ReportProgress(String)

This API supports the Service Fabric platform and is not meant to be called from your code

(Inherited from TestScenario)
ValidateScenarioAtExitAsync(CancellationToken)

This API supports the Service Fabric platform and is not meant to be called from your code

(Inherited from TestScenario)

Applies to