示例#1
0
文件: gauge.go 项目: Jayasagar/gauge
func printError(execResult *gauge_messages.ProtoExecutionResult) {
	if execResult.GetFailed() {
		console := getCurrentLogger()
		console.PrintError(execResult.GetErrorMessage() + "\n")
		console.PrintError(execResult.GetStackTrace() + "\n")
	}
}
示例#2
0
func printStatus(executionResult *gauge_messages.ProtoExecutionResult, logger *logger.GaugeLogger) {
	logger.Error("Error Message: %s", executionResult.GetErrorMessage())

	stacktrace := executionResult.GetStackTrace()
	stacktrace = strings.Replace(stacktrace, "\n", "\n\t", -1)
	logger.Error("Stacktrace: %s", stacktrace)
}
示例#3
0
func printStatus(executionResult *gauge_messages.ProtoExecutionResult, reporter reporter.Reporter) {
	reporter.Error("Error Message: %s", executionResult.GetErrorMessage())
	reporter.Error("Stacktrace: \n%s", executionResult.GetStackTrace())
}
示例#4
0
func printStatus(executionResult *gauge_messages.ProtoExecutionResult, writer execLogger.ExecutionLogger) {
	writer.PrintError(executionResult.GetErrorMessage())
	writer.PrintError(executionResult.GetStackTrace())
}
示例#5
0
func printStatus(executionResult *gauge_messages.ProtoExecutionResult, logger logger.GaugeLogger) {
	logger.Error("Error Message: %s", executionResult.GetErrorMessage())
	stacktrace := executionResult.GetStackTrace()
	logger.Error("Stacktrace: %s", stacktrace)
}