Class GlobalAttachment

java.lang.Object
io.qameta.allure.model.Attachment
io.qameta.allure.model.GlobalAttachment
All Implemented Interfaces:
Serializable

public class GlobalAttachment extends Attachment
An attachment that belongs to the test run rather than to a test or fixture.
Since:
3.0
See Also:
  • Constructor Details

    • GlobalAttachment

      public GlobalAttachment()
  • Method Details

    • getTimestamp

      public long getTimestamp()
      Gets the time when the attachment was added.
      Returns:
      the timestamp in milliseconds since the epoch
    • setTimestamp

      public GlobalAttachment setTimestamp(long value)
      Sets the time when the attachment was added.
      Parameters:
      value - the timestamp in milliseconds since the epoch
      Returns:
      self for method chaining
    • setName

      public GlobalAttachment setName(String value)
      Sets name.
      Overrides:
      setName in class Attachment
      Parameters:
      value - the value
      Returns:
      self for method chaining
    • setSource

      public GlobalAttachment setSource(String value)
      Sets source.
      Overrides:
      setSource in class Attachment
      Parameters:
      value - the value
      Returns:
      self for method chaining
    • setType

      public GlobalAttachment setType(String value)
      Sets type.
      Overrides:
      setType in class Attachment
      Parameters:
      value - the value
      Returns:
      self for method chaining
    • setSize

      public GlobalAttachment setSize(Long value)
      Sets size.
      Overrides:
      setSize in class Attachment
      Parameters:
      value - the value
      Returns:
      self for method chaining
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object