Class
TestBase

Definition

Namespace:ArtOfTest.Common.Design.ProjectModel

Assembly:ArtOfTest.WebAii.Design.dll

Syntax:

cs-api-definition
[DataContract(Namespace = "http://artoftest.com/schemas/WebAiiDesignCanvas/3.0.0")]
public abstract class TestBase : IExtensibleDataObject, INotifyPropertyChanged, IDataTransport

Inheritance: objectTestBase

Derived Classes: Test

Implements: IDataTransportIExtensibleDataObjectINotifyPropertyChanged

Constructors

TestBase()

Declaration

cs-api-definition
protected TestBase()

Fields

Declaration

cs-api-definition
protected ObservableCollection<TestLinkBase> _testLinks

Field Value

ObservableCollection<TestLinkBase>

Properties

CustomProperty1

Declaration

cs-api-definition
[DataMember(Name = "CustomProperty1", IsRequired = false, EmitDefaultValue = false)]
public string CustomProperty1 { get; set; }

Property Value

string

CustomProperty2

Declaration

cs-api-definition
[DataMember(Name = "CustomProperty2", IsRequired = false, EmitDefaultValue = false)]
public string CustomProperty2 { get; set; }

Property Value

string

CustomProperty3

Declaration

cs-api-definition
[DataMember(Name = "CustomProperty3", IsRequired = false, EmitDefaultValue = false)]
public string CustomProperty3 { get; set; }

Property Value

string

DataEnabled

Gets whether the data is enabled

Declaration

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

Property Value

bool

DataInfo

Gets or sets the data source information if this test is data driven (IsDataDriven=true)

Declaration

cs-api-definition
[DataMember(Name = "DataInfo")]
[Browsable(false)]
public DataInfo DataInfo { get; set; }

Property Value

DataInfo

DataRange

Declaration

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

Property Value

string

DataType

Declaration

cs-api-definition
public TestDataType DataType { get; }

Property Value

TestDataType

Description

Description of this test

Declaration

cs-api-definition
[DataMember(Name = "Description")]
public string Description { get; set; }

Property Value

string

FireTestChanged

Flag to indicate whether to fire the test changed event

Declaration

cs-api-definition
protected bool FireTestChanged { get; set; }

Property Value

bool

Id

Declaration

cs-api-definition
[Browsable(false)]
[DataMember(Name = "Id", IsRequired = false)]
public Guid Id { get; set; }

Property Value

Guid

IsDataDriven

Gets whether this test is data driven.

Declaration

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

Property Value

bool

Name

The ID of this test

Declaration

cs-api-definition
[DataMember]
public string Name { get; set; }

Property Value

string

Owner

Gets or sets the owner of this test case

Declaration

cs-api-definition
[DataMember(Name = "Owner", IsRequired = false)]
public string Owner { get; set; }

Property Value

string

Path

The test file path relative to the project.

Declaration

cs-api-definition
[DataMember(Name = "Path")]
public string Path { get; set; }

Property Value

string

Priority

Gets or sets the priority of this test case

Declaration

cs-api-definition
[DataMember(Name = "Priority", IsRequired = false)]
public int Priority { get; set; }

Property Value

int

Project

Gets the project owned by this test

Declaration

cs-api-definition
protected virtual Project Project { get; set; }

Property Value

Project

ProjectId

Declaration

cs-api-definition
[Browsable(false)]
[DataMember(Name = "ProjectId", IsRequired = false)]
public Guid ProjectId { get; set; }

Property Value

Guid

Source

Declaration

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

Property Value

string

Declaration

cs-api-definition
[Browsable(false)]
[DataMember]
public ObservableCollection<TestLinkBase> TestLinks { get; }

Property Value

ObservableCollection<TestLinkBase>

TestType

Declaration

cs-api-definition
[Browsable(false)]
[DataMember(Name = "TestType", IsRequired = false)]
public TestType TestType { get; set; }

Property Value

TestType

TestView

Declaration

cs-api-definition
[Browsable(false)]
protected ITestExplorerView TestView { get; set; }

Property Value

ITestExplorerView

UniqueId

Declaration

cs-api-definition
[Browsable(true)]
[DataMember(Name = "UniqueId", IsRequired = false)]
public Guid UniqueId { get; }

Property Value

Guid

Methods

GetFullPath()

Declaration

cs-api-definition
protected string GetFullPath()

Returns

string

GetFullPath(Project)

Declaration

cs-api-definition
protected string GetFullPath(Project project)

Parameters

project

Project

Returns

string

OnPropertyChanged(string)

Declaration

cs-api-definition
protected virtual void OnPropertyChanged(string propertyName)

Parameters

propertyName

string

OnTestChanged()

Declaration

cs-api-definition
protected void OnTestChanged()

SaveResources(bool)

Declaration

cs-api-definition
public abstract void SaveResources(bool clearResources)

Parameters

clearResources

bool

Events

PropertyChanged

Declaration

cs-api-definition
public event PropertyChangedEventHandler PropertyChanged

Event Value

PropertyChangedEventHandler

Implements INotifyPropertyChanged.PropertyChanged

TestChanged

Declaration

cs-api-definition
public event EventHandler TestChanged

Event Value

EventHandler

Extension Methods