func (r *StepExecutionEndingProcessor) Process(msg *m.Message, context *t.GaugeContext) *m.Message { tags := msg.GetStepExecutionEndingRequest().GetCurrentExecutionInfo().GetCurrentSpec().GetTags() hooks := context.GetHooks(t.AFTERSTEP, tags) res := executeHooks(hooks, msg) res.GetExecutionStatusResponse().GetExecutionResult().Message = context.CustomMessageRegistry context.ClearCustomMessages() return res }
func (r *StepExecutionStartingRequestProcessor) Process(msg *m.Message, context *t.GaugeContext) *m.Message { tags := msg.GetStepExecutionStartingRequest().GetCurrentExecutionInfo().GetCurrentSpec().GetTags() hooks := context.GetHooks(t.BEFORESTEP, tags) context.ClearCustomMessages() return executeHooks(hooks, msg) }