Class
StandaloneHost

Class representing the standalone host including the project interfaces

Definition

Namespace:ArtOfTest.WebAii.Design.ProjectModel

Assembly:ArtOfTest.WebAii.Design.dll

Syntax:

cs-api-definition
public class StandaloneHost : IUIProject

Inheritance: objectStandaloneHost

Implements: IUIProject

Constructors

StandaloneHost()

Create the host.

Declaration

cs-api-definition
public StandaloneHost()

StandaloneHost(bool)

Create the host.

Declaration

cs-api-definition
public StandaloneHost(bool fullHost)

Parameters

fullHost

bool

Properties

AppContainer

Declaration

cs-api-definition
public IContainer AppContainer { get; }

Property Value

IContainer

AreResultsLoaded

Declaration

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

Property Value

bool

CodeService

The code service for compilation/parsing

Declaration

cs-api-definition
public ICodeService CodeService { get; }

Property Value

ICodeService

Implements IUIProject.CodeService

CommandLineRun

Declaration

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

Property Value

bool

ContainerBuilder

Declaration

cs-api-definition
public ContainerBuilder ContainerBuilder { get; }

Property Value

ContainerBuilder

ElementsExplorer

Declaration

cs-api-definition
public IElementsExplorer ElementsExplorer { get; set; }

Property Value

IElementsExplorer

Implements IUIProject.ElementsExplorer

InteractionService

Declaration

cs-api-definition
public IUserInteractionService InteractionService { get; }

Property Value

IUserInteractionService

Implements IUIProject.InteractionService

IsStarted

Indicates whether the host is started.

Declaration

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

Property Value

bool

OwnerWindow

Declaration

cs-api-definition
public Window OwnerWindow { get; set; }

Property Value

Window

PersistOnEachStep

Declaration

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

Property Value

bool

ResultViewer

Declaration

cs-api-definition
public ResultsViewerControl ResultViewer { get; set; }

Property Value

ResultsViewerControl

ScopedContainer

Declaration

cs-api-definition
public ILifetimeScope ScopedContainer { get; }

Property Value

ILifetimeScope

Implements IUIProject.ScopedContainer

SelectedProject

Gets the currently selected project, or null if no project is selected

Declaration

cs-api-definition
public Project SelectedProject { get; }

Property Value

Project

Implements IUIProject.SelectedProject

TestListsController

Declaration

cs-api-definition
public TestListsExplorerController TestListsController { get; set; }

Property Value

TestListsExplorerController

UIInteraction

Declaration

cs-api-definition
public IHostInteraction UIInteraction { get; }

Property Value

IHostInteraction

Implements IUIProject.UIInteraction

Methods

AddCodedFunction(Test, AutomationStep, string, bool)

Add a coded function to the test.

Declaration

cs-api-definition
public void AddCodedFunction(Test test, AutomationStep step, string functionContent, bool positionCodedStep)

Parameters

test

Test

The test

step

AutomationStep

The test to add the function for

functionContent

string

The code to add

positionCodedStep

bool

Implements IUIProject.AddCodedFunction(Test, AutomationStep, string, bool)

AddFile(string)

Adds a file to the project. The file should already exist on disk under the project root.

Declaration

cs-api-definition
public void AddFile(string location)

Parameters

location

string

The full path to the file

Implements IUIProject.AddFile(string)

AddProjectReference(Project, string)

Add a project reference to a certain assembly

Declaration

cs-api-definition
public void AddProjectReference(Project project, string assemblyFullName)

Parameters

project

Project

The project to add reference to.

assemblyFullName

string

The full assembly name

Implements IUIProject.AddProjectReference(Project, string)

AssignCodeService(ICodeService)

Assign the code service provider

Declaration

cs-api-definition
public void AssignCodeService(ICodeService codeService)

Parameters

codeService

ICodeService

Implements IUIProject.AssignCodeService(ICodeService)

AssignHostInteraction(IHostInteraction)

Assign the interaction interface to this project

Declaration

cs-api-definition
public void AssignHostInteraction(IHostInteraction hostInteraction)

Parameters

hostInteraction

IHostInteraction

Implements IUIProject.AssignHostInteraction(IHostInteraction)

