public class

UiAutomatorTestCase

extends InstrumentationTestCase
java.lang.Object
   ↳ junit.framework.Assert
     ↳ junit.framework.TestCase
       ↳ android.test.InstrumentationTestCase
         ↳ android.support.test.uiautomator.UiAutomatorTestCase

This class is deprecated.
It is no longer necessary to extend UiAutomatorTestCase. You can use getInstance(Instrumentation) from any test class as long as you have access to an Instrumentation instance.

Class Overview

UI Automator test case that is executed on the device.

Summary

Public Constructors
UiAutomatorTestCase()
Public Methods
IAutomationSupport getAutomationSupport()
This method is deprecated. Use sendStatus(int, Bundle) instead
Bundle getParams()
Get command line parameters.
UiDevice getUiDevice()
Get current instance of UiDevice.
void sleep(long ms)
This method is deprecated. Use sleep(long) instead.
[Expand]
Inherited Methods
From class android.test.InstrumentationTestCase
From class junit.framework.TestCase
From class junit.framework.Assert
From class java.lang.Object
From interface junit.framework.Test

Public Constructors

public UiAutomatorTestCase ()

Public Methods

public IAutomationSupport getAutomationSupport ()

This method is deprecated.
Use sendStatus(int, Bundle) instead

Provides support for running tests to report interim status

Returns
  • IAutomationSupport

public Bundle getParams ()

Get command line parameters. On the command line when passing -e key value pairs, the Bundle will have the key value pairs conveniently available to the tests.

public UiDevice getUiDevice ()

Get current instance of UiDevice. Works similar to calling the static getInstance() from anywhere in the test classes.

public void sleep (long ms)

This method is deprecated.
Use sleep(long) instead.

Calls sleep(long) to sleep

Parameters
ms is in milliseconds.