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

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

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

import java.sql.Timestamp;

/**
 * A data-container with event-data.
 *
 */
public class EventData {

    /**
     * Technical unique-id.
     */
    private Long id;

    /**
     * when this event occurs.
     */
    private Timestamp ts;

    /**
     * The id of a testrun.
     */
    private String testrunId;

    /**
     * The id of the thread @see {@link Thread#getId()}.
     */
    private long threadId;

    /**
     * The source of the event.
     */
    private EventSource source;

    /**
     * Identifier which defines a group of items for the given source, i.e.:
     * 
    *
  • Unittest-Class groups unittest methods
  • *
  • A webelement could be part of page ./li> *
* If no group exists insert the item. */ private String groupId; /** * The item which sends the event. */ private String item; /** * The action, so what has happens. */ private String action; /** * The Priority. */ private Priority priority; /** A description of what has happens. */ private String description; /** * 1. possible argument for the description. */ private Object argument1; /** * 2. possible argument for the description. * */ private Object argument2; /** * 3. possible argument for the description. */ private Object argument3; /** * 4. possible argument for the description. */ private Object argument4; /** * Screenshottype png or html. */ private String screenShotType; /** * A screenshot as byte-array. */ private byte[] screenshot; /** * @return the id */ public Long getId() { return id; } /** * @param id the id to set */ public void setId(Long id) { this.id = id; } /** * @return the ts */ public Timestamp getTs() { return ts; } /** * @param ts the ts to set */ public void setTs(Timestamp ts) { this.ts = ts; } /** * @return the testrunId */ public String getTestrunId() { return testrunId; } /** * @param testrunId the testrunId to set */ public void setTestrunId(String testrunId) { this.testrunId = testrunId; } /** * @return the source */ public EventSource getSource() { return source; } /** * @param source the source to set */ public void setSource(EventSource source) { this.source = source; } /** * @return the group */ public String getGroupId() { return groupId; } /** * @param group the group to set */ public void setGroupId(String group) { this.groupId = group; } /** * @return the item */ public String getItem() { return item; } /** * @param item the item to set */ public void setItem(String item) { this.item = item; } /** * @return the action */ public String getAction() { return action; } /** * @param action the action to set */ public void setAction(String action) { this.action = action; } /** * @return the priority */ public Priority getPriority() { return priority; } /** * @param priority the priority to set */ public void setPriority(Priority priority) { this.priority = priority; } /** * @return the description */ public String getDescription() { return description; } /** * @param description the description to set */ public void setDescription(String description) { this.description = description; } /** * @return the screenshot */ public byte[] getScreenshot() { return screenshot; } /** * @param screenshot the screenshot to set */ public void setScreenshot(byte[] screenshot) { this.screenshot = screenshot; } /** * @return the threadId */ public long getThreadId() { return threadId; } /** * @param threadId the threadId to set */ public void setThreadId(long threadId) { this.threadId = threadId; } /** * @return the type */ public String getScreenShotType() { return screenShotType; } /** * @param type the type to set */ public void setScreenShotType(String type) { this.screenShotType = type; } /** * @return the argument1 */ public Object getArgument1() { return argument1; } /** * @param argument1 the argument1 to set */ public void setArgument1(Object argument1) { this.argument1 = argument1; } /** * @return the argument2 */ public Object getArgument2() { return argument2; } /** * @param argument2 the argument2 to set */ public void setArgument2(Object argument2) { this.argument2 = argument2; } /** * @return the argument3 */ public Object getArgument3() { return argument3; } /** * @param argument3 the argument3 to set */ public void setArgument3(Object argument3) { this.argument3 = argument3; } /** * @return the argument4 */ public Object getArgument4() { return argument4; } /** * @param argument4 the argument4 to set */ public void setArgument4(Object argument4) { this.argument4 = argument4; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy