private String getTestNameFrom(final Method method, final Object[] args) { return getTestNameFrom(method, args, true); }
private String getTestNameFrom(final Method method, final Object[] args) { return getTestNameFrom(method, args, true); }
private void notifySkippedStepStarted(final Method method, final Object[] args) { ExecutedStepDescription description = ExecutedStepDescription.of(testStepClass, getTestNameFrom(method, args)); StepEventBus.getEventBus().skippedStepStarted(description); }
private void notifyStepStarted(final Method method, final Object[] args) { ExecutedStepDescription description = ExecutedStepDescription.of(testStepClass, getTestNameFrom(method, args)); StepEventBus.getEventBus().stepStarted(description); }
private void notifyStepStarted(final Method method, final Object[] args) { ExecutedStepDescription description = ExecutedStepDescription.of(testStepClass, getTestNameFrom(method, args)); StepEventBus.getEventBus().stepStarted(description); }
private void notifySkippedStepStarted(final Method method, final Object[] args) { ExecutedStepDescription description = ExecutedStepDescription.of(testStepClass, getTestNameFrom(method, args)); StepEventBus.getEventBus().skippedStepStarted(description); }
private Object runSkippedMethod(Object obj, Method method, Object[] args, MethodProxy proxy) { LOGGER.trace("Running test step " + getTestNameFrom(method, args, false)); Object result = null; StepEventBus.getEventBus().temporarilySuspendWebdriverCalls(); result = runIfNestedMethodsShouldBeRun(obj, method, args, proxy); StepEventBus.getEventBus().reenableWebdriverCalls(); return result; }
private Object runSkippedMethod(Object obj, Method method, Object[] args, MethodProxy proxy) { LOGGER.trace("Running test step " + getTestNameFrom(method, args, false)); Object result = null; StepEventBus.getEventBus().temporarilySuspendWebdriverCalls(); result = runIfNestedMethodsShouldBeRun(obj, method, args, proxy); StepEventBus.getEventBus().reenableWebdriverCalls(); return result; }
private void notifyOfStepFailure(final Method method, final Object[] args, final Throwable cause) throws Throwable { ExecutedStepDescription description = ExecutedStepDescription.of(testStepClass, getTestNameFrom(method, args)); StepFailure failure = new StepFailure(description, cause); StepEventBus.getEventBus().stepFailed(failure); if (shouldThrowExceptionImmediately()) { throw cause; } }
private void notifyStepStarted(final Object object, final Method method, final Object[] args) { ExecutedStepDescription description = ExecutedStepDescription.of(testStepClass, getTestNameFrom(method, args), args) .withDisplayedFields(fieldValuesIn(object)); StepEventBus.getEventBus().stepStarted(description); }
private void notifySkippedStepStarted(final Object object, final Method method, final Object[] args) { ExecutedStepDescription description = ExecutedStepDescription.of(testStepClass, getTestNameFrom(method, args), args) .withDisplayedFields(fieldValuesIn(object)); StepEventBus.getEventBus().skippedStepStarted(description); }
private void notifyOfStepFailure(final Method method, final Object[] args, final Throwable cause) throws Throwable { ExecutedStepDescription description = ExecutedStepDescription.of(testStepClass, getTestNameFrom(method, args)); StepFailure failure = new StepFailure(description, cause); StepEventBus.getEventBus().stepFailed(failure); if (shouldThrowExceptionImmediately()) { throw cause; } }
private void notifyOfStepFailure(final Object object, final Method method, final Object[] args, final Throwable cause) throws Throwable { ExecutedStepDescription description = ExecutedStepDescription.of(testStepClass, getTestNameFrom(method, args), args) .withDisplayedFields(fieldValuesIn(object)); StepFailure failure = new StepFailure(description, cause); StepEventBus.getEventBus().stepFailed(failure); if (shouldThrowExceptionImmediately()) { throw cause; } }