C# Class HpToolsLauncher.Helper

Show file Open project: hpsa/hp-application-automation-tools-plugin Class Usage Examples

Public Properties

Property Type Description
LoadRunnerENVVariables System.Collections.ObjectModel.ReadOnlyCollection

Public Methods

Method Description
CanUftProcessStart ( string &reason ) : bool
CopyDirectories ( string sourceDir, string targetDir, bool includeSubDirectories = false, bool includeRoot = false ) : void

Copy directories from source to target

CopyFilesFromFolder ( string sourceFolder, IEnumerable fileNames, string targetFolder ) : void
CreateHtmlFromXslt ( string xmlPath, string xslPath, string targetFile ) : void

Create html file according to a matching xml

CreateTempDir ( ) : string
GetLastRunFromReport ( string reportPath ) : string
GetRootDirectoryPath ( ) : string
GetSTInstallPath ( ) : string
GetTempDir ( ) : string
GetTestStateFromLRReport ( TestRunResults runDesc, string resultFiles ) : TestState
GetTestStateFromReport ( TestRunResults runDesc ) : TestState
GetTestStateFromUFTReport ( TestRunResults runDesc, string resultFiles ) : TestState
GetTestType ( string path ) : TestType
GetTestsLocations ( string baseDir ) : List
GetUftViewerInstallPath ( ) : string
GetUnknownStateReason ( string reportPath ) : string
HPToolsAssemblyResolver ( object sender, ResolveEventArgs args ) : Assembly
IsDirectory ( string path ) : bool
IsLeanFTRunning ( ) : bool
IsNetworkPath ( String path ) : bool
IsQtpInstalled ( ) : bool
IsServiceTestInstalled ( ) : bool
IsSprinterRunning ( ) : bool
IsTestingToolsInstalled ( TestStorageType type ) : bool
OpenReport ( string reportDirectory, string &optionalReportViewerPath ) : void
ValidateFiles ( IEnumerable tests ) : List
getLRInstallPath ( ) : string
isLoadRunnerInstalled ( ) : bool

Private Methods

Method Description
CopyContents ( DirectoryInfo source, DirectoryInfo target, bool includeSubDirectories ) : void
GetRootFromEnvironment ( ) : string
GetStateFromUFTResultsFile ( string resultsFileFullPath, string &desc ) : TestState
GetTestStateFromLRReport ( string resultFileFullPath, string &desc ) : TestState
WalkDirectoryTree ( System root, List &results ) : void
checkNodeStatus ( XmlNode node, string &desc ) : TestState

Method Details

CanUftProcessStart() public static method

public static CanUftProcessStart ( string &reason ) : bool
reason string
return bool

CopyDirectories() public static method

Copy directories from source to target
public static CopyDirectories ( string sourceDir, string targetDir, bool includeSubDirectories = false, bool includeRoot = false ) : void
sourceDir string full path source directory
targetDir string full path target directory
includeSubDirectories bool if true, all subdirectories and contents will be copied
includeRoot bool if true, the source directory will be created too
return void

CopyFilesFromFolder() public static method

public static CopyFilesFromFolder ( string sourceFolder, IEnumerable fileNames, string targetFolder ) : void
sourceFolder string
fileNames IEnumerable
targetFolder string
return void

CreateHtmlFromXslt() public static method

Create html file according to a matching xml
public static CreateHtmlFromXslt ( string xmlPath, string xslPath, string targetFile ) : void
xmlPath string the values xml
xslPath string the xml transformation file
targetFile string the full file name - where to save the product
return void

CreateTempDir() public static method

public static CreateTempDir ( ) : string
return string

GetLastRunFromReport() public static method

public static GetLastRunFromReport ( string reportPath ) : string
reportPath string
return string

GetRootDirectoryPath() public static method

public static GetRootDirectoryPath ( ) : string
return string

GetSTInstallPath() public static method

public static GetSTInstallPath ( ) : string
return string

GetTempDir() public static method

public static GetTempDir ( ) : string
return string

GetTestStateFromLRReport() public static method

public static GetTestStateFromLRReport ( TestRunResults runDesc, string resultFiles ) : TestState
runDesc TestRunResults
resultFiles string
return TestState

GetTestStateFromReport() public static method

public static GetTestStateFromReport ( TestRunResults runDesc ) : TestState
runDesc TestRunResults
return TestState

GetTestStateFromUFTReport() public static method

public static GetTestStateFromUFTReport ( TestRunResults runDesc, string resultFiles ) : TestState
runDesc TestRunResults
resultFiles string
return TestState

GetTestType() public static method

public static GetTestType ( string path ) : TestType
path string
return TestType

GetTestsLocations() public static method

public static GetTestsLocations ( string baseDir ) : List
baseDir string
return List

GetUftViewerInstallPath() public static method

public static GetUftViewerInstallPath ( ) : string
return string

GetUnknownStateReason() public static method

public static GetUnknownStateReason ( string reportPath ) : string
reportPath string
return string

HPToolsAssemblyResolver() public static method

public static HPToolsAssemblyResolver ( object sender, ResolveEventArgs args ) : Assembly
sender object
args System.ResolveEventArgs
return System.Reflection.Assembly

IsDirectory() public static method

public static IsDirectory ( string path ) : bool
path string
return bool

IsLeanFTRunning() public static method

public static IsLeanFTRunning ( ) : bool
return bool

IsNetworkPath() public static method

public static IsNetworkPath ( String path ) : bool
path String
return bool

IsQtpInstalled() public static method

public static IsQtpInstalled ( ) : bool
return bool

IsServiceTestInstalled() public static method

public static IsServiceTestInstalled ( ) : bool
return bool

IsSprinterRunning() public static method

public static IsSprinterRunning ( ) : bool
return bool

IsTestingToolsInstalled() public static method

public static IsTestingToolsInstalled ( TestStorageType type ) : bool
type TestStorageType
return bool

OpenReport() public static method

public static OpenReport ( string reportDirectory, string &optionalReportViewerPath ) : void
reportDirectory string
optionalReportViewerPath string
return void

ValidateFiles() public static method

public static ValidateFiles ( IEnumerable tests ) : List
tests IEnumerable
return List

getLRInstallPath() public static method

public static getLRInstallPath ( ) : string
return string

isLoadRunnerInstalled() public static method

public static isLoadRunnerInstalled ( ) : bool
return bool

Property Details

LoadRunnerENVVariables public static property

public static System.Collections.ObjectModel.ReadOnlyCollection LoadRunnerENVVariables
return System.Collections.ObjectModel.ReadOnlyCollection