Class
TestList

Definition

Namespace:ArtOfTest.WebAii.Design.Execution

Assembly:ArtOfTest.WebAii.Design.dll

Syntax:

cs-api-definition
public class TestList : INotifyPropertyChanged, IDataTransport

Inheritance: objectTestList

Implements: IDataTransportINotifyPropertyChanged

Constructors

TestList()

An empty constuctor for serialization.

Declaration

cs-api-definition
public TestList()

TestList(string, string, Filter)

The TestList object constructor initializing the tests by the list of filters. Adds an automated test list for backwards compatibility.

Declaration

cs-api-definition
public TestList(string name, string ownerName, Filter filter)

Parameters

name

string

The friendly name of the test list instance.

ownerName

string

The owner name of the test list instance.

filter

Filter

The test filter to be applied on retrieving the tests.

TestList(string, string, Filter, TestListType)

The TestList object constructor initializing the tests by the list of filters.

Declaration

cs-api-definition
public TestList(string name, string ownerName, Filter filter, TestListType type)

Parameters

name

string

The friendly name of the test list instance.

ownerName

string

The owner name of the test list instance.

filter

Filter

The test filter to be applied on retrieving the tests.

type

TestListType

The test list type.

TestList(string, string, Filter, TestListType, UserSettings)

Create a TestList without tests.

Declaration

cs-api-definition
public TestList(string name, string owner, Filter filter, TestListType type, UserSettings userSettings)

Parameters

name

string

The test list name.

owner

string

The owner.

filter

Filter

The test filter to be applied on retrieving the tests.

type

TestListType

The test list type.

userSettings

UserSettings

The user settings of the project

TestList(string, string, List<TestInfo>)

The TestList object constructor initializing the flat list of test paths. Adds an automated test list for backwards compatibility.

Declaration

cs-api-definition
public TestList(string name, string ownerName, List<TestInfo> tests)

Parameters

name

string

The friendly name of the test list instance.

ownerName

string

The owner name of the test list instance.

tests

List<TestInfo>

The list of tests represented by their test path.

TestList(string, string, List<TestInfo>, TestListType)

The TestList object constructor initializing the flat list of test paths.

Declaration

cs-api-definition
public TestList(string name, string ownerName, List<TestInfo> tests, TestListType type)

Parameters

name

string

The friendly name of the test list instance.

ownerName

string

The owner name of the test list instance.

tests

List<TestInfo>

The list of tests represented by their test path.

type

TestListType

The test list type.

TestList(string, string, TestListType)

Create a TestList without tests.

Declaration

cs-api-definition
public TestList(string name, string owner, TestListType type)

Parameters

name

string

The test list name.

owner

string

The owner.

type

TestListType

The test list type.

Fields

LISTS_FOLDER_NAME

Declaration

cs-api-definition
public const string LISTS_FOLDER_NAME = "TestLists"

Field Value

string

LIST_FILE_EXTENSION

Declaration

cs-api-definition
public const string LIST_FILE_EXTENSION = ".aiilist"

Field Value

string

Properties

CloudStorageCredentials

Used to retrieve the list of tests from the project (from which to filter dynamic lists from)

Declaration

cs-api-definition
[Browsable(false)]
public CloudStorageCredentials CloudStorageCredentials { get; set; }

Property Value

CloudStorageCredentials

CreationDate

Gets the date of creation of the run object.

Declaration

cs-api-definition
public DateTime CreationDate { get; }

Property Value

DateTime

Filter

Gets the test filter to retrieve the tests by.

Declaration

cs-api-definition
[Browsable(false)]
public Filter Filter { get; set; }

Property Value

Filter

Id

Declaration

cs-api-definition
[Browsable(false)]
public Guid Id { get; set; }

Property Value

Guid

IsDynamic

Get whether a filter stands behind the test list and is applied to all the tests in the project.

Declaration

cs-api-definition
public bool IsDynamic { get; }

Property Value

bool

IsProfilingExecution

This property is exposed for databinding because Settings and .WebSettings don't implement INotifyPropertyChanged.

Declaration

cs-api-definition
public bool IsProfilingExecution { get; set; }

Property Value

bool

ListType

Declaration

cs-api-definition
[Browsable(false)]
public TestListType ListType { get; set; }

Property Value

TestListType

OwnerName

Gets the owner name of the Run object.

Declaration

cs-api-definition
public string OwnerName { get; set; }

Property Value

string

ProjectId

Declaration

cs-api-definition
[Browsable(false)]
public Guid ProjectId { get; set; }

Property Value

Guid

ProjectPath

Declaration

cs-api-definition
[Browsable(false)]
public string ProjectPath { get; set; }

Property Value

string

Settings

Gets or sets the settings associated with the TestList object.

Declaration

cs-api-definition
[Browsable(false)]
public Settings Settings { get; set; }

Property Value

Settings

TestListId

Gets the unique Id of the TestList object.

Declaration

cs-api-definition
[Browsable(false)]
public string TestListId { get; }

Property Value

string

TestListName

Gets the friendly name of the TestList object.

Declaration

cs-api-definition
public string TestListName { get; }

Property Value

string

Tests

This retrieves the filtered list of tests. For a non-dynamic test list, it just returns the static list of tests.

Declaration

cs-api-definition
[Browsable(false)]
public List<TestInfo> Tests { get; }

Property Value

List<TestInfo>

Methods

Clone(string)

Clones the TestList instance.

Declaration

cs-api-definition
public TestList Clone(string newName)

Parameters

newName

string

The cloned test list name.

Returns

TestList

Cloned the TestList instance.

GetProjectRootPath(string)

Get the project root path from the given list full path.

Declaration

cs-api-definition
public static string GetProjectRootPath(string aiiListFullPath)

Parameters

aiiListFullPath

string

The path to the .aiilist file.

Returns

string

The project root path from the given list full path.

LoadFromFile(string)

Loads the TestList object from the file with given path.

Declaration

cs-api-definition
public static TestList LoadFromFile(string aiiListFilePath)

Parameters

aiiListFilePath

string

The full path to the file.

Returns

TestList

The test list saved in that file.

SaveToListFile(string)

Create the list file from the current test list object.

Declaration

cs-api-definition
public string SaveToListFile(string projectRootPath)

Parameters

projectRootPath

string

The root path of the project.

Returns

string

The path of the list file.

Remarks

Replaces the old list file if any.

Events

PropertyChanged

Declaration

cs-api-definition
public event PropertyChangedEventHandler PropertyChanged

Event Value

PropertyChangedEventHandler

Implements INotifyPropertyChanged.PropertyChanged