IviActivityTestCase

abstract class IviActivityTestCase(activityIntent: Intent) : IviFunctionalTestCase

Base class for tests that require an IVI activity to be launched.

Constructors

Link copied to clipboard
fun IviActivityTestCase(activityIntent: Intent)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val dataBindingIdlingResourceRule: TestRule

Ensures that LiveData changes are processed in the view through data binding before verifying the view's state through Espresso.

Link copied to clipboard
val iviActivityTestRuleChain: RuleChain

Ensures that:

Link copied to clipboard
val locationSimulationPossible: Boolean

true if location simulation is possible. If false, location simulation is not possible because the SUT is not configured with the LocationSimulationService or the mock_location permission is not granted.

Link copied to clipboard
val primaryActivityScenarioState: Lifecycle.State

The state of the primary activity.

Link copied to clipboard

Note: Not annotated with @Rule. See iviActivityTestRuleChain.

Link copied to clipboard
val webserviceMockUri: String

The URI of the WebserviceMockServer.

Inherited properties

Link copied to clipboard
open override val clearSharedPreferencesRule: ClearSharedPreferencesRule
Link copied to clipboard
val locationManager: LocationManager
Link copied to clipboard
val ruleChain: RuleChain
Link copied to clipboard
val serviceRulesChain: RuleChain
Link copied to clipboard
val testLifecycleOwner: TestLifecycleOwner
Link copied to clipboard
val testPackageName: String

Functions

Link copied to clipboard
open override fun setOrientationLandscape()
Link copied to clipboard
open override fun setOrientationPortrait()
Link copied to clipboard
fun verifySoftwareInputHidden()

Verifies if Android soft input is hidden.

Link copied to clipboard
fun verifySoftwareInputShown()

Verifies if Android soft input is shown.

Link copied to clipboard
fun webserviceMockCaptureYield(description: String)
fun webserviceMockCaptureYield(description: String, durationMs: Long)

Inherited functions

Link copied to clipboard
inline fun <T : TraceEventConsumer> createTraceEventConsumer(localProcessOnly: Boolean = false): T

Creates a TraceEventConsumer that can be used to verify whether trace events are generated during a test. See TraceEventConsumersRule for description and example usages.

Link copied to clipboard
fun initializeTest()
Link copied to clipboard
fun registerTraceEventConsumer(    traceEventConsumer: TraceEventConsumer,     contextRegex: Regex?,     localProcessOnly: Boolean = false)

Do not use. Use createTraceEventConsumer instead.