class ScreenData


Stores metadata for a visited screen in an Espresso test.

Summary

Public constructors

Public functions

Unit

Adds an ActionData with this as source and a given ScreenData as the destination.

Unit

Creates and appends an artifact to this ScreenData object.

Unit
addViewData(viewData: ViewData)

Creates and appends a ViewData to this object.

List<ActionData>

Gets the list of ActionData objects corresponding to actions taken from this screen.

List<TestArtifact>

Gets the list of TestArtifact objects on this screen.

List<ViewData>

Gets the list of ViewData objects on this screen.

Public properties

Int

Public constructors

ScreenData

ScreenData()

Public functions

addAction

fun addAction(action: ActionData): Unit

Adds an ActionData with this as source and a given ScreenData as the destination.

addArtifact

fun addArtifact(artifact: TestArtifact): Unit

Creates and appends an artifact to this ScreenData object.

addViewData

fun addViewData(viewData: ViewData): Unit

Creates and appends a ViewData to this object.

getActions

fun getActions(): List<ActionData>

Gets the list of ActionData objects corresponding to actions taken from this screen.

getArtifacts

fun getArtifacts(): List<TestArtifact>

Gets the list of TestArtifact objects on this screen.

getViews

fun getViews(): List<ViewData>

Gets the list of ViewData objects on this screen.

Public properties

actionIndex

var actionIndexInt