/tools/tradefederation/core/tests/src/com/android/tradefed/retry/ |
D | BaseRetryDecisionTest.java | 27 import com.android.tradefed.result.FailureDescription; 122 TestRunResult result = createResult(null, FailureDescription.create("failure2")); in testShouldRetry_failure() 133 FailureDescription.create("failure"), in testShouldRetry_failure_nonRetriable() 134 FailureDescription.create("failure2").setRetriable(false)); in testShouldRetry_failure_nonRetriable() 145 TestRunResult result = createResult(null, FailureDescription.create("failure2")); in testShouldRetry_success() 158 TestRunResult result = createResult(null, FailureDescription.create("failure2")); in testShouldRetry_morefailure() 164 TestRunResult result2 = createResult(FailureDescription.create("failure"), null); in testShouldRetry_morefailure() 171 FailureDescription failure = FailureDescription.create("run failure"); in testShouldRetry_runFailure() 181 FailureDescription failure = FailureDescription.create("run failure"); in testShouldRetry_runFailure_nonRetriable() 185 FailureDescription failure2 = FailureDescription.create("run failure2"); in testShouldRetry_runFailure_nonRetriable() [all …]
|
D | ResultAggregatorTest.java | 26 import com.android.tradefed.result.FailureDescription; 128 mDetailedListener.testFailed(test2, FailureDescription.create("I failed. retry me.")); in testForwarding() 191 mAggregator.testFailed(test2, FailureDescription.create("I failed. retry me.")); in testForwarding() 221 FailureDescription.create("run fail"), in testForwarding_runFailure() 222 FailureDescription.create("run fail 2")); in testForwarding_runFailure() 345 mDetailedListener.testRunFailed(EasyMock.eq(FailureDescription.create("run fail"))); in testForwarding_runFailure_noRerun() 357 mAggListener.testFailed(test2, FailureDescription.create("I failed. retry me.")); in testForwarding_runFailure_noRerun() 362 mAggListener.testRunFailed(EasyMock.eq(FailureDescription.create("run fail"))); in testForwarding_runFailure_noRerun() 441 mDetailedListener.testRunFailed(EasyMock.eq(FailureDescription.create("run fail"))); in testForwarding_runFailure_aggregation() 456 FailureDescription.create("I failed. retry me."), in testForwarding_runFailure_aggregation() [all …]
|
/tools/tradefederation/core/test_result_interfaces/com/android/tradefed/result/ |
D | FailureDescription.java | 27 public class FailureDescription { class 48 FailureDescription() {} in FailureDescription() method in FailureDescription 54 public FailureDescription setFailureStatus(TestRecordProto.FailureStatus status) { in setFailureStatus() 68 public FailureDescription setActionInProgress(ActionInProgress action) { in setActionInProgress() 79 public FailureDescription setDebugHelpMessage(String message) { in setDebugHelpMessage() 90 public FailureDescription setCause(Throwable cause) { in setCause() 101 public FailureDescription setRetriable(boolean retriable) { in setRetriable() 112 public FailureDescription setErrorIdentifier(ErrorIdentifier errorId) { in setErrorIdentifier() 123 public FailureDescription setOrigin(String origin) { in setOrigin() 155 public static FailureDescription create(String errorMessage) { in create() [all …]
|
D | MultiFailureDescription.java | 32 public final class MultiFailureDescription extends FailureDescription { 34 private List<FailureDescription> mFailures = new ArrayList<>(); 36 public MultiFailureDescription(List<FailureDescription> failures) { in MultiFailureDescription() 41 public MultiFailureDescription(FailureDescription... failures) { in MultiFailureDescription() 51 public MultiFailureDescription addFailure(FailureDescription failure) { in addFailure() 64 public List<FailureDescription> getFailures() { in getFailures() 106 for (FailureDescription desc : mFailures) { in isRetriable() 123 for (FailureDescription f : mFailures) { in toString() 147 private void addMultiFailures(List<FailureDescription> failures) { in addMultiFailures() 148 for (FailureDescription failure : failures) { in addMultiFailures()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/result/proto/ |
D | ProtoResultParserTest.java | 31 import com.android.tradefed.result.FailureDescription; 161 mMockListener.testFailed(test2, FailureDescription.create("I failed")); in testEvents() 172 Capture<FailureDescription> captureInvocFailure = new Capture<>(); in testEvents() 232 FailureDescription invocFailureCaptured = captureInvocFailure.getValue(); in testEvents() 251 FailureDescription invocFailure = in testEvents_invocationFailure() 252 FailureDescription.create(failure.getMessage()) in testEvents_invocationFailure() 261 Capture<FailureDescription> captureInvocFailure = new Capture<>(); in testEvents_invocationFailure() 276 FailureDescription invocFailureCaptured = captureInvocFailure.getValue(); in testEvents_invocationFailure() 293 FailureDescription invocFailure = in testEvents_invocationFailure_errorNotSet() 294 FailureDescription.create(failure.getMessage()) in testEvents_invocationFailure_errorNotSet() [all …]
|
/tools/tradefederation/core/invocation_interfaces/com/android/tradefed/result/ |
D | TestRunResult.java | 64 private FailureDescription mRunFailureError = null; 217 public FailureDescription getRunFailureDescription() { in getRunFailureDescription() 285 TestDescription test, TestStatus status, FailureDescription failure) { in updateTestResult() 299 updateTestResult(test, TestStatus.FAILURE, FailureDescription.create(trace)); in testFailed() 302 public void testFailed(TestDescription test, FailureDescription failure) { in testFailed() 307 updateTestResult(test, TestStatus.ASSUMPTION_FAILURE, FailureDescription.create(trace)); in testAssumptionFailure() 336 testRunFailed((FailureDescription) null); in testRunFailed() 338 testRunFailed(FailureDescription.create(errorMessage)); in testRunFailed() 342 public void testRunFailed(FailureDescription failureDescription) { in testRunFailed() 344 failureDescription = FailureDescription.create("testRunFailed(null) was called."); in testRunFailed() [all …]
|
D | TestResult.java | 37 private FailureDescription mFailureDescription; 73 public FailureDescription getFailure() { in getFailure() 139 mFailureDescription = FailureDescription.create(stackTrace); in setStackTrace() 143 public void setFailure(FailureDescription failureDescription) { in setFailure() 204 List<FailureDescription> errors = new ArrayList<>(); in merge() 229 errors.add(FailureDescription.create("incomplete test case result.")); in merge()
|
/tools/tradefederation/core/src/com/android/tradefed/result/proto/ |
D | ProtoResultParser.java | 28 import com.android.tradefed.result.FailureDescription; 214 FailureDescription failure = in completeModuleEvents() 215 FailureDescription.create( in completeModuleEvents() 311 FailureDescription failure = FailureDescription.create(debugInfo.getErrorMessage()); in handleInvocationEnded() 423 FailureDescription failure = FailureDescription.create(debugInfo.getErrorMessage()); in handleTestRunEnd() 459 FailureDescription failure = in handleTestCaseEnd() 460 FailureDescription.create(testcaseProto.getDebugInfo().getErrorMessage()); in handleTestCaseEnd() 472 FailureDescription assumption = in handleTestCaseEnd() 473 FailureDescription.create(testcaseProto.getDebugInfo().getErrorMessage()); in handleTestCaseEnd() 646 private void parseDebugInfoContext(DebugInfo debugInfo, FailureDescription failure) { in parseDebugInfoContext()
|
D | ProtoResultReporter.java | 24 import com.android.tradefed.result.FailureDescription; 70 private FailureDescription mInvocationFailureDescription = null; 179 FailureDescription.create(cause.getMessage()).setCause(cause); in invocationFailed() 188 public void invocationFailed(FailureDescription failure) { in invocationFailed() 310 public final void testRunFailed(FailureDescription failure) { in testRunFailed() 426 public final void testFailed(TestDescription test, FailureDescription failure) { in testFailed() 468 public final void testAssumptionFailure(TestDescription test, FailureDescription failure) { in testAssumptionFailure()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/result/ |
D | SubprocessResultsReporterTest.java | 125 Capture<FailureDescription> captured = new Capture<>(); in testPrintEvent_printToSocket() 146 FailureDescription capturedFailure = captured.getValue(); in testPrintEvent_printToSocket() 163 Capture<FailureDescription> captured = new Capture<>(); in testPrintEvent_printToSocket_StructuredFailures() 164 Capture<FailureDescription> invocationFailureCaptured = new Capture<>(); in testPrintEvent_printToSocket_StructuredFailures() 177 FailureDescription runFailure = in testPrintEvent_printToSocket_StructuredFailures() 178 FailureDescription.create("no reason") in testPrintEvent_printToSocket_StructuredFailures() 184 FailureDescription invocationFailure = in testPrintEvent_printToSocket_StructuredFailures() 185 FailureDescription.create("invoc error") in testPrintEvent_printToSocket_StructuredFailures() 198 FailureDescription capturedFailure = captured.getValue(); in testPrintEvent_printToSocket_StructuredFailures() 210 FailureDescription capturedInvocation = invocationFailureCaptured.getValue(); in testPrintEvent_printToSocket_StructuredFailures()
|
D | MultiFailureDescriptionTest.java | 32 FailureDescription failure1 = FailureDescription.create("error message 1"); in testCreation() 33 FailureDescription failure2 = FailureDescription.create("error message 2"); in testCreation() 43 FailureDescription failure1 = FailureDescription.create("error message 1"); in testCreation_nested() 44 FailureDescription failure2 = FailureDescription.create("error message 2"); in testCreation_nested()
|
D | LogcatCrashResultForwarderTest.java | 58 FailureDescription.create("instrumentation failed. reason: 'Process crashed.'")); in testCaptureTestCrash_noCrashInLogcat() 95 Capture<FailureDescription> captured_1 = new Capture<>(); in testCaptureTestCrash_oneCrashingLogcat() 99 Capture<FailureDescription> captured_2 = new Capture<>(); in testCaptureTestCrash_oneCrashingLogcat() 150 mMockListener.testFailed(test, FailureDescription.create("Something went wrong.")); in testCaptureTestCrash_oneCrashingLogcatAfterTestEnded() 153 Capture<FailureDescription> captured = new Capture<>(); in testCaptureTestCrash_oneCrashingLogcatAfterTestEnded() 198 mMockListener.testFailed(test, FailureDescription.create("Something went wrong.")); in testCaptureTestCrash_duplicateStack() 201 Capture<FailureDescription> captured = new Capture<>(); in testCaptureTestCrash_duplicateStack()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/ |
D | InstrumentationTestTest.java | 53 import com.android.tradefed.result.FailureDescription; 401 FailureDescription error1 = in testRun_betterFailure() 402 FailureDescription.create( in testRun_betterFailure() 467 FailureDescription.create(RUN_ERROR_MSG, FailureStatus.TEST_FAILURE)); in testRun_rerun() 469 inOrder.verify(mMockListener).testFailed(eq(TEST2), (FailureDescription) any()); in testRun_rerun() 521 FailureDescription failure = in testRun_duplicate() 522 FailureDescription.create( in testRun_duplicate() 710 FailureDescription.create(RUN_ERROR_MSG, FailureStatus.TEST_FAILURE)); in testRun_rerunCoverage() 819 FailureDescription.create(RUN_ERROR_MSG, FailureStatus.TEST_FAILURE)); in testRun_rebootBeforeReRun() 885 FailureDescription.create(RUN_ERROR_MSG, FailureStatus.TEST_FAILURE)); in testRun_resume() [all …]
|
D | DeviceBatteryLevelCheckerTest.java | 30 import com.android.tradefed.result.FailureDescription; 128 mTestDescription, FailureDescription.create("Failed to determine battery level")); in testNull() 131 FailureDescription failure = FailureDescription.create("No battery charge information"); in testNull() 176 EasyMock.eq(mTestDescription2), EasyMock.<FailureDescription>anyObject()); in testLow() 237 mTestDescription, FailureDescription.create("Failed to read battery level")); in testLow_becomeNull() 240 FailureDescription failure = FailureDescription.create("No battery charge information"); in testLow_becomeNull()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/binary/ |
D | ExecutableHostTestTest.java | 37 import com.android.tradefed.result.FailureDescription; 102 FailureDescription failure = in testRunHostExecutable_doesNotExists() 103 FailureDescription.create( in testRunHostExecutable_doesNotExists() 203 FailureDescription failure = in testRunHostExecutable_dnae() 204 FailureDescription.create( in testRunHostExecutable_dnae() 273 FailureDescription failure = in testRunHostExecutable_notFound() 274 FailureDescription.create( in testRunHostExecutable_notFound() 325 FailureDescription.create("stdout\nExit Code: 5") in testRunHostExecutable_failure() 371 FailureDescription.create("stdout\nTimeout.\nExit Code: 5") in testRunHostExecutable_timeout()
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/ |
D | DeviceBatteryLevelChecker.java | 28 import com.android.tradefed.result.FailureDescription; 137 FailureDescription failure = in run() 138 FailureDescription.create(e.getMessage()) in run() 153 FailureDescription failure = in run() 154 FailureDescription.create("No battery charge information"); in run() 182 FailureDescription.create("Failed to determine battery level")); in runTest() 269 test, FailureDescription.create("Failed to read battery level")); in runBatteryCharging() 291 FailureDescription.create( in checkChargingSpeed()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/ |
D | ModuleDefinitionTest.java | 48 import com.android.tradefed.result.FailureDescription; 457 Capture<FailureDescription> failureDescription = new Capture<>(); in testDynamicDownloadThrows_ReportsRunFailed() 488 Capture<FailureDescription> captured = new Capture<>(); in testRun_tearDownException() 546 Capture<FailureDescription> captured = new Capture<>(); in testRun_aggregateRunFailures() 691 Capture<FailureDescription> captured = new Capture<>(); in testRun_failPreparation() 735 Capture<FailureDescription> captured = new Capture<>(); in testRun_failPreparation_runtime() 776 Capture<FailureDescription> captured = new Capture<>(); in testRun_failPreparation_error() 823 Capture<FailureDescription> captured1 = new Capture<>(); in testRun_failPreparation_moduleListener() 830 Capture<FailureDescription> captured2 = new Capture<>(); in testRun_failPreparation_moduleListener() 876 Capture<FailureDescription> captured = new Capture<>(); in testRun_failPreparation_unresponsive() [all …]
|
D | ITestSuiteTest.java | 57 import com.android.tradefed.result.FailureDescription; 690 FailureDescription.create("unresponsive", FailureStatus.LOST_SYSTEM_UNDER_TEST)); in testRun_unresponsiveDevice() 749 mMockListener.testRunFailed(FailureDescription.create("I failed")); in testRun_deviceUnavailable() 758 FailureDescription.create( in testRun_deviceUnavailable() 816 Capture<FailureDescription> captured = new Capture<>(); in testRun_runtimeException() 825 FailureDescription exception = captured.getValue(); in testRun_runtimeException() 1818 FailureDescription.create("Injected message", FailureStatus.NOT_EXECUTED)); in testReportNotExecuted() 1845 FailureDescription error = in testReportNotExecuted_moduleInProgress() 1846 FailureDescription.create( in testReportNotExecuted_moduleInProgress() 1859 FailureDescription.create("Injected message", FailureStatus.NOT_EXECUTED)); in testReportNotExecuted_moduleInProgress()
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/ |
D | ModuleDefinition.java | 49 import com.android.tradefed.result.FailureDescription; 619 ITestLogger listener, String moduleId, FailureDescription failure) { in captureBugreport() 663 List<FailureDescription> runFailureMessages = new ArrayList<>(); in reportFinalResults() 703 FailureDescription mismatch = in reportFinalResults() 704 FailureDescription.create(error) in reportFinalResults() 712 FailureDescription failure = in reportFinalResults() 1010 FailureDescription description = in reportNotExecuted() 1011 FailureDescription.create(message).setFailureStatus(FailureStatus.NOT_EXECUTED); in reportNotExecuted() 1130 FailureDescription failureDescription = in reportSetupFailure()
|
/tools/tradefederation/core/src/com/android/tradefed/retry/ |
D | ResultAggregator.java | 23 import com.android.tradefed.result.FailureDescription; 68 private List<FailureDescription> mAllDetailedFailures = new ArrayList<>(); 124 public void invocationFailed(FailureDescription failure) { in invocationFailed() 236 public void testRunFailed(FailureDescription failure) { in testRunFailed() 266 public void testFailed(TestDescription test, FailureDescription failure) { in testFailed() 301 FailureDescription currentFailure = mDetailedRunResults.getRunFailureDescription(); in testRunEnded() 398 FailureDescription.create("Test did not complete due to exception.")); in forwardTestResults()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/ |
D | InstrumentationListener.java | 22 import com.android.tradefed.result.FailureDescription; 96 public void testRunFailed(FailureDescription error) { in testRunFailed() 121 FailureDescription error = in testRunEnded() 122 FailureDescription.create( in testRunEnded() 136 FailureDescription failure = in testRunEnded() 137 FailureDescription.create( in testRunEnded()
|
/tools/tradefederation/core/src/com/android/tradefed/util/ |
D | SubprocessEventHelper.java | 21 import com.android.tradefed.result.FailureDescription; 133 public FailureDescription mFailure = null; 139 public TestRunFailedEventInfo(FailureDescription failure) { in TestRunFailedEventInfo() 146 FailureDescription.create(mReason) in TestRunFailedEventInfo() 264 public FailureDescription mFailure = null; 270 public InvocationFailedEventInfo(FailureDescription failure) { in InvocationFailedEventInfo() 285 FailureDescription.create(jsonObject.optString(REASON_KEY)) in InvocationFailedEventInfo()
|
/tools/tradefederation/core/src/com/android/tradefed/invoker/ |
D | RemoteInvocationExecution.java | 43 import com.android.tradefed.result.FailureDescription; 722 private FailureDescription createInvocationFailure(String errorMessage, FailureStatus status) { in createInvocationFailure() 723 FailureDescription failure = FailureDescription.create(errorMessage); in createInvocationFailure() 729 private FailureDescription createInvocationFailure(Exception e, FailureStatus status) { in createInvocationFailure() 730 FailureDescription failure = FailureDescription.create(e.getMessage()); in createInvocationFailure()
|
D | TestInvocation.java | 65 import com.android.tradefed.result.FailureDescription; 384 FailureDescription failure = in performInvocation() 385 FailureDescription.create(message, FailureStatus.CANCELLED); in performInvocation() 464 private void reportFailure(FailureDescription failure, ITestInvocationListener listener) { in reportFailure() 481 private FailureDescription createFailureFromException( in createFailureFromException() 487 FailureDescription failure = in createFailureFromException() 876 FailureDescription failure = FailureDescription.create(e.getMessage()); in invoke()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/result/ddmlib/ |
D | TestRunToTestInvocationForwarderTest.java | 20 import com.android.tradefed.result.FailureDescription; 94 FailureDescription expectedFailure = in testForwarding_null() 95 FailureDescription.create( in testForwarding_null() 133 FailureDescription expectedFailure = in testForwarding_initError() 134 FailureDescription.create( in testForwarding_initError()
|