/** * Create a new Thucydides agent instance. * There is always a BaseStepListener configured in the context, but you can also specify other listeners, * such as for logging (Listeners.getLoggingListener()) and to enable statistics (Listeners.getStatisticsListener()) * @param driver * @param additionalListeners */ public ThucydidesAgent(Optional<String> driver, StepListener... additionalListeners) { context = ThucydidesContext.newContext(driver, additionalListeners); }
/** * Initialize a class for use with Thucydides. * This involves instrumenting any @Step-annotated classes and setting up the Thucydides listeners. * @param testCase a Java object containing test methods. */ public void enrich(Object testCase) { context.initialize(testCase); }
public static ThucydidesContext newContext() { return new ThucydidesContext(); }
public void testSuiteFinished() { notifyEventBus().testSuiteFinished(); context.dropListeners(); context.generateReports(); }
/** * Tell Thucydides to start recording test outcomes and step events for a new test. * * @param name A human-readable name that will identify this test in the test reports. */ public void testStarted(final String name) { notifyEventBus().testStarted(name); }
private void registerStepListeners(StepListener... additionalListeners) { stepListener = buildBaseStepListener(); StepEventBus.getEventBus().registerListener(stepListener); for (StepListener listener : additionalListeners) { StepEventBus.getEventBus().registerListener(listener); } }
public void testSuiteFinished() { notifyEventBus().testSuiteFinished(); context.dropListeners(); context.generateReports(); }
/** * Tell Thucydides that a test is finished, and to generate the test reports for that test. */ public void testFinished() { notifyEventBus().testFinished(); }
/** * Create a new Thucydides agent instance. * There is always a BaseStepListener configured in the context, but you can also specify other listeners, * such as for logging (Listeners.getLoggingListener()) and to enable statistics (Listeners.getStatisticsListener()) * @param driver * @param additionalListeners */ public ThucydidesAgent(Optional<String> driver, StepListener... additionalListeners) { context = ThucydidesContext.newContext(driver, additionalListeners); }
/** * Initialize a class for use with Thucydides. * This involves instrumenting any @Step-annotated classes and setting up the Thucydides listeners. * @param testCase a Java object containing test methods. */ public void enrich(Object testCase) { context.initialize(testCase); }
public static ThucydidesContext newContext() { return new ThucydidesContext(); }
private void registerStepListeners(StepListener... additionalListeners) { stepListener = buildBaseStepListener(); StepEventBus.getEventBus().registerListener(stepListener); for (StepListener listener : additionalListeners) { StepEventBus.getEventBus().registerListener(listener); } }
public void testSuiteFinished() { notifyEventBus().testSuiteFinished(); context.dropListeners(); context.generateReports(); }
/** * Tell Thucydides that a test is finished, and to generate the test reports for that test. */ public void testFinished() { notifyEventBus().testFinished(); }
/** * Create a new Thucydides agent instance. * There is always a BaseStepListener configured in the context, but you can also specify other listeners, * such as for logging (Listeners.getLoggingListener()) and to enable statistics (Listeners.getStatisticsListener()) * @param driver * @param additionalListeners */ public ThucydidesAgent(Optional<String> driver, StepListener... additionalListeners) { context = ThucydidesContext.newContext(driver, additionalListeners); }
/** * Initialize a class for use with Thucydides. * This involves instrumenting any @Step-annotated classes and setting up the Thucydides listeners. * @param testCase a Java object containing test methods. */ public void enrich(Object testCase) { context.initialize(testCase); }
public static ThucydidesContext newContext() { return new ThucydidesContext(); }
/** * Tell Thucydides to start recording test outcomes and step events for a new test. * * @param name A human-readable name that will identify this test in the test reports. */ public void testStarted(final String name) { notifyEventBus().testStarted(name); }
/** * Tell Thucydides that a test is finished, and to generate the test reports for that test. */ public void testFinished() { notifyEventBus().testFinished(); }
/** * Tell Thucydides to start recording test outcomes and step events for a new test. * * @param name A human-readable name that will identify this test in the test reports. */ public void testStarted(final String name) { notifyEventBus().testStarted(name); }