Home
last modified time | relevance | path

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

12

/platform_testing/libraries/flag-helpers/junit/test/src/android/platform/test/flag/junit/
DAnnotationTestRuleHelper.java191 Throwable failure = runAndReturnFailure(); in assertFailsWithTypeAndMessage() local
192 Assert.assertNotNull("Test was expected to fail", failure); in assertFailsWithTypeAndMessage()
193 if (failure.getClass() != expectedError) { in assertFailsWithTypeAndMessage()
195 "Wrong error type; expected " + expectedError + " but was: " + failure, in assertFailsWithTypeAndMessage()
196 failure); in assertFailsWithTypeAndMessage()
199 String failureMessage = failure.getMessage(); in assertFailsWithTypeAndMessage()
206 failure); in assertFailsWithTypeAndMessage()
216 Throwable failure = runAndReturnFailure(); in assertSkippedWithMessage() local
217 Assert.assertNotNull("Test was expected to be skipped but it ran and passed", failure); in assertSkippedWithMessage()
218 if (failure.getClass() != AssumptionViolatedException.class) { in assertSkippedWithMessage()
[all …]
/platform_testing/libraries/health/rules/tests/src/android/platform/test/rule/
DStringingListener.kt36 override fun testFailure(failure: Failure?) { in testFailure()
37 if (failure != null) { in testFailure()
42 override fun testAssumptionFailure(failure: Failure?) { in testAssumptionFailure()
43 if (failure != null) { in testAssumptionFailure()
DTestMetricRuleTest.java98 Failure failure = new Failure(DESCRIPTION, new RuntimeException(TEST_FAILURE_MESSAGE)); in testValidListener_testFails() local
124 Failure failure = new Failure(DESCRIPTION, new RuntimeException(TEST_FAILURE_MESSAGE)); in testMultipleListeners_allValid() local
138 DESCRIPTION, failure), in testMultipleListeners_allValid()
141 DESCRIPTION, failure), in testMultipleListeners_allValid()
164 Failure failure = new Failure(DESCRIPTION, new RuntimeException(TEST_FAILURE_MESSAGE)); in testMultipleListeners_lifoOrder() local
178 DESCRIPTION, failure), in testMultipleListeners_lifoOrder()
181 DESCRIPTION, failure), in testMultipleListeners_lifoOrder()
296 public void onTestFail(DataRecord testData, Description description, Failure failure) { in onTestFail() argument
300 description, mName, "onTestFail", failure)); in onTestFail()
/platform_testing/libraries/flicker/test/src/android/tools/flicker/datastore/
DDataStoreTest.kt46 val failure = in throwsErrorAddElementTwice() constant
54 assertExceptionMessage(failure, TEST_SCENARIO.toString()) in throwsErrorAddElementTwice()
66 val failure = assertThrows<IllegalStateException> { DataStore.getResult(TEST_SCENARIO) } in getsElementThrowErrorDoesNotExist() constant
67 assertExceptionMessage(failure, TEST_SCENARIO.toString()) in getsElementThrowErrorDoesNotExist()
80 val failure = in replacesElementThrowErrorDoesNotExist() constant
84 assertExceptionMessage(failure, TEST_SCENARIO.toString()) in replacesElementThrowErrorDoesNotExist()
DCachedResultWriterTest.kt48 val failure = in writeToStoreFailsWhenWriteTwice() constant
56 assertExceptionMessage(failure, TEST_SCENARIO.toString()) in writeToStoreFailsWhenWriteTwice()
57 assertExceptionMessage(failure, "already in data store") in writeToStoreFailsWhenWriteTwice()
/platform_testing/libraries/junitxml/src/com/android/junitxml/
DXmlRunListener.java173 public void testFailure(Failure failure) throws Exception { in testFailure() argument
174 Description description = failure.getDescription(); in testFailure()
177 if (failure.getException() instanceof AssertionError) { in testFailure()
178 formatError(ELEMENT_FAILURE, failure); in testFailure()
181 formatError(ELEMENT_ERROR, failure); in testFailure()
186 private void formatError(String type, Failure failure) throws Exception { in formatError() argument
189 if (failure.getDescription() != null) { in formatError()
190 currentTest = mTestElements.get(failure.getDescription()); in formatError()
197 final String message = failure.getMessage(); in formatError()
203 failure.getDescription().getClassName()); in formatError()
[all …]
DAtestRunListener.java95 public void testFailure(Failure failure) { in testFailure() argument
96 Description description = failure.getDescription(); in testFailure()
100 eventData.put(TRACE_KEY, failure.getTrace()); in testFailure()
/platform_testing/libraries/flicker/test/src/android/tools/flicker/legacy/runner/
DTransitionExecutionRuleTest.kt89 val failure = in throwsTransitionFailure() constant
94 assertExceptionMessage(failure, Consts.FAILURE) in throwsTransitionFailure()
100 val failure = in throwsTransitionFailureEmptyTransitions() constant
105 assertExceptionMessage(failure, EMPTY_TRANSITIONS_ERROR) in throwsTransitionFailureEmptyTransitions()
111 val failure = in throwsAssertionFailure() constant
116 Truth.assertWithMessage("Failure").that(failure).hasMessageThat().contains(Consts.FAILURE) in throwsAssertionFailure()
154 val failure = in throwErrorCreateInvalidTagWithSpace() constant
159 assertExceptionMessage(failure, INVALID_TAG_SPACE) in throwErrorCreateInvalidTagWithSpace()
165 val failure = in throwErrorCreateInvalidTagDuplicate() constant
170 assertExceptionMessage(failure, VALID_TAG_1) in throwErrorCreateInvalidTagDuplicate()
[all …]
DTraceMonitorRuleTest.kt74 val failure = in executesWithStartFailure() constant
79 Truth.assertWithMessage("Failure").that(failure).hasMessageThat().contains(Consts.FAILURE) in executesWithStartFailure()
86 val failure = in executesStartFailureMonitor2() constant
91 Truth.assertWithMessage("Failure").that(failure).hasMessageThat().contains(Consts.FAILURE) in executesStartFailureMonitor2()
98 val failure = in executesWithStopFailure() constant
103 Truth.assertWithMessage("Failure").that(failure).hasMessageThat().contains(Consts.FAILURE) in executesWithStopFailure()
110 val failure = in executesStopFailureMonitor2() constant
115 Truth.assertWithMessage("Failure").that(failure).hasMessageThat().contains(Consts.FAILURE) in executesStopFailureMonitor2()
DSetupTeardownRuleTest.kt62 val failure = in throwsSetupFailureAndExecutesTeardown() constant
67 Truth.assertWithMessage("Failure").that(failure).hasMessageThat().contains(Consts.FAILURE) in throwsSetupFailureAndExecutesTeardown()
74 val failure = in throwsTeardownFailure() constant
79 Truth.assertWithMessage("Failure").that(failure).hasMessageThat().contains(Consts.FAILURE) in throwsTeardownFailure()
/platform_testing/libraries/flicker/test/src/android/tools/integration/
DFullLegacyTestRun.kt90 val failure: Result<Any> = runCatching { this.isEmpty() } in internalWmCheck() constant
91 if (failure.isSuccess) { in internalWmCheck()
124 val failure: Result<Any> = runCatching { this.isEmpty() } in internalLayersCheck() constant
125 if (failure.isSuccess) { in internalLayersCheck()
145 val failure: Result<Any> = runCatching { flicker.assertLayers { this.isEmpty() } } in exceptionMessageCheck() constant
146 val exception = failure.exceptionOrNull() ?: error("Should have thrown failure") in exceptionMessageCheck()
166 val failure: Result<Any?> = runCatching { actual?.isHigher(expected?.region ?: Region()) } in validateVisibleRegion() constant
167 if (failure.isSuccess) { in validateVisibleRegion()
DFullTestRun.kt107 val failure: Result<Any> = runCatching { this.isEmpty() } in doEvaluate() constant
108 if (failure.isSuccess) { in doEvaluate()
160 val failure: Result<Any> = runCatching { this.isEmpty() } in doEvaluate() constant
161 if (failure.isSuccess) { in doEvaluate()
212 val failure: Result<Any?> = runCatching { in validateVisibleRegion() constant
215 if (failure.isSuccess) { in validateVisibleRegion()
/platform_testing/tests/health/scenarios/src/android/platform/test/scenario/sample/
DPrintListener.java52 public void testFailure(Failure failure) throws Exception { in testFailure() argument
57 public void testAssumptionFailure(Failure failure) { in testAssumptionFailure() argument
/platform_testing/libraries/device-collectors/src/test/java/android/device/collectors/
DGcaEventLogCollectorTest.java93 Failure failure = in testGcaEventLogCollectionOnTestEnd_includeFailure() local
95 listener.testFailure(failure); in testGcaEventLogCollectionOnTestEnd_includeFailure()
148 Failure failure = in testGcaEventLogCollectOnTestEnd_skipFailure() local
150 listener.testFailure(failure); in testGcaEventLogCollectOnTestEnd_skipFailure()
201 Failure failure = in testGcaEventLogCollectionOnTestRunEnd_runEndOnly() local
203 listener.testFailure(failure); in testGcaEventLogCollectionOnTestRunEnd_runEndOnly()
DStubTestMetricListener.java43 public void onTestFail(DataRecord testData, Description description, Failure failure) { in onTestFail() argument
/platform_testing/libraries/health/runners/longevity/host/src/android/host/test/longevity/listener/
DErrorTerminator.java30 public void testFailure(Failure failure) { in testFailure() argument
/platform_testing/libraries/device-collectors/src/main/java/android/device/collectors/
DPerfettoListener.java70 public void onTestFail(DataRecord testData, Description description, Failure failure) { in onTestFail() argument
71 mTracingStrategy.testFail(testData, description, failure); in onTestFail()
DBaseMetricListener.java179 public final void testFailure(Failure failure) throws Exception { in testFailure() argument
180 Description description = failure.getDescription(); in testFailure()
183 onTestFail(mTestData, description, failure); in testFailure()
189 super.testFailure(failure); in testFailure()
305 public void onTestFail(DataRecord testData, Description description, Failure failure) { in onTestFail() argument
DBaselineProfileCollector.java67 public void onTestFail(DataRecord testData, Description description, Failure failure) { in onTestFail() argument
/platform_testing/libraries/flicker/src/android/tools/flicker/
DIFlickerServiceResultsCollector.kt27 fun testFailure(failure: Failure)
/platform_testing/libraries/flicker/test/src/android/tools/flicker/junit/
DFlickerServiceCachedTestCaseTest.kt137 val failure = assertThrows<Throwable> { test.execute(mockDescription) } in reportsFailingResultMetric() constant
138 Truth.assertThat(failure).hasMessageThat().startsWith("EXPECTED") in reportsFailingResultMetric()
195 val failure = in skippedIfNonBlocking() constant
197 Truth.assertThat(failure).hasMessageThat().isEqualTo("FaaS Test was non blocking - skipped") in skippedIfNonBlocking()
DLegacyFlickerDecoratorTest.kt205 val failure = failures[idx] in <lambda>() constant
207 .that(failure) in <lambda>()
228 val failure = failures.first() in <lambda>() constant
230 .that(failure) in <lambda>()
DLegacyFlickerJUnit4ClassRunnerTest.kt268 argThat { failure -> in <lambda>() method
269 failure.message.contains(TRANSITION_FAILURE_MESSAGE) && in <lambda>()
270 failure.description.isTest && in <lambda>()
271 failure.description.displayName == in <lambda>()
/platform_testing/libraries/health/rules/src/android/platform/test/rule/
DTestMetricRule.java189 Failure failure = new Failure(description, t); in failed() local
192 listener.testFailure(failure); in failed()
/platform_testing/tests/bettertogether/betocq/
DReadMe.md127 so that there are clear pass/failure signals.
129 - Makes debugging job more straightforward, with the test isolating each failure
130 to a single component. The tool also provides the most likely failure
361 ### Check the test result and debug failure {:#check-result}
406 failure signatures. Here is the list of failure signatures:
407 - Wi-Fi STA connection failure signature:
417 - Discovery failure signature:
422 - BT connection failure signature:
428 - Wi-Fi medium upgrade failure signature:
433 - Transfer failure signature:
[all …]

12