Class
Test

Defines a test test that contains several automation step. Handles the load/save of these tests too.

Definition

Namespace:ArtOfTest.WebAii.Design.ProjectModel

Assembly:ArtOfTest.WebAii.Design.dll

Syntax:

cs-api-definition
[DataContract(Name = "WebAiiTest", Namespace = "http://artoftest.com/schemas/WebAiiDesignCanvas/3.0.0")]
[KnownType(typeof(TestBase))]
[KnownType(typeof(CustomizableDataTable))]
public class Test : TestBase, INotifyPropertyChanged, IDataTransport, IExtensibleDataObject, ICloudDispatchableFactory

Inheritance: objectTestBaseTest

Implements: ICloudDispatchableFactoryIDataTransportIExtensibleDataObjectINotifyPropertyChanged

Inherited Members TestBase._testLinksTestBase.GetFullPath()TestBase.GetFullPath(Project)TestBase.OnTestChanged()TestBase.OnPropertyChanged(string)TestBase.CustomProperty1TestBase.CustomProperty2TestBase.CustomProperty3TestBase.TestLinksTestBase.DataInfoTestBase.IsDataDrivenTestBase.DataEnabledTestBase.DataRangeTestBase.DataTypeTestBase.SourceTestBase.DescriptionTestBase.NameTestBase.OwnerTestBase.PathTestBase.PriorityTestBase.TestTypeTestBase.UniqueIdTestBase.IdTestBase.ProjectIdTestBase.FireTestChangedTestBase.TestViewTestBase.TestChangedTestBase.PropertyChanged

Constructors

Test()

Empty Constructor - (For Serialization)

Declaration

cs-api-definition
public Test()

Fields

ALL_FILE_EXTENSIONS

Declaration

cs-api-definition
public static readonly string[] ALL_FILE_EXTENSIONS

Field Value

string[]

FILE_EXTENSION

Declaration

cs-api-definition
public const string FILE_EXTENSION = ".tstest"

Field Value

string

IMAGE_STORE_EXTENSION

Declaration

cs-api-definition
public const string IMAGE_STORE_EXTENSION = ".imgstore"

Field Value

string

LEGACY_FILE_EXTENSION

Declaration

cs-api-definition
public const string LEGACY_FILE_EXTENSION = ".aii"

Field Value

string

PERF_CONFIG_FILE_EXTENSION

Declaration

cs-api-definition
public const string PERF_CONFIG_FILE_EXTENSION = ".tsprofconfig"

Field Value

string

PERF_DEFAULT_CONFIG_SUBFOLDER

Declaration

cs-api-definition
public const string PERF_DEFAULT_CONFIG_SUBFOLDER = "Profiler Configurations"

Field Value

string

PERF_RESULTS_FILE_EXTENSION

Declaration

cs-api-definition
public const string PERF_RESULTS_FILE_EXTENSION = ".tsperf"

Field Value

string

RESOURCE_FILE_EXTENSION

Declaration

cs-api-definition
public const string RESOURCE_FILE_EXTENSION = ".resx"

Field Value

string

Properties

AppStartArgs

Declaration

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

Property Value

string

AppStartSkip

Declaration

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

Property Value

bool

AppWorkingFolder

Declaration

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

Property Value

string

BrowserType

Gets or sets the browser the test executes on. Overrides the Settings.DefaultBrowser.

Declaration

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

Property Value

BrowserExecutionType

CurrentReferences

Declaration

cs-api-definition
[Browsable(false)]
[DataMember]
public AssemblyReferenceCollection CurrentReferences { get; }

Property Value

AssemblyReferenceCollection

DefaultProfilerConfigurationFileName

Declaration

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

Property Value

string

DefaultToGrid

Declaration

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

Property Value

bool

DesktopAppPath

Declaration

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

Property Value

string

DisableDialogMonitoring

Declaration

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

Property Value

bool

ExtensionData

Declaration

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

Property Value

ExtensionDataObject

Implements IExtensibleDataObject.ExtensionData

HasBuiltInGrid

Declaration

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

Property Value

bool

HasCodeBehind

Declaration

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

Property Value

bool

HtmlDescription

The HTML description of this test

Declaration

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

Property Value

string

IndependentDescriptors

Gets pr sets the list of independent descriptors

Declaration

cs-api-definition
[Browsable(false)]
[DataMember(Name = "IndependentDescriptors")]
public List<ElementDescriptor> IndependentDescriptors { get; set; }

Property Value

List<ElementDescriptor>

InheritParentDataSource

Gets or sets whether the data-driven sub test (TestAsStep) should inherit the data source from its parent test.

Declaration

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

Property Value

bool

IsSilverlightApp

Declaration

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

Property Value

bool

IsUILoaded

Gets or sets whether this test is loading.

Declaration

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

Property Value

bool

ProfilerBenchmarkResultsFilePath

Declaration

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

Property Value

string

ProfilerBenchmarkResultsId

Declaration

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

Property Value

Guid

ProfilerConfigurationFilePath

Declaration

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

Property Value

string

ProfilerConfigurationFolderPath

Declaration

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

Property Value

string

ProfilerConfigurationId

Declaration

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

Property Value

Guid

ProfilerResultsDirectory

Declaration

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

Property Value

string

Project

Gets the project owned by this test

Declaration

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

Property Value

Project

Overrides TestBase.Project

ReuseAppWindow

Declaration

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

Property Value

int

SilverlightAppLocalDirectory

Declaration

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

Property Value

string

SilverlightAppOriginUri

Declaration

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

Property Value

string

SilverlightAppRecordLocal

Declaration

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

Property Value

bool

SilverlightAppWebUrl

Declaration

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

Property Value

string

SilverlightEnabled

Declaration

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

Property Value

bool

Steps

List of automation steps of this test

Declaration

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

Property Value

AutomationStepList

StopTestListOnFailure

Gets or sets whether to stop test list execution if the test fails.

Declaration

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

Property Value

bool

UseDefaultDesktopAppPath

Declaration

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

Property Value

bool

UseDefaultWpfAppPath

Declaration

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

Property Value

bool

WebKitExecutionDelay

Declaration

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

Property Value

int

WpfAppPath

Declaration

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

Property Value

string

Methods

CreateCloudDispatchable(string)

Declaration

cs-api-definition
public ICloudDispatchableTest CreateCloudDispatchable(string pathToProjectFileDirectory)

Parameters

pathToProjectFileDirectory

string

Returns

ICloudDispatchableTest

Implements ICloudDispatchableFactory.CreateCloudDispatchable(string)

LoadProfilerConfiguration()

Loads the current independent profiler configuration file specified in this test, or otherwise converts V1 profiler configuration to the independent file format.

Declaration

cs-api-definition
public ProfilerMetadataConfigurationSet LoadProfilerConfiguration()

Returns

ProfilerMetadataConfigurationSet

NeedToCompile(string)

Declaration

cs-api-definition
public bool NeedToCompile(string projectDllPath = "")

Parameters

projectDllPath

string

Returns

bool

SaveResources(bool)

Declaration

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

Parameters

clearResources

bool

Overrides TestBase.SaveResources(bool)

ToString()

Overridden ToString

Declaration

cs-api-definition
public override string ToString()

Returns

string

Name of test

Overrides object.ToString()