Skip to main content

TestResultContainer class

An object of this type represents the result of running a test. It bundles together the test results and an exception status.

Import statement

import com.applitools.eyes.TestResultContainer;

getBrowserInfo method

Syntax

RenderBrowserInfo value = obj.getBrowserInfo();

Parameters

This method does not take any parameters.

Return value

Type: RenderBrowserInfo

If this test was run using the Ultrafast Grid, then an object is returned which has the browser configuration information. If the test was not run on the Ultrafast Grid, then a value of null is returned.

getException method

Syntax

Throwable value = obj.getException();

Parameters

This method does not take any parameters.

Return value

Type: Throwable

A value that is not null indicates that an exception occurred when running the test.

getTestResults method

Syntax

TestResults value = obj.getTestResults();

Parameters

This method does not take any parameters.

Return value

Type: TestResults