Class TestCaseNode
Provides functionality to create, load, and run a test case.
public class TestCaseNode : TestSuiteEntryContainer, ICheckableEntryHost, IRunnable, ITestContainer, IIterable
- Inheritance
-
TestCaseNode
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
TestCaseNode()
public TestCaseNode()
Properties
AllModules
[Browsable(false)]
public IList<TestModuleLeaf> AllModules { get; }
Property Value
CheckableEntry
[Browsable(false)]
public ICheckableEntry CheckableEntry { get; }
Property Value
Checked
Gets or sets a value indicating whether this 'test case' or 'smart folder' is checked in the current run configuration.
public bool Checked { get; set; }
Property Value
- bool
trueif checked; otherwise,false.
DataContext
Gets the data context of the 'test case' or 'smart folder'.
[Browsable(false)]
public DataContext DataContext { get; }
Property Value
- DataContext
The 'test case' or 'smart folder' data context.
DataRange
Gets the current data range.
[Browsable(false)]
public DataRange DataRange { get; set; }
Property Value
- DataRange
The current data range.
DataRangeInvalidString
[Browsable(false)]
public string DataRangeInvalidString { get; }
Property Value
DataSource
[Browsable(false)]
public DataConnector DataSource { get; }
Property Value
DisplayName
public override string DisplayName { get; }
Property Value
DisplayRetryCount
The number of time to retry a run.
public string DisplayRetryCount { get; set; }
Property Value
ErrorBehavior
[TypeConverter(typeof(ErrorBehaviorTypeConverter))]
public ErrorBehavior ErrorBehavior { get; set; }
Property Value
HasWarnings
Gets a value indicating whether this 'test case' or 'smart folder' has warnings.
[Browsable(false)]
public bool HasWarnings { get; }
Property Value
- bool
trueif this 'test case' or 'smart folder' has warnings; otherwise,false.
IsDataRangeActive
[Browsable(false)]
public bool IsDataRangeActive { get; set; }
Property Value
IsDataRangeValid
[Browsable(false)]
public bool IsDataRangeValid { get; }
Property Value
IsRootTestCase
[Browsable(false)]
public bool IsRootTestCase { get; }
Property Value
IsSmartFolder
Gets a value indicating whether this container is a 'smart folder'.
[Browsable(false)]
public bool IsSmartFolder { get; }
Property Value
- bool
trueif this container is a 'smart folder'; otherwise,false.
IsTestCase
Gets a value indicating whether this container is a 'test case'.
[Browsable(false)]
public bool IsTestCase { get; }
Property Value
- bool
trueif this container is a 'test case'; otherwise,false.
ParameterMasks
Gets the parameters of the 'test case' or 'smart folder'.
[Browsable(false)]
public IDictionary<string, string> ParameterMasks { get; }
Property Value
- IDictionary<string, string>
The 'test case' or 'smart folder' parameters.
Parameters
Gets the parameters of the 'test case' or 'smart folder'.
[Browsable(false)]
public IDictionary<string, string> Parameters { get; }
Property Value
- IDictionary<string, string>
The 'test case' or 'smart folder' parameters.
ParentContainer
Gets the parent ITestContainer.
[Browsable(false)]
public ITestContainer ParentContainer { get; }
Property Value
ReportLevel
[TypeConverter(typeof(TestSuiteReportLevelConverter))]
public ReportLevel ReportLevel { get; set; }
Property Value
RunIterationCount
The number of time to run the ITestContainer.
public int RunIterationCount { get; set; }
Property Value
RunRetryCount
The number of time to retry a run.
[Browsable(false)]
public int RunRetryCount { get; set; }
Property Value
Status
Gets the current status of the 'test case' or 'smart folder'.
[Browsable(false)]
public ActivityStatus Status { get; }
Property Value
- ActivityStatus
The 'test case' or 'smart folder' status.
TestSuite
[Browsable(false)]
public TestSuite TestSuite { get; }
Property Value
WarnForUnboundVariables
[TypeConverter(typeof(WarnUnboundVariablesConverter))]
public bool? WarnForUnboundVariables { get; set; }
Property Value
- bool?
Methods
AddParameter(string, string)
public void AddParameter(string name, string value)
Parameters
AddParameterMask(string, string)
public void AddParameterMask(string name, string value)
Parameters
ClearParameter()
public void ClearParameter()
ClearParameterMask()
public void ClearParameterMask()
DoGetFactoryIdentifier()
protected override string DoGetFactoryIdentifier()
Returns
GetAncestorTestCases()
public IList<TestCaseNode> GetAncestorTestCases()
Returns
GetDescendantTestCases()
public IEnumerable<TestCaseNode> GetDescendantTestCases()
Returns
GetEffectiveWarnUnbound()
public bool GetEffectiveWarnUnbound()
Returns
GetRangedDataRowCount()
Gets the ranged row count of the current data range.
public int GetRangedDataRowCount()
Returns
- int
The ranged row count of the current data range.
OverwriteInstanceContent(TestCaseNode)
public void OverwriteInstanceContent(TestCaseNode testCaseNodeCopy)
Parameters
testCaseNodeCopyTestCaseNode
RefreshDescendantModuleDataBindings()
public void RefreshDescendantModuleDataBindings()
RemoveParameter(int)
public void RemoveParameter(int index)
Parameters
indexint
RemoveParameterMask(int)
public void RemoveParameterMask(int index)
Parameters
indexint
Run(DataContext, bool)
The execution method.
public TestResult Run(DataContext parentDataContext, bool childSkip)
Parameters
parentDataContextDataContextThe parent data context.
childSkipboolif set to
truechild node execution is skipped.
Returns
- TestResult
TestResult.
SetCurrentDataRange()
public void SetCurrentDataRange()
SetDataContext(DataCache, TestSuiteEntryContainer)
public void SetDataContext(DataCache dataCache, TestSuiteEntryContainer notYetSetParent = null)
Parameters
dataCacheDataCachenotYetSetParentTestSuiteEntryContainer
SetRange(string)
[Browsable(false)]
public void SetRange(string range)
Parameters
rangestring
ThrowIfNameNotOk(string)
protected override void ThrowIfNameNotOk(string value)
Parameters
valuestring