Class TestSettings
- Namespace
- Xping.Sdk.Core.Components
- Assembly
- Xping.Sdk.Core.dll
This class is used to store settings for a test execution. It provides a set of properties that can be used to configure the behavior of the test run, such as the timeout duration or pipeline termination behavior.
public sealed class TestSettings
- Inheritance
-
TestSettings
- Inherited Members
Properties
ContinueOnFailure
Gets or sets a value indicating whether to continue running all tests in the pipline regardless of their results. Default is false.
public bool ContinueOnFailure { get; set; }
Property Value
Remarks
If this property is set to true
, all tests will be run regardless of their results. If this property is
set to false
, the testing pipeline will stop running tests when a failure occurs.
TestIdAttribute
Gets or sets the attribute name used to uniquely identify HTML elements on the web page for testing purposes. This property is typically used in conjunction with automated testing tools to select elements by their test ID. The default value is 'data-testid', which is a common convention in web development.
public string TestIdAttribute { get; set; }
Property Value
Timeout
Gets or sets the maximum amount of time to allow a test operation to run. Default is 30 seconds.
public TimeSpan Timeout { get; set; }
Property Value
Remarks
This property defines the upper limit on the duration a test can take. If the test exceeds this time, it should be considered failed or aborted. Setting this value helps ensure tests complete in an expected timeframe.