java.lang.Object | ||||
↳ | junit.framework.Assert | |||
↳ | junit.framework.TestCase | |||
↳ | android.test.InstrumentationTestCase | |||
↳ | android.support.test.jank.JankTestBase |
Base test class for measuring Jank.
This test class automatically monitors jank while executing each test method. Each test method is
executed several times in a loop, according to the 'iterations' command line parameter.
To perform additional setup / tear down steps for each iteration, subclasses can optionally
override beforeLoop()
and afterLoop()
methods.
Test methods must be configured with the JankTest
annotation. At minimum, the type of
jank to measure and the number of expected frames must be specified.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Called after each iteration of the test method.
| |||||||||||
Called once after all iterations have completed.
| |||||||||||
Called before each iteration of the test method.
| |||||||||||
Called once before executing a test method.
| |||||||||||
Return the index of the currently executing iteration.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns a
Bundle containing the command line parameters.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
Called after each iteration of the test method.
Exception |
---|
Called once after all iterations have completed.
Note: default implementation reports the aggregated jank metrics via
sendStatus(int, Bundle)
metrics | the aggregated jank metrics after looped execution |
---|
Called before each iteration of the test method.
Exception |
---|
Called once before executing a test method.
Exception |
---|
Return the index of the currently executing iteration.
Throwable |
---|