Home
last modified time | relevance | path

Searched refs:runResult (Results 1 – 13 of 13) sorted by relevance

/tools/tradefederation/core/tests/src/com/android/tradefed/result/
DCollectingTestListenerTest.java64 TestRunResult runResult = mCollectingTestListener.getCurrentRunResults(); in testSingleRun() local
66 assertThat(runResult.isRunComplete()).isTrue(); in testSingleRun()
67 assertThat(runResult.isRunFailure()).isFalse(); in testSingleRun()
69 assertThat(runResult.getTestResults().get(test).getStatus()).isEqualTo(TestStatus.PASSED); in testSingleRun()
70 assertThat(runResult.getTestResults().get(test).getStartTime()).isGreaterThan(0L); in testSingleRun()
71 assertThat(runResult.getTestResults().get(test).getEndTime()) in testSingleRun()
72 .isGreaterThan(runResult.getTestResults().get(test).getStartTime() - 1); in testSingleRun()
81 TestRunResult runResult = mCollectingTestListener.getCurrentRunResults(); in testRunFailed() local
82 assertThat(runResult.isRunComplete()).isTrue(); in testRunFailed()
83 assertThat(runResult.isRunFailure()).isTrue(); in testRunFailed()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/invoker/
DShardListener.java203 for (TestRunResult runResult : runResults) { in testModuleEnded()
204 forwardRunResults(runResult, i); in testModuleEnded()
205 resultNames.add(runResult.getName()); in testModuleEnded()
209 for (TestRunResult runResult : getMergedTestRunResults()) { in testModuleEnded()
211 forwardRunResults(runResult, 0); in testModuleEnded()
212 resultNames.add(runResult.getName()); in testModuleEnded()
237 private void forwardRunResults(TestRunResult runResult, int attempt) { in forwardRunResults() argument
239 runResult.getName(), in forwardRunResults()
240 runResult.getExpectedTestCount(), in forwardRunResults()
242 runResult.getStartTime()); in forwardRunResults()
[all …]
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/junit4/
DBaseHostJUnit4Test.java628 TestRunResult runResult = in runDeviceTests() local
645 mLatestInstruRes = runResult; in runDeviceTests()
646 printTestResult(runResult); in runDeviceTests()
648 if (runResult.isRunFailure()) { in runDeviceTests()
651 + runResult.getName() in runDeviceTests()
653 + runResult.getRunFailureMessage()); in runDeviceTests()
655 if (runResult.getNumTests() == 0) { in runDeviceTests()
658 if (runResult.hasFailedTests()) { in runDeviceTests()
662 runResult.getTestResults().entrySet()) { in runDeviceTests()
673 runResult.getTestsResultsInState(TestStatus.ASSUMPTION_FAILURE); in runDeviceTests()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/result/
DJsonHttpTestResultReporter.java202 for (TestRunResult runResult : runResults) { in convertMetricsToJson()
204 if (mSkipFailedRuns && runResult.isRunFailure()) { in convertMetricsToJson()
209 if (runResult.getRunMetrics().size() > 0) { in convertMetricsToJson()
210 JSONObject runResultMetrics = new JSONObject(runResult.getRunMetrics()); in convertMetricsToJson()
211 String reportingUnit = runResult.getName(); in convertMetricsToJson()
218 CLog.d("Skipping metrics for %s because results are empty.", runResult.getName()); in convertMetricsToJson()
222 Map<TestDescription, TestResult> testResultMap = runResult.getTestResults(); in convertMetricsToJson()
230 reportingUnitParts.add(0, runResult.getName()); in convertMetricsToJson()
DMetricsXMLResultReporter.java136 for (TestRunResult runResult : getMergedTestRunResults()) { in printRunResults()
137 printRunMetrics(serializer, runResult.getRunMetrics()); in printRunResults()
138 Map<TestDescription, TestResult> testResults = runResult.getTestResults(); in printRunResults()
DXmlResultReporter.java162 for (TestRunResult runResult : getMergedTestRunResults()) { in printTestResults()
164 Map<TestDescription, TestResult> testResults = runResult.getTestResults(); in printTestResults()
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/
DModuleDefinition.java664 for (TestRunResult runResult : listResults) { in reportFinalResults()
665 numResults += runResult.getTestResults().size(); in reportFinalResults()
666 forwardTestResults(runResult.getTestResults(), listener); in reportFinalResults()
667 if (runResult.isRunFailure()) { in reportFinalResults()
668 runFailureMessages.add(runResult.getRunFailureDescription()); in reportFinalResults()
670 elapsedTime += runResult.getElapsedTime(); in reportFinalResults()
672 metricsProto.putAll(runResult.getRunProtoMetrics()); in reportFinalResults()
673 aggLogFiles.putAll(runResult.getRunLoggedFiles()); in reportFinalResults()
/tools/tradefederation/core/src/com/android/tradefed/retry/
DResultAggregator.java345 for (TestRunResult runResult : mergedResults) { in testModuleEnded()
346 forwardTestResults(runResult.getTestResults(), mAggregatedForwarder); in testModuleEnded()
347 if (runResult.isRunFailure()) { in testModuleEnded()
348 mAggregatedForwarder.testRunFailed(runResult.getRunFailureDescription()); in testModuleEnded()
351 for (String key : runResult.getRunLoggedFiles().keySet()) { in testModuleEnded()
352 for (LogFile logFile : runResult.getRunLoggedFiles().get(key)) { in testModuleEnded()
/tools/tradefederation/core/src/com/android/tradefed/device/helper/
DTelephonyHelper.java109 TestRunResult runResult = listener.getCurrentRunResults(); in getSimInfo() local
110 if (!runResult.isRunComplete()) { in getSimInfo()
114 if (runResult.isRunFailure()) { in getSimInfo()
115 CLog.e("TelephonyHelper run failure: %s", runResult.getRunFailureMessage()); in getSimInfo()
118 TestResult testResult = runResult.getTestResults().get(SIM_TEST); in getSimInfo()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/
DGranularRetriableTestWrapperTest.java574 for (TestRunResult runResult : resultCollector) { in testRun_retryAllTestCasesIfNotSupportTestFilterReceiver()
575 assertEquals(2, runResult.getNumTests()); in testRun_retryAllTestCasesIfNotSupportTestFilterReceiver()
577 TestStatus.FAILURE, runResult.getTestResults().get(fakeTestCase1).getStatus()); in testRun_retryAllTestCasesIfNotSupportTestFilterReceiver()
579 TestStatus.PASSED, runResult.getTestResults().get(fakeTestCase2).getStatus()); in testRun_retryAllTestCasesIfNotSupportTestFilterReceiver()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/retry/
DResultsPlayerTest.java181 TestRunResult runResult = createTestRunResult("run1", 5, 1); in testReplay_MultiTest() local
190 mPlayer.addToReplay(null, runResult, entry); in testReplay_MultiTest()
199 mPlayer.addToReplay(null, runResult, entry2); in testReplay_MultiTest()
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/
DCodeCoverageTest.java111 TestRunResult runResult = listener.getCurrentRunResults(); in fetchCoverageFilePath() local
112 Map<String, String> metrics = runResult.getRunMetrics(); in fetchCoverageFilePath()
/tools/tradefederation/contrib/src/com/android/regression/tests/
DDetectRegression.java178 String runResult = in logResult() local
182 table.addLine(runResult).addSingleLineSeparator(); in logResult()