All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.ppi.selenium.logevent.api.EventStorage Maven / Gradle / Ivy

There is a newer version: 0.12
Show newest version
package de.ppi.selenium.logevent.api;

/**
 * Storage for the events with the following workflow:
 * 
    *
  1. open - could be called at the beginning, must be called after a close.
  2. *
  3. insert - should be called to insert some testdata.
  4. *
  5. write - persist the data, at end of testmethod.
  6. *
  7. close - should be called at the end of all tests.
  8. *
* */ public interface EventStorage { /** * Open the storage system. */ void open(); /** * Insert the event-data. * * @param eventData the eventdata. */ void insert(EventData eventData); /** * Writes the collected data. */ void write(); /** * Close the storage system. */ void close(); /** * Delivers all Events of a testrun as an Iterable. * * @param testrunId the id of the testrun. * @return an Iterable of {@link EventData}. */ ClosableIterable getAllEvents(String testrunId); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy