| android.support.test.espresso.remote.RemoteInteraction |
Known Indirect Subclasses
| EspressoRemote |
A singleton class that facilitates communication between other Espresso instance that may be
running in different processes. |
| NoopRemoteInteraction |
Noop RemoteInteraction object |
|
Class Overview
Facilitates communication between other Espresso instance that may be
running in different processes.
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. |
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. |