TestCollection Class

Represents a collection of available TestGroups and their TestFunctions. The collection can also be used to specify which tests should be run and how many times.

Namespace: XJTAG.Integration.XJRunner

Syntax

public class TestCollection : IEnumerable<TestGroup>

Remarks

The TestCollection can be constructed to encapsulate a single TestGroup or instances representing all the tests in a project can be obtained from the GetTestList method.

The TestCollection provides a way to run multiple TestFunctions in one test run. To define which tests will be run, assign values to the Loops property of the ITestItems within the collection, or set the LoopContinuously property.

Inheritance Hierarchy

  • object
  • IEnumerable<TestGroup>
    • IEnumerable

Members

Constructors

Name Description
TestCollection

Initialises a new instance of the TestCollection class with a single TestGroup. The collection contains just the specified TestGroup set to run once with its TestFunctions set to run once.

Indexers

Name Description
TestGroup this[int]

Gets the TestGroup with the specified test index.

TestGroup this[string]

Gets the TestGroup with the specified test group name.

Properties

Name Description
Conditions

Gets a collection of Conditions used in the test list.

GroupCount

Gets the number of test groups in this test collection.

Methods

Name Description
DeSelectAll

Sets all TestGroups in the collection not to run.

DeSelectTest

Sets the specified TestFunction not to run.

DeSelectTestGroup(int)

Sets the specified TestGroup not to run.

DeSelectTestGroup(string)

Sets the specified TestGroup not to run.

Equals(object) (from object)
Finalize (from object)
GetEnumerator

Returns an enumerator that iterates through the TestGroups in the collection.

GetHashCode (from object)
GetType (from object)
MemberwiseClone (from object)
SelectAllToRun

Selects all TestGroups and TestFunctions to run once.

SelectTest

Sets the specified TestFunction to run once.

SelectTestGroup(int)

Sets the specified TestGroup to run once.

SelectTestGroup(string)

Sets the specified TestGroup to run once.

TestFunctionAtIndex

Gets the TestFunction with the specified function index in the TestGroup with the specified test index.

TestFunctionByName

Gets the TestFunction with the specified name in the TestGroup with the specified test group name.

TestGroupAtIndex

Gets the TestGroup with the specified test index.

TestGroupByName

Gets the TestGroup with the specified name.

TestItemAtIndex

Gets the ITestItem at the specified row when the TestGroups and TestFunctions are flattened into a single list.

ToString (from object)