public interface

RemoteInteraction

android.support.test.espresso.remote.RemoteInteraction
Known Indirect Subclasses

Class Overview

Facilitates communication between other Espresso instance that may be running in different processes.

Summary

Constants
String BUNDLE_EXECUTION_STATUS
Fields
public static final ListeningExecutorService REMOTE_EXECUTOR
Public Methods
abstract boolean isRemoteProcess()
abstract ListenableFuture<Void> runCheckRemotely(Matcher<Root> rootMatcher, Matcher<View> viewMatcher, Map<String, IBinder> iBinders, ViewAssertion viewAssert)
Attempts to run Espresso check interaction on a remote process.
abstract ListenableFuture<Void> runPerformRemotely(Matcher<Root> rootMatcher, Matcher<View> viewMatcher, Map<String, IBinder> iBinders, ViewAction... viewActions)
Attempts to run Espresso perform interaction on a remote process.

Constants

public static final String BUNDLE_EXECUTION_STATUS

Constant Value: "executionStatus"

Fields

public static final ListeningExecutorService REMOTE_EXECUTOR

Public Methods

public abstract boolean isRemoteProcess ()

Returns
boolean true if the current Espresso instance running in a remote process.

public abstract ListenableFuture<Void> runCheckRemotely (Matcher<Root> rootMatcher, Matcher<View> viewMatcher, Map<String, IBinder> iBinders, ViewAssertion viewAssert)

Attempts to run Espresso check interaction on a remote process.

If there are no remote Espressos currently running in a timely manner the interaction will not be executed and a NoRemoteEspressoInstanceException will be thrown.

Parameters
rootMatcher Matcher: the root matcher to use.
viewMatcher Matcher: the view matcher to use.
iBinders Map: a list of binders to pass along to the remote process instance
viewAssert ViewAssertion: the assertion to check.
Returns
ListenableFuture<Void> a ListenableFuture representing pending completion of the task.

public abstract ListenableFuture<Void> runPerformRemotely (Matcher<Root> rootMatcher, Matcher<View> viewMatcher, Map<String, IBinder> iBinders, ViewAction... viewActions)

Attempts to run Espresso perform interaction on a remote process.

If there no remote Espresso currently running in a timely manner the interaction will not be executed and a NoRemoteEspressoInstanceException will be thrown.

Parameters
rootMatcher Matcher: the root matcher to use.
viewMatcher Matcher: the view matcher to use.
iBinders Map: a list of binders to pass along to the remote process instance
viewActions ViewAction: one or more actions to execute.
Returns
ListenableFuture<Void> a ListenableFuture representing pending completion of the task.