Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)

UiAutomatorTestCase

Class Overview

UI automation tests should extend this class. This class provides access to the following:

  • UiDevice instance
  • Bundle for command line parameters

Summary

Public Constructors
UiAutomatorTestCase ()
Public Methods
IAutomationSupport getAutomationSupport ()
Provides support for running tests to report interim status
Bundle getParams ()
Get command line parameters.
UiDevice getUiDevice ()
Get current instance of UiDevice .
void sleep (long ms)
Calls sleep(long) to sleep
[Expand]
Inherited Methods
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 ()

Provides support for running tests to report interim status

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)

Calls sleep(long) to sleep

Parameters
ms is in milliseconds.