BuildProject(Project, bool)

Compile the project

Declaration

cs-api-definition
public CompilerResults BuildProject(Project project, bool skipInDevelopment)

Parameters

project

Project

skipInDevelopment

bool

Returns

CompilerResults

Implements IUIProject.BuildProject(Project, bool)

BuildProjectAsync(Project, bool)

Declaration

cs-api-definition
public Task<CompilerResults> BuildProjectAsync(Project project, bool skipInDevelopment)

Parameters

project

Project

skipInDevelopment

bool

Returns

Task<CompilerResults>

CreateTest(string, Test)

Declaration

cs-api-definition
public Test CreateTest(string path, Test sourceTest)

Parameters

path

string

sourceTest

Test

Returns

Test

Implements IUIProject.CreateTest(string, Test)

DisplayLanguageSelector(Project)

Display a dialog where the user selects the language of a project

Declaration

cs-api-definition
public bool DisplayLanguageSelector(Project project)

Parameters

project

Project

Returns

bool

Implements IUIProject.DisplayLanguageSelector(Project)

GetCodedFunctions(Test, out string)

Declaration

cs-api-definition
public List<string> GetCodedFunctions(Test test, out string parsingError)

Parameters

test

Test

parsingError

string

Returns

List<string>

Implements IUIProject.GetCodedFunctions(Test, out string)

GetDefaultNewProjectName()

Get a default new project name

Declaration

cs-api-definition
public string GetDefaultNewProjectName()

Returns

string

GetDefaultProjectLocation()

Return default location where project will be created

Declaration

cs-api-definition
public string GetDefaultProjectLocation()

Returns

string

GetKnownProjectFolderFileTypesToIgnore()

Declaration

cs-api-definition
public static string[] GetKnownProjectFolderFileTypesToIgnore()

Returns

string[]

GetOutputFileName(string)

Gets the output file name for a certain project. TODO:// Why do we need to pass in a testpath? Why not a project object?

Declaration

cs-api-definition
public string GetOutputFileName(string testPath)

Parameters

testPath

string

Returns

string

Implements IUIProject.GetOutputFileName(string)

GetOutputFolder(string)

Gets the output directory given a test. TODO:// Why do we need to pass in a testpath? Why not a project object?

Declaration

cs-api-definition
public string GetOutputFolder(string testPath)

Parameters

testPath

string

Returns

string

Implements IUIProject.GetOutputFolder(string)

GetProjectScope(string)

Declaration

cs-api-definition
public ILifetimeScope GetProjectScope(string projectPath)

Parameters

projectPath

string

Returns

ILifetimeScope

Implements IUIProject.GetProjectScope(string)

GetSpecialFolder(Project, SpecialFolders)

Get the location of a specific special folder as defined by the enum

Declaration

cs-api-definition
public string GetSpecialFolder(Project project, SpecialFolders folder)

Parameters

project

Project

folder

SpecialFolders

The special folder to get.

Returns

string

The full path to the folder.

Implements IUIProject.GetSpecialFolder(Project, SpecialFolders)

GetTestNames(Project)

Gets the full paths to all loaded tests

Declaration

cs-api-definition
public List<string> GetTestNames(Project proj)

Parameters

proj

Project

Returns

List<string>

Implements IUIProject.GetTestNames(Project)

LoadTestListsIfNone()

Declaration

cs-api-definition
public void LoadTestListsIfNone()

LogMessage(string, bool)

Log a message to the log.

Declaration

cs-api-definition
public void LogMessage(string message, bool includeTimestamp)

Parameters

message

string

The message to log

includeTimestamp

bool

Whether to include a timestamp or not

Implements IUIProject.LogMessage(string, bool)

OnProjectDirtied(string)

Notify the orchestrator that the project has changed

Declaration

cs-api-definition
public void OnProjectDirtied(string projectPath)

Parameters

projectPath

string

Implements IUIProject.OnProjectDirtied(string)

OpenTest(TestBase)

Declaration

cs-api-definition
public void OpenTest(TestBase test)

Parameters

test

TestBase

PrepareToExecuteTest(Test, bool)

Prompts the user to save a list of dirty files and saves the ones they want to save

Declaration

