All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.applitools.eyes.TimedAppOutput Maven / Gradle / Ivy

There is a newer version: 2.57
Show newest version
package com.applitools.eyes;

/**
 * AppOutput with timing information.
 */
public class TimedAppOutput extends AppOutput {
    private final long elapsed;
    private final boolean isPrimary;

    /**
     * @param title        The title of the window.
     * @param screenshot64 Base64 encoding of the screenshot's bytes (the
     *                     byte can be in either in compressed or
     * @param elapsed      The elapsed time from the first captured window
     *                     until this window was captured.
     * @param isPrimary    Whether this window is considered a "primary"
     *                     (e.g., if the user expected that up to this
     *                     window there should already have been a match in
     *                     a timing test).
     */
    public TimedAppOutput(String title, String screenshot64, long elapsed,
                          boolean isPrimary) {
        super(title, screenshot64);
        this.elapsed = elapsed;
        this.isPrimary = isPrimary;
    }

    @SuppressWarnings("unused")
    public long getElapsed() {
        return elapsed;
    }

    @SuppressWarnings("unused")
    public boolean getIsPrimary() {
        return isPrimary;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy