de.ppi.selenium.logevent.api.EventStorage Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of webtest Show documentation
Show all versions of webtest Show documentation
Some additional helper for webtesting with selenium
package de.ppi.selenium.logevent.api;
/**
* Storage for the events with the following workflow:
*
* - open - could be called at the beginning, must be called after a close.
* - insert - should be called to insert some testdata.
* - write - persist the data, at end of testmethod.
* - close - should be called at the end of all tests.
*
*
*/
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