Class Attachment

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

public class Attachment extends Object implements Serializable
The model object that used to link attachment files, stored in results directory, to test results.
Since:
2.0
See Also:
  • Constructor Details

    • Attachment

      public Attachment()
  • Method Details

    • getName

      public String getName()
      Gets name.
      Returns:
      the name
    • setName

      public Attachment setName(String value)
      Sets name.
      Parameters:
      value - the value
      Returns:
      self for method chaining
    • getSource

      public String getSource()
      Gets source.
      Returns:
      the source
    • setSource

      public Attachment setSource(String value)
      Sets source.
      Parameters:
      value - the value
      Returns:
      self for method chaining
    • getType

      public String getType()
      Gets type.
      Returns:
      the type
    • setType

      public Attachment setType(String value)
      Sets type.
      Parameters:
      value - the value
      Returns:
      self for method chaining