C# Class HpToolsLauncher.Helper

Afficher le fichier Open project: hpsa/hp-application-automation-tools-plugin Class Usage Examples

Méthodes publiques

Свойство Type Description
LoadRunnerENVVariables System.Collections.ObjectModel.ReadOnlyCollection

Méthodes publiques

Méthode 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

Méthode 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 méthode

public static CanUftProcessStart ( string &reason ) : bool
reason string
Résultat bool

CopyDirectories() public static méthode

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
Résultat void

CopyFilesFromFolder() public static méthode

public static CopyFilesFromFolder ( string sourceFolder, IEnumerable fileNames, string targetFolder ) : void
sourceFolder string
fileNames IEnumerable
targetFolder string
Résultat void

CreateHtmlFromXslt() public static méthode

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
Résultat void

CreateTempDir() public static méthode

public static CreateTempDir ( ) : string
Résultat string

GetLastRunFromReport() public static méthode

public static GetLastRunFromReport ( string reportPath ) : string
reportPath string
Résultat string

GetRootDirectoryPath() public static méthode

public static GetRootDirectoryPath ( ) : string
Résultat string

GetSTInstallPath() public static méthode

public static GetSTInstallPath ( ) : string
Résultat string

GetTempDir() public static méthode

public static GetTempDir ( ) : string
Résultat string

GetTestStateFromLRReport() public static méthode

public static GetTestStateFromLRReport ( TestRunResults runDesc, string resultFiles ) : TestState
runDesc TestRunResults
resultFiles string
Résultat TestState

GetTestStateFromReport() public static méthode

public static GetTestStateFromReport ( TestRunResults runDesc ) : TestState
runDesc TestRunResults
Résultat TestState

GetTestStateFromUFTReport() public static méthode

public static GetTestStateFromUFTReport ( TestRunResults runDesc, string resultFiles ) : TestState
runDesc TestRunResults
resultFiles string
Résultat TestState

GetTestType() public static méthode

public static GetTestType ( string path ) : TestType
path string
Résultat TestType

GetTestsLocations() public static méthode

public static GetTestsLocations ( string baseDir ) : List
baseDir string
Résultat List

GetUftViewerInstallPath() public static méthode

public static GetUftViewerInstallPath ( ) : string
Résultat string

GetUnknownStateReason() public static méthode

public static GetUnknownStateReason ( string reportPath ) : string
reportPath string
Résultat string

HPToolsAssemblyResolver() public static méthode

public static HPToolsAssemblyResolver ( object sender, ResolveEventArgs args ) : Assembly
sender object
args System.ResolveEventArgs
Résultat System.Reflection.Assembly

IsDirectory() public static méthode

public static IsDirectory ( string path ) : bool
path string
Résultat bool

IsLeanFTRunning() public static méthode

public static IsLeanFTRunning ( ) : bool
Résultat bool

IsNetworkPath() public static méthode

public static IsNetworkPath ( String path ) : bool
path String
Résultat bool

IsQtpInstalled() public static méthode

public static IsQtpInstalled ( ) : bool
Résultat bool

IsServiceTestInstalled() public static méthode

public static IsServiceTestInstalled ( ) : bool
Résultat bool

IsSprinterRunning() public static méthode

public static IsSprinterRunning ( ) : bool
Résultat bool

IsTestingToolsInstalled() public static méthode

public static IsTestingToolsInstalled ( TestStorageType type ) : bool
type TestStorageType
Résultat bool

OpenReport() public static méthode

public static OpenReport ( string reportDirectory, string &optionalReportViewerPath ) : void
reportDirectory string
optionalReportViewerPath string
Résultat void

ValidateFiles() public static méthode

public static ValidateFiles ( IEnumerable tests ) : List
tests IEnumerable
Résultat List

getLRInstallPath() public static méthode

public static getLRInstallPath ( ) : string
Résultat string

isLoadRunnerInstalled() public static méthode

public static isLoadRunnerInstalled ( ) : bool
Résultat bool

Property Details

LoadRunnerENVVariables public_oe static_oe property

public static System.Collections.ObjectModel.ReadOnlyCollection LoadRunnerENVVariables
Résultat System.Collections.ObjectModel.ReadOnlyCollection