Class TestModuleAttribute
Use to mark a class as a Ranorex test module. The marked class needs to implement the ITestModule interface.
[AttributeUsage(AttributeTargets.Class)]
public class TestModuleAttribute : Attribute, _Attribute
- Inheritance
-
TestModuleAttribute
- Implements
- Inherited Members
Constructors
TestModuleAttribute(string)
Creates a new TestModuleAttribute instance of type UserCode. The iterationCount is set to default of 1 to run the module once.
public TestModuleAttribute(string guid)
Parameters
TestModuleAttribute(string, ModuleType)
Creates a new TestModuleAttribute instance. The iterationCount is set to default of 1 to run the module once.
public TestModuleAttribute(string guid, ModuleType moduleType)
Parameters
guidstringThe Guid.
moduleTypeModuleTypeThe type of module.
TestModuleAttribute(string, ModuleType, int)
Creates a new TestModuleAttribute instance.
public TestModuleAttribute(string guid, ModuleType moduleType, int iterationCount)
Parameters
guidstringThe Guid.
moduleTypeModuleTypeThe type of module.
iterationCountintThe number of times to run the module.
Properties
Guid
The unique ID of the test module.
public CaseInsensitiveString Guid { get; }
Property Value
- CaseInsensitiveString
IterationCount
Gets or sets the iteration count.
public int IterationCount { get; }
Property Value
ModuleType
Gets or sets the type of the module.
public ModuleType ModuleType { get; }