Class
Project

Project object.

Definition

Namespace:ArtOfTest.WebAii.Design.ProjectModel

Assembly:ArtOfTest.WebAii.Design.dll

Syntax:

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

Inheritance: objectProject

Implements: IDataTransportINotifyPropertyChanged

Constructors

Project()

Declaration

cs-api-definition
public Project()

Project(IUIProject, string, string, string)

New Project Constructor

Declaration

cs-api-definition
public Project(IUIProject host, string location, string vsProjectPath, string vsProjectLanguage)

Parameters

host

IUIProject

location

string

Folder containing the project.

vsProjectPath

string

The path to the .*proj file

vsProjectLanguage

string

Project(string)

Declaration

cs-api-definition
public Project(string rootPath)

Parameters

rootPath

string

Fields

PROJECTVERSION

The project version

Declaration

cs-api-definition
public const string PROJECTVERSION = "2025.4.920.0"

Field Value

string

PagesDetection

Used for looking through a code behind file to determine if it contains a Pages class

Declaration

cs-api-definition
public static Regex PagesDetection

Field Value

Regex

WUTSTargets

Custom pre-compile targets

Declaration

cs-api-definition
public const string WUTSTargets = "$(MSBuildExtensionsPath)\\Telerik\\WebUITestStudio\\Telerik.WebUITestStudio.targets"

Field Value

string

Properties

DataManager

Declaration

cs-api-definition
public ProjectDataManager DataManager { get; }

Property Value

ProjectDataManager

Id

Declaration

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

Property Value

Guid

IsDirty

Indicates whether or not the VS Project we are extending has changed and should be written out to disk.

Declaration

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

Property Value

bool

LightTests

List of all tests in the project

Declaration

cs-api-definition
[Browsable(false)]
public ReadOnlyCollection<LightTest> LightTests { get; }

Property Value

ReadOnlyCollection<LightTest>

LoadedTests

List of all loaded tests in the project

Declaration

cs-api-definition
[Browsable(false)]
public ReadOnlyCollection<TestBase> LoadedTests { get; }

Property Value

ReadOnlyCollection<TestBase>

Name

The name of the project

Declaration

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

Property Value

string

ProjectFileFullPath

Gets the fully resolved path of the project file including the filename

Declaration

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

Property Value

string

ProjectFullPath

Gets the fully resolved path to the project directory (where the .xproj exists)

Declaration

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

Property Value

string

ProjectGuid

The project's unique identifier

Declaration

cs-api-definition
public Guid ProjectGuid { get; }

Property Value

Guid

ProjectLanguage

Get the project language.

Declaration

cs-api-definition
public CodeGenerationLanguage ProjectLanguage { get; }

Property Value

CodeGenerationLanguage

ProjectRelativePath

The location of the project

Declaration

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

Property Value

string

SolutionPath

Full path to solution folder owning this project

Declaration

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

Property Value

string

TestNames

List of all test names and paths

Declaration

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

Property Value

List<string>

Upgraded

Whether the project has been upgraded

Declaration

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

Property Value

bool

UserSettings

User Specific Settings

Declaration

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

Property Value

UserSettings

Version

Project file version

Declaration

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

Property Value

string

VsProjectLanguage

Language of VS Project

Declaration

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

Property Value

string

VsProjectPath

Path to VS Project .xproj file

Declaration

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

Property Value

string

Methods

FireTaskLoggingEvent(string)

During an msbuild task event, this method will log a message to the task's output

Declaration

cs-api-definition
public static void FireTaskLoggingEvent(string message)

Parameters

message

string

GetCodeFiles(bool)

Declaration

cs-api-definition
public List<string> GetCodeFiles(bool skipInDevelopmentFiles = true)

Parameters

skipInDevelopmentFiles

bool

Returns

List<string>

GetFullPath(string, Test)

Returns the full path given a relative project path

Declaration

cs-api-definition
public static string GetFullPath(string relativePath, Test test)

Parameters

relativePath

string

test

Test

Returns

string

GetProjectFolder()

Declaration

cs-api-definition
public string GetProjectFolder()

Returns

string

GetProjectFromTestPath(string)

Gets project by test path.

Declaration

cs-api-definition
public static Project GetProjectFromTestPath(string fullTestPath)

Parameters

fullTestPath

string

Returns

Project

GetRelativePath(string, string)

Return the relative path given the project's full path.

Declaration

cs-api-definition
public static string GetRelativePath(string fullPath, string projectFullPath)

Parameters

fullPath

string

The full path to use

projectFullPath

string

The project's full path.

Returns

string

InitEvents(IUIProject)

Initialize project events.

Declaration

cs-api-definition
public void InitEvents(IUIProject host)

Parameters

host

IUIProject

OnPropertyChanged(string)

Declaration

cs-api-definition
protected void OnPropertyChanged(string propName)

Parameters

propName

string

RenameProject(string, string)

Rename this project

Declaration

cs-api-definition
public void RenameProject(string oldPath, string newPath)

Parameters

oldPath

string

newPath

string

SaveTest(TestBase, out string)

Declaration

cs-api-definition
public bool SaveTest(TestBase test, out string error)

Parameters

test

TestBase

error

string

Returns

bool

Events

PropertyChanged

Declaration

cs-api-definition
public event PropertyChangedEventHandler PropertyChanged

Event Value

PropertyChangedEventHandler

Implements INotifyPropertyChanged.PropertyChanged

TaskLoggingEvent

Declaration

cs-api-definition
public static event EventHandler<TaskLoggingEventArgs> TaskLoggingEvent

Event Value

EventHandler<TaskLoggingEventArgs>