Class StepResult.Part

java.lang.Object
io.karatelabs.core.StepResult.Part
Enclosing class:
StepResult

public static class StepResult.Part extends Object
One asset within an StepResult.Embed: either inline data (core writes the file and sets fileName) or a report-relative url (the ext wrote the asset itself, e.g. under ext/image/assets/).
  • Constructor Details

    • Part

      public Part(String role, String mime, byte[] data)
      Inline-bytes part — core writes the file and sets fileName.
    • Part

      public Part(String role, String mime, String url)
      URL part — the ext has already written the asset to disk.
  • Method Details

    • getRole

      public String getRole()
    • getMime

      public String getMime()
    • getData

      public byte[] getData()
    • getUrl

      public String getUrl()
    • setFileName

      public void setFileName(String fileName)
    • getFileName

      public String getFileName()