cs-api-definition
public bool PrepareToExecuteTest(Test test, bool doDisplayErrors = true)

Parameters

test

Test

doDisplayErrors

bool

Display errors unless this is a Web Test to capture Load data from

Returns

bool

True if the user clicks OK, false if the user clicks Cancel

Implements IUIProject.PrepareToExecuteTest(Test, bool)

PrepareToExecuteTestAsync(Test, bool)

Declaration

cs-api-definition
public Task<bool> PrepareToExecuteTestAsync(Test test, bool doDisplayErrors = true)

Parameters

test

Test

doDisplayErrors

bool

Returns

Task<bool>

Implements IUIProject.PrepareToExecuteTestAsync(Test, bool)

PromptAndSaveFiles(object)

Prompts the user to save a list of dirty files and saves the ones they want to save

Declaration

cs-api-definition
public bool PromptAndSaveFiles(object dirtyNodesObject)

Parameters

dirtyNodesObject

object

Returns

bool

True if the user clicks OK, false if the user clicks Cancel

Implements IUIProject.PromptAndSaveFiles(object)

ReBuildContainer()

Declaration

cs-api-definition
public void ReBuildContainer()

RemoveProjectReference(Project, string)

Remove a project reference to a certain assembly

Declaration

cs-api-definition
public void RemoveProjectReference(Project project, string assemblyFullName)

Parameters

project

Project

The project to remove reference from.

assemblyFullName

string

The full assembly name

Implements IUIProject.RemoveProjectReference(Project, string)

SetHostStatus(string)

Set the host status (if it has one)

Declaration

cs-api-definition
public void SetHostStatus(string text)

Parameters

text

string

The status text

Implements IUIProject.SetHostStatus(string)

SetHostStatus(string, bool)

Declaration

cs-api-definition
public void SetHostStatus(string text, bool showProgressBar)

Parameters

text

string

showProgressBar

bool

Implements IUIProject.SetHostStatus(string, bool)

ShowTestCodeFile(Test, IStepViewModel)

Show the code file for the passed in test

Declaration

cs-api-definition
public void ShowTestCodeFile(Test test, IStepViewModel step)

Parameters

test

Test

The test to show the code file for.

step

IStepViewModel

If not null, the navigate to that coded step

Implements IUIProject.ShowTestCodeFile(Test, IStepViewModel)

ShutDown()

Shut down the Orchestrator

Declaration

cs-api-definition
public void ShutDown()

Startup()

Start the orchestrator and associate it with this IUIProject

Declaration

cs-api-definition
public void Startup()

UpdateCodedStepContent(AutomationStep)

Declaration

cs-api-definition
public void UpdateCodedStepContent(AutomationStep automationStep)

Parameters

automationStep

AutomationStep

Implements IUIProject.UpdateCodedStepContent(AutomationStep)

Events

AllRunResultsDeleted

Declaration

cs-api-definition
public event Action AllRunResultsDeleted

Event Value

Action

BeforeLightProjectLoad

Declaration

cs-api-definition
public event Action BeforeLightProjectLoad

Event Value

Action

BranchChanged

Declaration

cs-api-definition
public event Action<string> BranchChanged

Event Value

Action<string>

CodeFileDeleted

Declaration

cs-api-definition
public event Action<LightCodeFile> CodeFileDeleted

Event Value

Action<LightCodeFile>

CodeFileExcluded

Declaration

cs-api-definition
public event Action<LightCodeFile> CodeFileExcluded

Event Value

Action<LightCodeFile>

CodeFileRenamed

Declaration

cs-api-definition
public event EventHandler<RenameEventArg> CodeFileRenamed

Event Value

EventHandler<RenameEventArg>

CodeFilesReverted

Declaration

cs-api-definition
public event Action CodeFilesReverted

Event Value

Action

CodeFolderExcluded

Declaration

cs-api-definition
public event Action<LightFolder> CodeFolderExcluded

Event Value

Action<LightFolder>

ElementsLoaded

Declaration

cs-api-definition
public event Action ElementsLoaded

Event Value

Action

LightProjectLoaded

Declaration

cs-api-definition
public event Action<Project> LightProjectLoaded

Event Value

Action<Project>

LightTestOpened

