com.aventstack.extentreports.model.IAddsMedia Maven / Gradle / Ivy
package com.aventstack.extentreports.model;
import java.io.IOException;
public interface IAddsMedia {
/**
* Adds a snapshot to the test or log with title
*
* @param imagePath Image path
* @param title Image title
*
* @return Object this method is called from, generally {@link com.aventstack.extentreports.ExtentTest} or {@link Log}
*
* @throws IOException thrown if the imagePath
of image is not found
*/
T addScreenCaptureFromPath(String imagePath, String title) throws IOException;
/**
* Adds a snapshot to test or log
*
* @param imagePath Image path
*
* @return Object this method is called from, generally {@link com.aventstack.extentreports.ExtentTest} or {@link Log}
*
* @throws IOException thrown if the imagePath
of image is not found
*/
T addScreenCaptureFromPath(String imagePath) throws IOException;
/**
* Adds a base64 screenshot
*
* @param s base64 string
* @param title Image title
*
* @return Object this method is called from, generally {@link com.aventstack.extentreports.ExtentTest} or {@link Log}
*/
T addScreenCaptureFromBase64String(String s, String title);
/**
* Adds a base64 screenshot
*
* @param s base64 string
*
* @return Object this method is called from, generally {@link com.aventstack.extentreports.ExtentTest} or {@link Log}
*/
T addScreenCaptureFromBase64String(String s);
/**
* Adds a screencast to test or log
*
* @param screencastPath Screencast path
*
* @return Object this method is called from, generally {@link com.aventstack.extentreports.ExtentTest} or {@link Log}
*
* @throws IOException thrown if the screencastPath
of image is not found
*/
T addScreencastFromPath(String screencastPath) throws IOException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy