Show navigation Hide navigation

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.