Home
last modified time | relevance | path

Searched refs:failure (Results 1 – 25 of 88) sorted by relevance

1234

/tools/tradefederation/core/src/com/android/tradefed/result/proto/
DProtoResultReporter.java188 public void invocationFailed(FailureDescription failure) { in invocationFailed() argument
189 mInvocationFailureDescription = failure; in invocationFailed()
310 public final void testRunFailed(FailureDescription failure) { in testRunFailed() argument
313 debugBuilder.setErrorMessage(failure.toString()); in testRunFailed()
314 if (failure.getFailureStatus() != null) { in testRunFailed()
315 debugBuilder.setFailureStatus(failure.getFailureStatus()); in testRunFailed()
318 if (failure.getActionInProgress() != null) { in testRunFailed()
319 debugContext.setActionInProgress(failure.getActionInProgress().toString()); in testRunFailed()
321 if (!Strings.isNullOrEmpty(failure.getDebugHelpMessage())) { in testRunFailed()
322 debugContext.setDebugHelpMessage(failure.getDebugHelpMessage()); in testRunFailed()
[all …]
DProtoResultParser.java214 FailureDescription failure = in completeModuleEvents() local
218 mListener.testRunFailed(failure); in completeModuleEvents()
311 FailureDescription failure = FailureDescription.create(debugInfo.getErrorMessage()); in handleInvocationEnded() local
314 failure.setFailureStatus(debugInfo.getFailureStatus()); in handleInvocationEnded()
316 parseDebugInfoContext(endInvocationProto.getDebugInfo(), failure); in handleInvocationEnded() local
324 failure.setCause(invocationError); in handleInvocationEnded()
328 failure.setCause(new RuntimeException(failure.getErrorMessage())); in handleInvocationEnded()
332 mListener.invocationFailed(failure); in handleInvocationEnded()
423 FailureDescription failure = FailureDescription.create(debugInfo.getErrorMessage()); in handleTestRunEnd() local
426 failure.setFailureStatus(debugInfo.getFailureStatus()); in handleTestRunEnd()
[all …]
/tools/test/connectivity/acts_tests/tests/google/tel/live/
DTelLiveMobilityStressTest.py186 failure = 0
197 failure += 1
206 self.dut.log.info("Crashes found: %s", failure)
207 if failure:
275 failure = 0
289 failure += 1
302 self.dut.log.info("Call test failure: %s/%s", failure, total_count)
303 if failure:
309 failure = 0
317 failure += 1
[all …]
/tools/tradefederation/core/src/com/android/tradefed/device/metric/
DBaseDeviceMetricCollector.java208 public final void invocationFailed(FailureDescription failure) { in invocationFailed() argument
209 mForwarder.invocationFailed(failure); in invocationFailed()
263 public final void testRunFailed(FailureDescription failure) { in testRunFailed() argument
264 mForwarder.testRunFailed(failure); in testRunFailed()
319 public final void testFailed(TestDescription test, FailureDescription failure) { in testFailed() argument
322 if (failure.getFailureStatus() == null in testFailed()
323 || !FailureStatus.NOT_EXECUTED.equals(failure.getFailureStatus())) { in testFailed()
332 mForwarder.testFailed(test, failure); in testFailed()
371 public final void testAssumptionFailure(TestDescription test, FailureDescription failure) { in testAssumptionFailure() argument
380 mForwarder.testAssumptionFailure(test, failure); in testAssumptionFailure()
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/
DModuleListener.java93 public void testRunFailed(FailureDescription failure) { in testRunFailed() argument
94 CLog.d("ModuleListener.testRunFailed(%s)", failure.toString()); in testRunFailed()
95 super.testRunFailed(failure); in testRunFailed()
172 public void testAssumptionFailure(TestDescription test, FailureDescription failure) { in testAssumptionFailure() argument
173 super.testAssumptionFailure(test, failure); in testAssumptionFailure()
175 mTrace = failure.toString(); in testAssumptionFailure()
191 public void testFailed(TestDescription test, FailureDescription failure) { in testFailed() argument
196 mTrace = failure.toString(); in testFailed()
197 super.testFailed(test, failure); in testFailed()
/tools/tradefederation/core/test_result_interfaces/com/android/tradefed/result/
DMultiFailureDescription.java51 public MultiFailureDescription addFailure(FailureDescription failure) { in addFailure() argument
52 if (failure instanceof MultiFailureDescription) { in addFailure()
53 addMultiFailures(((MultiFailureDescription) failure).getFailures()); in addFailure()
55 mFailures.add(failure); in addFailure()
148 for (FailureDescription failure : failures) { in addMultiFailures()
149 if (failure instanceof MultiFailureDescription) { in addMultiFailures()
150 addMultiFailures(((MultiFailureDescription) failure).getFailures()); in addMultiFailures()
152 mFailures.add(failure); in addMultiFailures()
DITestLifeCycleReceiver.java95 public default void testRunFailed(FailureDescription failure) { in testRunFailed() argument
96 testRunFailed(failure.toString()); in testRunFailed()
164 public default void testFailed(TestDescription test, FailureDescription failure) { in testFailed() argument
165 testFailed(test, failure.toString()); in testFailed()
182 public default void testAssumptionFailure(TestDescription test, FailureDescription failure) { in testAssumptionFailure() argument
183 testAssumptionFailure(test, failure.toString()); in testAssumptionFailure()
/tools/tradefederation/core/src/com/android/tradefed/invoker/
DTestInvocation.java384 FailureDescription failure = in performInvocation() local
386 reportFailure(failure, listener); in performInvocation()
464 private void reportFailure(FailureDescription failure, ITestInvocationListener listener) { in reportFailure() argument
466 CLog.e("An invocation failure was already reported, ignoring %s", failure); in reportFailure()
470 listener.invocationFailed(failure); in reportFailure()
487 FailureDescription failure = in createFailureFromException() local
492 failure.setErrorIdentifier(id); in createFailureFromException()
493 failure.setFailureStatus(id.status()); in createFailureFromException()
495 return failure; in createFailureFromException()
876 FailureDescription failure = FailureDescription.create(e.getMessage()); in invoke()
[all …]
DRemoteInvocationExecution.java723 FailureDescription failure = FailureDescription.create(errorMessage); in createInvocationFailure() local
724 failure.setFailureStatus(status); in createInvocationFailure()
725 failure.setCause(new RuntimeException(errorMessage)); in createInvocationFailure()
726 return failure; in createInvocationFailure()
730 FailureDescription failure = FailureDescription.create(e.getMessage()); in createInvocationFailure() local
731 failure.setFailureStatus(status); in createInvocationFailure()
732 failure.setCause(e); in createInvocationFailure()
733 return failure; in createInvocationFailure()
DShardListener.java101 public void invocationFailed(FailureDescription failure) { in invocationFailed() argument
102 super.invocationFailed(failure); in invocationFailed()
104 mMainListener.invocationFailed(failure); in invocationFailed()
166 public void testRunFailed(FailureDescription failure) { in testRunFailed() argument
167 super.testRunFailed(failure); in testRunFailed()
172 failure.toString()); in testRunFailed()
/tools/tradefederation/core/tests/src/com/android/tradefed/retry/
DBaseRetryDecisionTest.java171 FailureDescription failure = FailureDescription.create("run failure"); in testShouldRetry_runFailure() local
172 TestRunResult result = createResult(null, null, failure); in testShouldRetry_runFailure()
181 FailureDescription failure = FailureDescription.create("run failure"); in testShouldRetry_runFailure_nonRetriable() local
182 failure.setRetriable(false); in testShouldRetry_runFailure_nonRetriable()
183 TestRunResult result = createResult(null, null, failure); in testShouldRetry_runFailure_nonRetriable()
197 FailureDescription failure = FailureDescription.create("run failure"); in testShouldRetry_multi_runFailure_nonRetriable() local
198 failure.setRetriable(false); in testShouldRetry_multi_runFailure_nonRetriable()
199 TestRunResult result = createResult(null, null, failure); in testShouldRetry_multi_runFailure_nonRetriable()
/tools/tradefederation/core/src/com/android/tradefed/postprocessor/
DBasePostProcessor.java110 public final void invocationFailed(FailureDescription failure) { in invocationFailed() argument
111 mForwarder.invocationFailed(failure); in invocationFailed()
151 public final void testRunFailed(FailureDescription failure) { in testRunFailed() argument
152 mForwarder.testRunFailed(failure); in testRunFailed()
214 public final void testFailed(TestDescription test, FailureDescription failure) { in testFailed() argument
215 mForwarder.testFailed(test, failure); in testFailed()
280 public final void testAssumptionFailure(TestDescription test, FailureDescription failure) { in testAssumptionFailure() argument
281 mForwarder.testAssumptionFailure(test, failure); in testAssumptionFailure()
/tools/test/connectivity/acts_tests/tests/google/bt/car_bt/
DBtCarPairedConnectDisconnectTest.py114 failure = 0
136 failure = failure + 1
154 failure = failure + 1
157 self.log.info("Failure {} total tests {}".format(failure,
159 if failure > 0:
/tools/tradefederation/core/src/com/android/tradefed/retry/
DResultAggregator.java124 public void invocationFailed(FailureDescription failure) { in invocationFailed() argument
125 super.invocationFailed(failure); in invocationFailed()
126 mAllForwarder.invocationFailed(failure); in invocationFailed()
236 public void testRunFailed(FailureDescription failure) { in testRunFailed() argument
237 super.testRunFailed(failure); in testRunFailed()
266 public void testFailed(TestDescription test, FailureDescription failure) { in testFailed() argument
267 super.testFailed(test, failure); in testFailed()
268 mDetailedForwarder.testFailed(test, failure); in testFailed()
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/junit4/
DRunNotifierWrapper.java35 public void fireTestFailure(Failure failure) { in fireTestFailure() argument
36 notifier.fireTestFailure(failure); in fireTestFailure()
37 if (failure.getException() instanceof DeviceNotAvailableException) { in fireTestFailure()
38 mDnae = (DeviceNotAvailableException) failure.getException(); in fireTestFailure()
43 public void fireTestAssumptionFailed(Failure failure) { in fireTestAssumptionFailed() argument
44 notifier.fireTestAssumptionFailed(failure); in fireTestAssumptionFailed()
DJUnit4ResultForwarder.java55 public void testFailure(Failure failure) throws Exception { in testFailure() argument
56 Description description = failure.getDescription(); in testFailure()
58 Throwable error = failure.getException(); in testFailure()
84 mTestCaseFailures.add(failure.getException()); in testFailure()
88 public void testAssumptionFailure(Failure failure) { in testAssumptionFailure() argument
89 mTestCaseFailures.add(failure.getException()); in testAssumptionFailure()
/tools/tradefederation/core/isolation/com/android/tradefed/isolation/
DIsolationResultForwarder.java48 public void testFailure(Failure failure) throws IOException { in testFailure() argument
49 Description desc = failure.getDescription(); in testFailure()
55 .setMessage(failure.getMessage()) in testFailure()
64 public void testAssumptionFailure(Failure failure) { in testAssumptionFailure() argument
66 Description desc = failure.getDescription(); in testAssumptionFailure()
72 .setMessage(failure.getMessage()) in testAssumptionFailure()
/tools/tradefederation/core/tests/src/com/android/tradefed/result/proto/
DProtoResultParserTest.java148 Throwable failure = new RuntimeException("invoc failure"); in testEvents() local
209 mTestParser.invocationFailed(failure); in testEvents()
250 Throwable failure = new RuntimeException("invoc failure"); in testEvents_invocationFailure() local
252 FailureDescription.create(failure.getMessage()) in testEvents_invocationFailure()
253 .setCause(failure) in testEvents_invocationFailure()
291 Throwable failure = new RuntimeException("invoc failure"); in testEvents_invocationFailure_errorNotSet() local
294 FailureDescription.create(failure.getMessage()) in testEvents_invocationFailure_errorNotSet()
295 .setCause(failure) in testEvents_invocationFailure_errorNotSet()
/tools/tradefederation/core/invocation_interfaces/com/android/tradefed/invoker/logger/
DCurrentInvocation.java170 FailureDescription failure = FailureDescription.create(errorMessage); in createFailure() local
173 failure.setActionInProgress(action); in createFailure()
176 failure.setErrorIdentifier(errorIdentifier); in createFailure()
177 failure.setFailureStatus(errorIdentifier.status()); in createFailure()
181 failure.setOrigin(clazz.getCanonicalName()); in createFailure()
182 return failure; in createFailure()
/tools/tradefederation/core/src/com/android/tradefed/result/
DLogcatCrashResultForwarder.java73 public void testFailed(TestDescription test, FailureDescription failure) { in testFailed() argument
75 String trace = extractCrashAndAddToMessage(failure.getErrorMessage(), mStartTime); in testFailed()
76 if (trace.compareTo(failure.getErrorMessage()) != 0) { in testFailed()
78 failure.setFailureStatus(FailureStatus.TEST_FAILURE); in testFailed()
80 failure.setErrorMessage(trace); in testFailed()
81 super.testFailed(test, failure); in testFailed()
DResultForwarder.java123 public void invocationFailed(FailureDescription failure) { in invocationFailed() argument
126 listener.invocationFailed(failure); in invocationFailed()
226 public void testRunFailed(FailureDescription failure) { in testRunFailed() argument
229 listener.testRunFailed(failure); in testRunFailed()
299 public void testFailed(TestDescription test, FailureDescription failure) { in testFailed() argument
302 listener.testFailed(test, failure); in testFailed()
/tools/tradefederation/core/src/com/android/tradefed/testtype/
DDeviceBatteryLevelChecker.java137 FailureDescription failure = in run()
143 failure.setFailureStatus(e.getErrorId().status()); in run()
145 listener.testRunFailed(failure); in run()
153 FailureDescription failure = in run() local
155 failure.setFailureStatus(FailureStatus.NOT_EXECUTED); in run()
156 listener.testFailed(mChargingSpeed, failure); in run()
/tools/tradefederation/core/src/com/android/tradefed/util/
DSubprocessEventHelper.java139 public TestRunFailedEventInfo(FailureDescription failure) { in TestRunFailedEventInfo() argument
140 mFailure = failure; in TestRunFailedEventInfo()
270 public InvocationFailedEventInfo(FailureDescription failure) { in InvocationFailedEventInfo() argument
271 if (failure.getCause() != null) { in InvocationFailedEventInfo()
272 mCause = failure.getCause(); in InvocationFailedEventInfo()
274 mCause = new Throwable(failure.getErrorMessage()); in InvocationFailedEventInfo()
276 mFailure = failure; in InvocationFailedEventInfo()
/tools/tradefederation/core/proto/
Dtest_record.proto98 // A more detailed failure status description.
101 // Optional context to the failure
105 // A Fail TestStatus can be associated with a more granular failure status that helps understanding
109 // The test in progress was the reason for the failure.
115 // A failure attributed to something not functioning properly.
134 // Category of the action that was in progress during the failure
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/
DDeviceBatteryLevelCheckerTest.java131 FailureDescription failure = FailureDescription.create("No battery charge information"); in testNull() local
132 failure.setFailureStatus(FailureStatus.NOT_EXECUTED); in testNull()
133 mMockListener.testFailed(mTestDescription2, failure); in testNull()
240 FailureDescription failure = FailureDescription.create("No battery charge information"); in testLow_becomeNull() local
241 failure.setFailureStatus(FailureStatus.NOT_EXECUTED); in testLow_becomeNull()
242 mMockListener.testFailed(mTestDescription2, failure); in testLow_becomeNull()

1234