Declaration

cs-api-definition
public event Action<LightTest> LightTestOpened

Event Value

Action<LightTest>

LightTestsLoaded

Declaration

cs-api-definition
public event Action LightTestsLoaded

Event Value

Action

ProjectClosed

Project closed

Declaration

cs-api-definition
public event EventHandler<ProjectClosedEventArg> ProjectClosed

Event Value

EventHandler<ProjectClosedEventArg>

Implements IUIProject.ProjectClosed

ProjectClosing

Project closed

Declaration

cs-api-definition
public event EventHandler<ProjectClosedEventArg> ProjectClosing

Event Value

EventHandler<ProjectClosedEventArg>

Implements IUIProject.ProjectClosing

ProjectCreated

Project created

Declaration

cs-api-definition
public event EventHandler<ProjectEventArgs> ProjectCreated

Event Value

EventHandler<ProjectEventArgs>

Implements IUIProject.ProjectCreated

ProjectOpened

Project openned

Declaration

cs-api-definition
public event EventHandler<ProjectEventArgs> ProjectOpened

Event Value

EventHandler<ProjectEventArgs>

Implements IUIProject.ProjectOpened

ProjectRenamed

Project Renamed

Declaration

cs-api-definition
public event EventHandler<RenameEventArg> ProjectRenamed

Event Value

EventHandler<RenameEventArg>

Implements IUIProject.ProjectRenamed

ProjectSaved

Project is saved

Declaration

cs-api-definition
public event EventHandler<ProjectEventArgs> ProjectSaved

Event Value

EventHandler<ProjectEventArgs>

Implements IUIProject.ProjectSaved

ProjectSelected

Project is selected in a (for multi-project systems)

Declaration

cs-api-definition
public event EventHandler<ProjectEventArgs> ProjectSelected

Event Value

EventHandler<ProjectEventArgs>

Implements IUIProject.ProjectSelected

ResultChanged

Declaration

cs-api-definition
public event EventHandler<RunResultNodeEventArgs> ResultChanged

Event Value

EventHandler<RunResultNodeEventArgs>

ResultViewerAppointmentSelectionChanged

Declaration

cs-api-definition
public event EventHandler<RunResultNodeEventArgs> ResultViewerAppointmentSelectionChanged

Event Value

EventHandler<RunResultNodeEventArgs>

ResultsLoaded

Declaration

cs-api-definition
public event EventHandler<ResultsLoadedEventArgs> ResultsLoaded

Event Value

EventHandler<ResultsLoadedEventArgs>

RunResultDeleted

Declaration

cs-api-definition
public event EventHandler<LightRunResultEventArgs> RunResultDeleted

Event Value

EventHandler<LightRunResultEventArgs>

SchedulingConnectionStateChanged

Declaration

cs-api-definition
public event Action SchedulingConnectionStateChanged

Event Value

Action

ScopeContainerDisposed

Declaration

cs-api-definition
public event Action ScopeContainerDisposed

Event Value

Action

ScopeContainerInitilized

Declaration

cs-api-definition
public event Action ScopeContainerInitilized

Event Value

Action

TestClosed

The test has been closed

Declaration

cs-api-definition
public event EventHandler<TestEventArg> TestClosed

Event Value

EventHandler<TestEventArg>

Implements IUIProject.TestClosed

TestDeleted

Declaration

cs-api-definition
public event EventHandler<DeleteTestEventArg> TestDeleted

Event Value

EventHandler<DeleteTestEventArg>

TestExcluded

Declaration

cs-api-definition
public event Action<LightTest> TestExcluded

Event Value

Action<LightTest>

TestListCreated

Declaration

cs-api-definition
public event Action<TestListNode, int> TestListCreated

Event Value

Action<TestListNode, int>

TestListDeleted

Declaration

cs-api-definition
public event EventHandler<TestListNodeEventArg> TestListDeleted

Event Value

EventHandler<TestListNodeEventArg>

TestListExecutionCompleted

Declaration

cs-api-definition
public event EventHandler<EventArgs> TestListExecutionCompleted

Event Value

EventHandler<EventArgs>

TestListExecutionStarted

Declaration

cs-api-definition
public event EventHandler<EventArgs> TestListExecutionStarted

