com.aventstack.extentreports.model

## Interface IAddsMedia<T>

- All Known Implementing Classes:
    ExtentTest

      public interface IAddsMedia<T>

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `T` | `addScreenCaptureFromPath(String imagePath)` Adds a snapshot to test or log
    `T` | `addScreenCaptureFromPath(String imagePath, String title)` Adds a snapshot to the test or log with title
    `T` | `addScreencastFromPath(String screencastPath)` Adds a screencast to test or log

- - ### Method Detail

    - #### addScreenCaptureFromPath

          T addScreenCaptureFromPath(String imagePath,
                                     String title)
                              throws IOException

      Adds a snapshot to the test or log with title
      Parameters:
        `imagePath` - Image path
        `title` - Image title
      Returns:
        Object this method is called from, generally `ExtentTest` or `Log`
      Throws:
        `IOException` - thrown if the `imagePath` of image is not found

    - #### addScreenCaptureFromPath

          T addScreenCaptureFromPath(String imagePath)
                              throws IOException

      Adds a snapshot to test or log
      Parameters:
        `imagePath` - Image path
      Returns:
        Object this method is called from, generally `ExtentTest` or `Log`
      Throws:
        `IOException` - thrown if the `imagePath` of image is not found

    - #### addScreencastFromPath

          T addScreencastFromPath(String screencastPath)
                           throws IOException

      Adds a screencast to test or log
      Parameters:
        `screencastPath` - Screencast path
      Returns:
        Object this method is called from, generally `ExtentTest` or `Log`
      Throws:
        `IOException` - thrown if the `screencastPath` of image is not found

Copyright © 2018. All rights reserved.