UiAutomatorTestCase
  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.
  
UI Automator test case that is executed on the device.
Summary
Public constructors | |
|---|---|
      
      UiAutomatorTestCase()
      
      
     | 
  |
Public methods | |
|---|---|
        
        
        
        
        
        IAutomationSupport
     | 
  
    
      
      getAutomationSupport()
      
      
        
      This method is deprecated.
    Use   | 
  
        
        
        
        
        
        Bundle
     | 
  
    
      
      getParams()
      
      
        Get command line parameters.  | 
  
        
        
        
        
        
        UiDevice
     | 
  
    
      
      getUiDevice()
      
      
        Get current instance of   | 
  
        
        
        
        
        
        void
     | 
  
    
      
      sleep(long ms)
      
      
        
      This method is deprecated.
    Use   | 
  
Inherited methods | |
|---|---|
  
    
  
    android.test.InstrumentationTestCase
  
 | |
  
    
  
    junit.framework.TestCase
  
 | |
  
    
  
    junit.framework.Assert
  
 | |
  
    
  
    java.lang.Object
  
 | |
  
    
  
    junit.framework.Test
  
 | |
Public constructors
UiAutomatorTestCase
UiAutomatorTestCase ()
Public methods
getAutomationSupport
IAutomationSupport getAutomationSupport ()
      This method is deprecated.
    Use sendStatus(int, Bundle) instead
  
Provides support for running tests to report interim status
| Returns | |
|---|---|
IAutomationSupport | 
        IAutomationSupport | 
getParams
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.
| Returns | |
|---|---|
Bundle | 
        |
getUiDevice
UiDevice getUiDevice ()
Get current instance of UiDevice. Works similar to calling the static
 getInstance() from anywhere in the test classes.
| Returns | |
|---|---|
UiDevice | 
        |
sleep
void sleep (long ms)
      This method is deprecated.
    Use sleep(long) instead.
  
Calls sleep(long) to sleep
| Parameters | |
|---|---|
ms | 
        
          long: is in milliseconds. | 
      
Interfaces
Classes
Enums
Exceptions