Event Value

EventHandler<EventArgs>

TestListSelectionChanged

Declaration

cs-api-definition
public event EventHandler<TestListNodeEventArg> TestListSelectionChanged

Event Value

EventHandler<TestListNodeEventArg>

TestListsLoaded

Declaration

cs-api-definition
public event EventHandler<TestListNodeCollectionEventArgs> TestListsLoaded

Event Value

EventHandler<TestListNodeCollectionEventArgs>

TestOpen

Declaration

cs-api-definition
public event Action<TestBase> TestOpen

Event Value

Action<TestBase>

TestOpening

Declaration

cs-api-definition
public event Action<TestBase> TestOpening

Event Value

Action<TestBase>

TestPropertyChanged

Declaration

cs-api-definition
public event EventHandler<TestPropertyChangedEventArgs> TestPropertyChanged

Event Value

EventHandler<TestPropertyChangedEventArgs>

TestReloaded

Declaration

cs-api-definition
public event Action<LightTest> TestReloaded

Event Value

Action<LightTest>

TestRenamed

Declaration

cs-api-definition
public event EventHandler<RenameEventArg> TestRenamed

Event Value

EventHandler<RenameEventArg>

TestSaved

The test was saved

Declaration

cs-api-definition
public event EventHandler<TestEventArg> TestSaved

Event Value

EventHandler<TestEventArg>

Implements IUIProject.TestSaved

TestSaving

Declaration

cs-api-definition
public event EventHandler<TestEventArg> TestSaving

Event Value

EventHandler<TestEventArg>

TestSelected

A Test is selected

Declaration

cs-api-definition
public event EventHandler<TestEventArg> TestSelected

Event Value

EventHandler<TestEventArg>

Implements IUIProject.TestSelected

In this article
DefinitionConstructorsStandaloneHost()StandaloneHost(bool)PropertiesAppContainerAreResultsLoadedCodeServiceCommandLineRunContainerBuilderElementsExplorerInteractionServiceIsStartedOwnerWindowPersistOnEachStepResultViewerScopedContainerSelectedProjectTestListsControllerUIInteractionMethodsAddCodedFunction(Test, AutomationStep, string, bool)AddFile(string)AddProjectReference(Project, string)AssignCodeService(ICodeService)AssignHostInteraction(IHostInteraction)BuildProject(Project, bool)BuildProjectAsync(Project, bool)CreateTest(string, Test)DisplayLanguageSelector(Project)GetCodedFunctions(Test, out string)GetDefaultNewProjectName()GetDefaultProjectLocation()GetKnownProjectFolderFileTypesToIgnore()GetOutputFileName(string)GetOutputFolder(string)GetProjectScope(string)GetSpecialFolder(Project, SpecialFolders)GetTestNames(Project)LoadTestListsIfNone()LogMessage(string, bool)OnProjectDirtied(string)OpenTest(TestBase)PrepareToExecuteTest(Test, bool)PrepareToExecuteTestAsync(Test, bool)PromptAndSaveFiles(object)ReBuildContainer()RemoveProjectReference(Project, string)SetHostStatus(string)SetHostStatus(string, bool)ShowTestCodeFile(Test, IStepViewModel)ShutDown()Startup()UpdateCodedStepContent(AutomationStep)EventsAllRunResultsDeletedBeforeLightProjectLoadBranchChangedCodeFileDeletedCodeFileExcludedCodeFileRenamedCodeFilesRevertedCodeFolderExcludedElementsLoadedLightProjectLoadedLightTestOpenedLightTestsLoadedProjectClosedProjectClosingProjectCreatedProjectOpenedProjectRenamedProjectSavedProjectSelectedResultChangedResultViewerAppointmentSelectionChangedResultsLoadedRunResultDeletedSchedulingConnectionStateChangedScopeContainerDisposedScopeContainerInitilizedTestClosedTestDeletedTestExcludedTestListCreatedTestListDeletedTestListExecutionCompletedTestListExecutionStartedTestListSelectionChangedTestListsLoadedTestOpenTestOpeningTestPropertyChangedTestReloadedTestRenamedTestSavedTestSavingTestSelected
Not finding the help you need?
Contact Support