Click or drag to resize

Utilities Class

Utilities class contains tool functions
Inheritance Hierarchy
SystemObject
  Hummingbird.TestFrameworkUtilities

Namespace:  Hummingbird.TestFramework
Assembly:  Hummingbird.TestFramework (in Hummingbird.TestFramework.dll) Version: 1.2.0.0
Syntax
public static class Utilities

The Utilities type exposes the following members.

Properties
  NameDescription
Public propertyStatic memberEMPTY
This string represent an empty object used by the object string representation. Empty means the an Element does not exist.
Public propertyStatic memberNULL
This string represent a object used by the object string representation.
Top
Methods
  NameDescription
Public methodStatic memberArrayFromString
Converts an Array from string.
Public methodStatic memberCompressString
Compresses the string.
Public methodStatic memberCopyExtensionToInstall
Copies the extension package to install folder and it will be installed next time application restarts.
Public methodStatic memberEscape
Escape string array for writing in CSV files
Public methodStatic memberEscapeString
Escapes the string which contains \r, \n or \t
Public methodStatic memberEvaluateXPath
Evaluates the XPath expression in a given XML Document.
Public methodStatic memberFindMetadata
Finds the metadata object from the Identifier.
Public methodStatic memberGenerateId
Generates the GUID from a given id and another string.
Public methodStatic memberGetDefinition
Gets the ExtensionDefinition from an Extension Package File (*.zip)
Public methodStatic memberGetImageSourceFromString
Gets the image source from string.
Public methodStatic memberGetType
Get the Type object from it's FullName, This function scans the type that defined in the Test Framework and also all loaded assemblies from Extension.
Public methodStatic memberInstallCertificates
This method imports stock certificates that is used Installs the certificates.
Public methodStatic memberInstallExtension
Installs an extension from given zip archive
Public methodStatic memberIsSimpleType
Determines whether the specified Type is simple type.
Public methodStatic memberLocalIPAddresses
Get available IP address for the current machine.
Public methodStatic memberObjectFromString
The create an object which can be initialized by String. The object must have a Public Static Method Parse, with a String as parameter.
Public methodStatic memberParseObject
Parses the object with the variables provided in the current scope.
Public methodStatic memberRegisterPortWcf
Registers the port used for HTTP and WebService Server (WCF). For SSL supports, Certificate Thumbprint mus be specified in certhash
Public methodStatic memberToEnumT
Concerts a string to its enum value
Public methodStatic memberToString(Double)
Returns a String that represents an double in seconds.
Public methodStatic memberToString(TimeSpan)
Returns a String that represents an TimeSpan.
Public methodStatic memberUncompressString
Uncompresses the string from byte array
Public methodStatic memberUninstallExtension
Uninstall the extension defined by ExtensionDefinition
Public methodStatic memberWriteError
Writes the error message to the console
Public methodStatic memberWriteLog
Writes the an message to the console, usually used by command line tool
Top
See Also