Home
last modified time | relevance | path

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

1234

/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.java51 public void testFailure(Failure failure) throws Exception { in testFailure() argument
52 Description description = failure.getDescription(); in testFailure()
54 String trace = failure.getTrace(); in testFailure()
55 if (failure.getException() instanceof CarryDnaeError) { in testFailure()
58 ((CarryDnaeError) failure.getException()) in testFailure()
64 if (failure.getException() instanceof CarryDnaeError) { in testFailure()
65 throw ((CarryDnaeError) failure.getException()).getDeviceNotAvailableException(); in testFailure()
69 mTestCaseFailures.add(failure.getException()); in testFailure()
73 public void testAssumptionFailure(Failure failure) { in testAssumptionFailure() argument
74 mTestCaseFailures.add(failure.getException()); in testAssumptionFailure()
/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.java207 FailureDescription failure = in completeModuleEvents() local
211 mListener.testRunFailed(failure); in completeModuleEvents()
304 FailureDescription failure = FailureDescription.create(debugInfo.getErrorMessage()); in handleInvocationEnded() local
307 failure.setFailureStatus(debugInfo.getFailureStatus()); in handleInvocationEnded()
309 parseDebugInfoContext(endInvocationProto.getDebugInfo(), failure); in handleInvocationEnded() local
317 failure.setCause(invocationError); in handleInvocationEnded()
324 mListener.invocationFailed(failure); in handleInvocationEnded()
415 FailureDescription failure = FailureDescription.create(debugInfo.getErrorMessage()); in handleTestRunEnd() local
418 failure.setFailureStatus(debugInfo.getFailureStatus()); in handleTestRunEnd()
421 parseDebugInfoContext(debugInfo, failure); in handleTestRunEnd()
[all …]
/tools/tradefederation/core/invocation_interfaces/com/android/tradefed/result/
DITestInvocationListener.java82 default void invocationFailed(FailureDescription failure) { in invocationFailed() argument
83 if (failure.getCause() != null) { in invocationFailed()
84 invocationFailed(failure.getCause()); in invocationFailed()
88 String.format("ConvertedFailure: %s", failure.getErrorMessage()))); in invocationFailed()
/tools/tradefederation/core/test_result_interfaces/com/android/tradefed/result/
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()
DMultiFailureDescription.java51 public MultiFailureDescription addFailure(FailureDescription failure) { in addFailure() argument
52 mFailures.add(failure); in addFailure()
144 for (FailureDescription failure : failures) { in addMultiFailures()
145 if (failure instanceof MultiFailureDescription) { in addMultiFailures()
146 addMultiFailures(((MultiFailureDescription) failure).getFailures()); in addMultiFailures()
148 mFailures.add(failure); in addMultiFailures()
/tools/test/connectivity/acts/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/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()
DGranularRetriableTestWrapper.java357 FailureDescription failure = in createFromException() local
361 failure.setErrorIdentifier(id); in createFromException()
363 failure.setFailureStatus(id.status()); in createFromException()
365 failure.setOrigin(((IHarnessException) exception).getOrigin()); in createFromException()
367 return failure; in createFromException()
/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/test/connectivity/acts/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/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()
180 failure.setOrigin(clazz.getCanonicalName()); in createFailure()
181 return failure; in createFailure()
/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/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/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/tradefederation/core/src/com/android/tradefed/result/
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()
DLogcatCrashResultForwarder.java75 public void testFailed(TestDescription test, FailureDescription failure) { in testFailed() argument
77 String trace = extractCrashAndAddToMessage(failure.getErrorMessage(), mStartTime); in testFailed()
78 failure.setErrorMessage(trace); in testFailed()
79 super.testFailed(test, failure); in testFailed()
/tools/tradefederation/core/src/com/android/tradefed/invoker/
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/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.
127 // 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()
/tools/ndkports/src/test/kotlin/com/android/ndkports/
DResultTest.kt25 fun `onFailure executes block on failure`() { in onFailure executes block on failure()
57 fun `onSuccess does not execute block on failure`() { in onSuccess does not execute block on failure()
/tools/tradefederation/core/src/com/android/tradefed/testtype/
DDeviceBatteryLevelChecker.java137 FailureDescription failure = FailureDescription.create(e.getMessage()).setCause(e); in run()
138 listener.testRunFailed(failure); in run()
146 FailureDescription failure = in run() local
148 failure.setFailureStatus(FailureStatus.NOT_EXECUTED); in run()
149 listener.testFailed(mChargingSpeed, failure); in run()
/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/src/com/android/tradefed/result/ddmlib/
DTestRunToTestInvocationForwarder.java146 FailureDescription failure = in testEnded() local
149 listener.testRunFailed(failure); in testEnded()
186 public void testRunFailed(String failure) { in testRunFailed() argument
187 FailureDescription failureDescription = FailureDescription.create(failure); in testRunFailed()

1234