/// <summary> /// Get the testworker status string /// </summary> /// <param name="testWorkerStatus">the workerState</param> /// <returns>a string, describing the testworker status</returns> public static string GetTestWorkerStatusString(TestWorkerStatus testWorkerStatus) { switch (testWorkerStatus) { case TestWorkerStatus.Ok: return "success"; case TestWorkerStatus.Pause: return "default"; case TestWorkerStatus.Rebooting: return "warning"; case TestWorkerStatus.LongTest: return "primary"; default: return "default"; } }
/// <summary> /// Get the testworker status string /// </summary> /// <param name="testWorkerStatus">the workerState</param> /// <returns>a string, describing the testworker status</returns> public static string GetTestWorkerStatusString(TestWorkerStatus testWorkerStatus) { switch (testWorkerStatus) { case TestWorkerStatus.Ok: return("success"); case TestWorkerStatus.Pause: return("default"); case TestWorkerStatus.Rebooting: return("warning"); case TestWorkerStatus.LongTest: return("primary"); default: return("default"); } }