private void logStepFailure(Method method, Object[] args, Throwable assertionError) throws Throwable { notifyOfStepFailure(method, args, assertionError); LOGGER.info("STEP FAILED: {} - {}", method.getName(), assertionError.getMessage()); }
private void logStepFailure(Method method, Object[] args, Throwable assertionError) throws Throwable { notifyOfStepFailure(method, args, assertionError); LOGGER.info("STEP FAILED: {} - {}", method.getName(), assertionError.getMessage()); }
private void logStepFailure(Object object, Method method, Object[] args, Throwable assertionError) throws Throwable { notifyOfStepFailure(object, method, args, assertionError); LOGGER.debug("STEP FAILED: {} - {}", StepName.fromStepAnnotationIn(method).orElse(method.getName()), assertionError.getMessage()); }
private Object invokeMethodAndNotifyFailures(Object obj, Method method, Object[] args, MethodProxy proxy, Object result) throws Throwable { try { result = invokeMethod(obj, args, proxy); } catch (Throwable generalException) { error = generalException; Throwable assertionError = forError(error).convertToAssertion(); notifyStepStarted(method, args); notifyOfStepFailure(method, args, assertionError); } return result; }
public void reportMethodError(Throwable generalException, Object obj, Method method, Object[] args) throws Throwable { error = SerenityManagedException.detachedCopyOf(generalException); Throwable assertionError = forError(error).convertToAssertion(); notifyStepStarted(obj, method, args); notifyOfStepFailure(obj, method, args, assertionError); }
private Object invokeMethodAndNotifyFailures(Object obj, Method method, Object[] args, MethodProxy proxy, Object result) throws Throwable { try { result = invokeMethod(obj, args, proxy); } catch (Throwable generalException) { error = SerenityWebDriverException.detachedCopyOf(generalException); Throwable assertionError = forError(error).convertToAssertion(); notifyStepStarted(method, args); notifyOfStepFailure(method, args, assertionError); } return result; }