BaseModelHelpers Methods

GetVersionString

Gets the version string including the build time in UTC of the provided assembly Version.

Syntax:

1
public static string GetVersionString(
2
Version versionInfo
3
)
Copied!

Parameters:

Parameter
Description
versionInfo
Type: Version The version information of the assembly for which the version string shall be built. E.g.
var assembly = System.Reflection.Assembly.GetExecutingAssembly().GetName();
versionInfo = assembly.Version;

LogBaseModelVersion

Logs the assembly version of the base model, if it wasn't already logged before.

Syntax:

1
public static void LogBaseModelVersion(
2
ITester t
3
)
Copied!

Parameters:

Parameter
Description
t
Type: ITester
Access to the tester interface.

MapRemoteDirectoryOnHost

Maps the remote directory on the host and returns a directory info for the remote directory. Make sure to unmap the remote directory in the tear down step by calling UnmapRemoteDirectoryOnHost!

Syntax:

1
public static DirectoryInfo MapRemoteDirectoryOnHost(
2
ITester t
3
)
Copied!

Parameters:

Parameter
Description
t
Type: ITester
Access to the tester interface.

Return Value:

A System.IO.DirectoryInfo for the mapped remote directory.

Exceptions:

Exception
Condition
RemoteDirectory could not be mapped on host.

UnmapRemoteDirectoryOnHost

Unmaps the remote directory on the host.

Syntax:

1
public static void UnmapRemoteDirectoryOnHost(
2
ITester t
3
)
Copied!

Parameters:

Parameter
Description
t
Type: ITester
The tester interface.