Class IPAddressAccessibilityCheck
The IPAddressAccessibilityCheck class is a concrete implementation of the TestComponent class that is used to check the accessibility of an IP address. It uses the mechanisms provided by the operating system to check the accessibility of an IP address.
public sealed class IPAddressAccessibilityCheck : TestComponent, ITestComponent
- Inheritance
-
IPAddressAccessibilityCheck
- Implements
- Inherited Members
Remarks
note
The IPAddressAccessibilityCheck component requires the DnsLookup component to be registered before it in the pipeline, because it depends on the DNS resolution results.
Constructors
IPAddressAccessibilityCheck(PingConfiguration)
Initializes new instance of th
public IPAddressAccessibilityCheck(PingConfiguration configuration)
Parameters
configuration
PingConfigurationThe ping operation configuration.
Fields
StepName
The name of the test component that represents a IPAddressAccessibilityCheck of tests.
public const string StepName = "IPAddress accessibility check"
Field Value
Remarks
This constant is used to register the IPAddressAccessibilityCheck class in the test framework.
Methods
HandleAsync(Uri, TestSettings, TestContext, IServiceProvider, CancellationToken)
This method performs the test step operation asynchronously.
public override Task HandleAsync(Uri url, TestSettings settings, TestContext context, IServiceProvider serviceProvider, CancellationToken cancellationToken = default)
Parameters
url
UriA Uri object that represents the URL of the page being validated.
settings
TestSettingsA TestSettings object that contains the settings for the test.
context
TestContextA TestContext object that represents the test context.
serviceProvider
IServiceProviderAn instance object of a mechanism for retrieving a service object.
cancellationToken
CancellationTokenAn optional CancellationToken object that can be used to cancel this operation.