Table of Contents

Class TestModuleAttribute

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

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

guid string

The Guid.

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

guid string

The Guid.

moduleType ModuleType

The type of module.

TestModuleAttribute(string, ModuleType, int)

Creates a new TestModuleAttribute instance.

public TestModuleAttribute(string guid, ModuleType moduleType, int iterationCount)

Parameters

guid string

The Guid.

moduleType ModuleType

The type of module.

iterationCount int

The 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

int

ModuleType

Gets or sets the type of the module.

public ModuleType ModuleType { get; }

Property Value

ModuleType