Table of Contents

Class TestCaseNode

Namespace
Ranorex.Core.Testing
Assembly
Ranorex.Core.dll

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

IList<TestModuleLeaf>

CheckableEntry

[Browsable(false)]
public ICheckableEntry CheckableEntry { get; }

Property Value

ICheckableEntry

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

true if 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

string

DataSource

[Browsable(false)]
public DataConnector DataSource { get; }

Property Value

DataConnector

DisplayName

public override string DisplayName { get; }

Property Value

string

DisplayRetryCount

The number of time to retry a run.

public string DisplayRetryCount { get; set; }

Property Value

string

ErrorBehavior

[TypeConverter(typeof(ErrorBehaviorTypeConverter))]
public ErrorBehavior ErrorBehavior { get; set; }

Property Value

ErrorBehavior

HasWarnings

Gets a value indicating whether this 'test case' or 'smart folder' has warnings.

[Browsable(false)]
public bool HasWarnings { get; }

Property Value

bool

true if this 'test case' or 'smart folder' has warnings; otherwise, false.

IsDataRangeActive

[Browsable(false)]
public bool IsDataRangeActive { get; set; }

Property Value

bool

IsDataRangeValid

[Browsable(false)]
public bool IsDataRangeValid { get; }

Property Value

bool

IsRootTestCase

[Browsable(false)]
public bool IsRootTestCase { get; }

Property Value

bool

IsSmartFolder

Gets a value indicating whether this container is a 'smart folder'.

[Browsable(false)]
public bool IsSmartFolder { get; }

Property Value

bool

true if 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

true if 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

ITestContainer

ReportLevel

[TypeConverter(typeof(TestSuiteReportLevelConverter))]
public ReportLevel ReportLevel { get; set; }

Property Value

ReportLevel

RunIterationCount

The number of time to run the ITestContainer.

public int RunIterationCount { get; set; }

Property Value

int

RunRetryCount

The number of time to retry a run.

[Browsable(false)]
public int RunRetryCount { get; set; }

Property Value

int

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

TestSuite

WarnForUnboundVariables

[TypeConverter(typeof(WarnUnboundVariablesConverter))]
public bool? WarnForUnboundVariables { get; set; }

Property Value

bool?

Methods

AddParameter(string, string)

public void AddParameter(string name, string value)

Parameters

name string
value string

AddParameterMask(string, string)

public void AddParameterMask(string name, string value)

Parameters

name string
value string

ClearParameter()

public void ClearParameter()

ClearParameterMask()

public void ClearParameterMask()

DoGetFactoryIdentifier()

protected override string DoGetFactoryIdentifier()

Returns

string

GetAncestorTestCases()

public IList<TestCaseNode> GetAncestorTestCases()

Returns

IList<TestCaseNode>

GetDescendantTestCases()

public IEnumerable<TestCaseNode> GetDescendantTestCases()

Returns

IEnumerable<TestCaseNode>

GetEffectiveWarnUnbound()

public bool GetEffectiveWarnUnbound()

Returns

bool

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

testCaseNodeCopy TestCaseNode

RefreshDescendantModuleDataBindings()

public void RefreshDescendantModuleDataBindings()

RemoveParameter(int)

public void RemoveParameter(int index)

Parameters

index int

RemoveParameterMask(int)

public void RemoveParameterMask(int index)

Parameters

index int

Run(DataContext, bool)

The execution method.

public TestResult Run(DataContext parentDataContext, bool childSkip)

Parameters

parentDataContext DataContext

The parent data context.

childSkip bool

if set to true child node execution is skipped.

Returns

TestResult

TestResult.

SetCurrentDataRange()

public void SetCurrentDataRange()

SetDataContext(DataCache, TestSuiteEntryContainer)

public void SetDataContext(DataCache dataCache, TestSuiteEntryContainer notYetSetParent = null)

Parameters

dataCache DataCache
notYetSetParent TestSuiteEntryContainer

SetRange(string)

[Browsable(false)]
public void SetRange(string range)

Parameters

range string

ThrowIfNameNotOk(string)

protected override void ThrowIfNameNotOk(string value)

Parameters

value string