Class TestModuleLeaf
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
Current
Gets the currently executed test module.
public static IModule Current { get; set; }
Property Value
DataBindingMap
[Browsable(false)]
public IDictionary<ModuleVarItem, IDataBindingInfo> DataBindingMap { get; }
Property Value
DisplayName
public override string DisplayName { get; }
Property Value
DisplayedModulePath
[Browsable(false)]
public string DisplayedModulePath { get; set; }
Property Value
Enabled
public bool Enabled { get; set; }
Property Value
HasWarnings
Gets a value indicating whether this instance has warnings.
[Browsable(false)]
public bool HasWarnings { get; }
Property Value
- bool
trueif 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
trueif 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
trueif 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
Type
[Browsable(false)]
public ModuleType Type { get; }
Property Value
Methods
AddDataBinding(ModuleVarItem, IDataBindingInfo)
public void AddDataBinding(ModuleVarItem moduleVariable, IDataBindingInfo dataBindingInfo)
Parameters
moduleVariableModuleVarItemdataBindingInfoIDataBindingInfo
ClearDataBinding()
public void ClearDataBinding()
DoGetFactoryIdentifier()
protected override string DoGetFactoryIdentifier()
Returns
RefreshDataBindingsDomUpdate()
public void RefreshDataBindingsDomUpdate()
RefreshDataBindingsTestSuiteChanged()
public void RefreshDataBindingsTestSuiteChanged()
RemoveDataBinding(ModuleVarItem)
public void RemoveDataBinding(ModuleVarItem moduleVariable)
Parameters
moduleVariableModuleVarItem
Run(DataContext, bool)
The execution method.
public virtual TestResult Run(DataContext parentDataContext, bool childSkip)
Parameters
parentDataContextDataContextThe parent data context.
childSkipboolif set to
truechild node execution is skipped.
Returns
- TestResult
TestResult.
ThrowIfNameNotOk(string)
protected override void ThrowIfNameNotOk(string value)
Parameters
valuestring
UpdateDataName(IDataBindingInfo, IDataBindingInfo)
public void UpdateDataName(IDataBindingInfo oldBindingInfo, IDataBindingInfo newBindingInfo)
Parameters
oldBindingInfoIDataBindingInfonewBindingInfoIDataBindingInfo
UpdateModuleContent(TestModuleLeaf)
public void UpdateModuleContent(TestModuleLeaf module)
Parameters
moduleTestModuleLeaf
UpdateModuleVariableName()
public void UpdateModuleVariableName()