Class BotLog

Namespace
Unity.Multiplayer.Core

The log lines a bot run ends with (UM-T57), the contract the compose smoke watches for: [NetBot:A] OK: ... once the game's driver passes, [NetBot:A] FAIL: ... on any failure. One place, so the runner, the wait script and the tests agree.

public static class BotLog
Inheritance
BotLog
Inherited Members

Fields

FailMarker

Marks a bot's failing line, after its tag.

public const string FailMarker = "FAIL:"

Field Value

string

OkMarker

Marks a bot's passing line, after its tag.

public const string OkMarker = "OK:"

Field Value

string

Methods

Fail(string, string)

[NetBot:A] FAIL: message.

public static string Fail(string role, string message)

Parameters

role string
message string

Returns

string

Line(string, string)

[NetBot:A] message.

public static string Line(string role, string message)

Parameters

role string
message string

Returns

string

Ok(string, string)

[NetBot:A] OK: message.

public static string Ok(string role, string message)

Parameters

role string
message string

Returns

string

Tag(string)

The tag every line of the bot playing role starts with: [NetBot:A].

public static string Tag(string role)

Parameters

role string

Returns

string