DeviceLifetime

How long the JUnit extension keeps a test's devices attached (TapTest.deviceLifetime).

Entries

Link copied to clipboard

Attach before each test and detach after it (the default): every test gets a fresh session.

Link copied to clipboard

Attach once and reuse the devices for every test of the class; detach after the last one. Saves the driver start of each attach (about 1 s on an emulator, several on a slow phone) but nothing is reset between tests: the app keeps whatever state the previous test left, so each test must bring it where it needs it (coldLaunch(), clearData()). A reused device is probed before each test; one that stopped working (quarantined, driver lost) is detached and a fresh one attached. Failure artifacts are still captured per test.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.