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

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

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

import com.applitools.eyes.visualgrid.model.RenderBrowserInfo;

public class TestResultContainer {

    private TestResults testResults;
    private RenderBrowserInfo browserInfo;
    private Throwable exception;

    public TestResultContainer(TestResults testResults, RenderBrowserInfo browserInfo, Throwable exception) {
        this.testResults = testResults;
        this.browserInfo = browserInfo;
        this.exception = exception;
    }

    public TestResultContainer(TestResults testResults) {
        this.testResults = testResults;
    }

    public TestResults getTestResults() {
        return testResults;
    }

    public Throwable getException() {
        return exception;
    }

    public RenderBrowserInfo getBrowserInfo() {
        return browserInfo;
    }

    @Override
    public String toString() {
        String browserInfoStr = browserInfo != null ?  "\n browserInfo = " + browserInfo : "";
        return "TestResultContainer{" +
                "\n testResults=" + testResults +
                 browserInfoStr +
                "\n exception = " + exception +
                '}';
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy