{% setvar book_path %}/reference/kotlin/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}
class TestResult
Container for a result of a single test.
This is a copy of com.android.ddmlib.testrunner.TestResult.
Nested types |
|
|---|---|
TestResult.TestStatus |
|
Public constructors |
|
|---|---|
Public functions |
|
|---|---|
Boolean |
|
Long |
Return the |
(Mutable)Map<String!, String!>! |
Get the associated test metrics. |
String! |
Get the associated |
Long |
Return the |
TestResult.TestStatus! |
Get the |
Int |
hashCode() |
Unit |
setEndTime(currentTimeMillis: Long)Sets the end time |
Unit |
setMetrics(metrics: (Mutable)Map<String!, String!>!)Set the test metrics, overriding any previous values. |
Unit |
setStackTrace(trace: String!)Set the stack trace. |
TestResult! |
setStatus(status: TestResult.TestStatus!)Set the |
fun getEndTime(): Long
Return the System#currentTimeMillis() time that the testEnded event was received.
fun getStackTrace(): String!
Get the associated String stack trace. Should be null if getStatus is TestStatus#PASSED.
fun getStartTime(): Long
Return the System#currentTimeMillis() time that the testStarted event was received.