toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case ExecutionResult.pending:
      return 'PENDING';
    case ExecutionResult.passed:
      return 'PASSED';
    case ExecutionResult.warned:
      return 'WARNED';
    case ExecutionResult.failed:
      return 'FAILED';
    case ExecutionResult.skipped:
      return 'SKIPPED';
    case ExecutionResult.errored:
      return 'ERRORED';
    case ExecutionResult.stopped:
      return 'STOPPED';
  }
}