Table of Contents

Class TestModuleLeaf

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

Represents a module in a test suite.

public class TestModuleLeaf : TestSuiteEntry, IRunnable, IModule, IIterable
Inheritance
TestModuleLeaf
Implements
Derived
Inherited Members
Extension Methods

Constructors

TestModuleLeaf()

public TestModuleLeaf()

Properties

Activity

protected Activity Activity { get; set; }

Property Value

Activity

Current

Gets the currently executed test module.

public static IModule Current { get; set; }

Property Value

IModule

DataBindingMap

[Browsable(false)]
public IDictionary<ModuleVarItem, IDataBindingInfo> DataBindingMap { get; }

Property Value

IDictionary<ModuleVarItem, IDataBindingInfo>

DisplayName

public override string DisplayName { get; }

Property Value

string

DisplayedModulePath

[Browsable(false)]
public string DisplayedModulePath { get; set; }

Property Value

string

Enabled

public bool Enabled { get; set; }

Property Value

bool

HasWarnings

Gets a value indicating whether this instance has warnings.

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

Property Value

bool

true if this instance has warnings; otherwise, false.

IsDescendantOfSetupNode

Gets a value indicating whether this instance is a descendant of a setupNode.

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

Property Value

bool

true if this instance is a setup module; otherwise, false.

IsDescendantOfTearDownNode

Gets a value indicating whether this instance is a descendant of a TearDownNode.

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

Property Value

bool

true if this instance is a descendant of a TearDownNode; otherwise, false.

ModuleGuid

public CaseInsensitiveString ModuleGuid { get; set; }

Property Value

CaseInsensitiveString

RunIterationCount

The number of time to run the IModule.

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

Property Value

int

Type

[Browsable(false)]
public ModuleType Type { get; }

Property Value

ModuleType

Methods

AddDataBinding(ModuleVarItem, IDataBindingInfo)

public void AddDataBinding(ModuleVarItem moduleVariable, IDataBindingInfo dataBindingInfo)

Parameters

moduleVariable ModuleVarItem
dataBindingInfo IDataBindingInfo

ClearDataBinding()

public void ClearDataBinding()

DoGetFactoryIdentifier()

protected override string DoGetFactoryIdentifier()

Returns

string

RefreshDataBindingsDomUpdate()

public void RefreshDataBindingsDomUpdate()

RefreshDataBindingsTestSuiteChanged()

public void RefreshDataBindingsTestSuiteChanged()

RemoveDataBinding(ModuleVarItem)

public void RemoveDataBinding(ModuleVarItem moduleVariable)

Parameters

moduleVariable ModuleVarItem

Run(DataContext, bool)

The execution method.

public virtual 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.

ThrowIfNameNotOk(string)

protected override void ThrowIfNameNotOk(string value)

Parameters

value string

UpdateDataName(IDataBindingInfo, IDataBindingInfo)

public void UpdateDataName(IDataBindingInfo oldBindingInfo, IDataBindingInfo newBindingInfo)

Parameters

oldBindingInfo IDataBindingInfo
newBindingInfo IDataBindingInfo

UpdateModuleContent(TestModuleLeaf)

public void UpdateModuleContent(TestModuleLeaf module)

Parameters

module TestModuleLeaf

UpdateModuleVariableName()

public void UpdateModuleVariableName()