Table of Contents

Class TestSuiteRunConfig

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

Represents a test suite run configuration.

public class TestSuiteRunConfig : IComparable<TestSuiteRunConfig>
Inheritance
TestSuiteRunConfig
Implements
Inherited Members

Constructors

TestSuiteRunConfig(XmlNode, TestSuite)

Initializes a new instance of the TestSuiteRunConfig class.

public TestSuiteRunConfig(XmlNode node, TestSuite testSuite)

Parameters

node XmlNode

An XML node containing the definition of this run configuration.

testSuite TestSuite

The test suite.

TestSuiteRunConfig(string, TestSuite)

Initializes a new instance of the TestSuiteRunConfig class.

public TestSuiteRunConfig(string name, TestSuite testSuite)

Parameters

name string

The name of the run configuration.

testSuite TestSuite

The test suite.

Properties

Name

Gets or sets the run configuration name.

public string Name { get; set; }

Property Value

string

The run configuration name.

TestContainers

Gets the run configuration test containers.

public SortedList<CaseInsensitiveString, CaseInsensitiveString> TestContainers { get; }

Property Value

SortedList<CaseInsensitiveString, CaseInsensitiveString>

The run configuration test containers.

Methods

AddTestContainer(CaseInsensitiveString)

Adds a test container to the run configuration.

public void AddTestContainer(CaseInsensitiveString testContainerId)

Parameters

testContainerId CaseInsensitiveString

The test container id.

CompareTo(TestSuiteRunConfig)

Compares the current TestSuiteRunConfig with another TestSuiteRunConfig.

public int CompareTo(TestSuiteRunConfig other)

Parameters

other TestSuiteRunConfig

An TestSuiteRunConfig to compare with this object.

Returns

int

A 32-bit signed integer that indicates the relative order of the objects being compared. The sorting is ascending by name. The return value has the following meanings: Value Meaning Less than zero This TestSuiteRunConfig is less than the other parameter. Zero This TestSuiteRunConfig is equal to other. Greater than zero This TestSuiteRunConfig is greater than other.

ContainsActiveTestContainer(ITestContainer)

Determines whether this run configuration contains a ITestContainer with the specified testContainer.

public bool ContainsActiveTestContainer(ITestContainer testContainer)

Parameters

testContainer ITestContainer

The test container.

Returns

bool

true if this run configuration contains a ITestContainer with the specified testContainer; otherwise, false.

CreateCopy()

Creates a deep copy of this run configuration.

public TestSuiteRunConfig CreateCopy()

Returns

TestSuiteRunConfig

A new run configuration that is a copy of this run configuration.

GetActiveTestContainers()

Gets all run configuration test containers which are actually in the test suite run configeration.

public IList<ITestContainer> GetActiveTestContainers()

Returns

IList<ITestContainer>

A list containing the active test containers.

GetRunConfigFixName(string)

Gets a valid run configuration name.

public static string GetRunConfigFixName(string name)

Parameters

name string

The run configuration name to fix.

Returns

string

The valid run configuration name

GetXMLNode(XmlNode)

Gets an XML node containing the definition of this run configuration.

public XmlNode GetXMLNode(XmlNode parent)

Parameters

parent XmlNode

The parent XML node.

Returns

XmlNode

An XML node containing the definition of this run configuration.

RefreshCheckStates()

Refreshes the run configuration check states.

public void RefreshCheckStates()

ToString()

Returns a string that represents the name of this instance.

public override string ToString()

Returns

string

A string that represents the name of this instance.