EmulatorSnapshots

@Incubating
public interface EmulatorSnapshots

Known direct subclasses
FailureRetention

This interface is deprecated. Renamed to EmulatorSnapshots


Options for configuring Android Test Retention.

When enabled, Android Test Retention automatically takes emulator snapshots on test failures.

Summary

Public methods

abstract boolean

Enables snapshot compression.

abstract boolean

Enables automated test failure snapshots.

abstract int

Maximum number of failures that would be snapshotted.

abstract void

Call this function to take unlimited number of test failure snapshots (will ignore maxSnapshotsForTestFailures setting)

abstract void
setCompressSnapshots(boolean compressSnapshots)

Enables snapshot compression.

abstract void
setEnableForTestFailures(boolean enableForTestFailures)

Enables automated test failure snapshots.

abstract void
setMaxSnapshotsForTestFailures(int maxSnapshotsForTestFailures)

Maximum number of failures that would be snapshotted.

Public methods

getCompressSnapshots

abstract boolean getCompressSnapshots()

Enables snapshot compression. Default to false.

getEnableForTestFailures

abstract boolean getEnableForTestFailures()

Enables automated test failure snapshots. Default to false.

getMaxSnapshotsForTestFailures

abstract int getMaxSnapshotsForTestFailures()

Maximum number of failures that would be snapshotted. Any failures after the first $maxSnapshotsForTestFailures will not have snapshots. Default to 2. Must be >0

retainAll

abstract void retainAll()

Call this function to take unlimited number of test failure snapshots (will ignore maxSnapshotsForTestFailures setting)

setCompressSnapshots

abstract void setCompressSnapshots(boolean compressSnapshots)

Enables snapshot compression. Default to false.

setEnableForTestFailures

abstract void setEnableForTestFailures(boolean enableForTestFailures)

Enables automated test failure snapshots. Default to false.

setMaxSnapshotsForTestFailures

abstract void setMaxSnapshotsForTestFailures(int maxSnapshotsForTestFailures)

Maximum number of failures that would be snapshotted. Any failures after the first $maxSnapshotsForTestFailures will not have snapshots. Default to 2. Must be >0