Home
last modified time | relevance | path

Searched refs:runResult (Results 1 – 12 of 12) 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.java140 for (TestRunResult runResult : getMergedTestRunResults()) { in invocationEnded()
144 && !getModuleContextForRunResult(runResult.getName()) in invocationEnded()
150 && getModuleContextForRunResult(runResult.getName()) != null) { in invocationEnded()
151 moduleContext = getModuleContextForRunResult(runResult.getName()); in invocationEnded()
156 runResult.getName(), runResult.getExpectedTestCount()); in invocationEnded()
157 forwardTestResults(runResult.getTestResults()); in invocationEnded()
158 if (runResult.isRunFailure()) { in invocationEnded()
159 mMasterListener.testRunFailed(runResult.getRunFailureMessage()); in invocationEnded()
163 forwardLogAssociation(runResult.getRunLoggedFiles(), mMasterListener); in invocationEnded()
166 runResult.getElapsedTime(), runResult.getRunProtoMetrics()); in invocationEnded()
/tools/tradefederation/core/src/com/android/tradefed/testtype/junit4/
DBaseHostJUnit4Test.java562 TestRunResult runResult = in runDeviceTests() local
577 mLatestInstruRes = runResult; in runDeviceTests()
578 printTestResult(runResult); in runDeviceTests()
580 if (runResult.isRunFailure()) { in runDeviceTests()
583 + runResult.getName() in runDeviceTests()
585 + runResult.getRunFailureMessage()); in runDeviceTests()
587 if (runResult.getNumTests() == 0) { in runDeviceTests()
590 if (runResult.hasFailedTests()) { in runDeviceTests()
594 runResult.getTestResults().entrySet()) { in runDeviceTests()
605 runResult.getNumTests() in runDeviceTests()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/result/
DJsonHttpTestResultReporter.java160 for (TestRunResult runResult : runResults) { in convertMetricsToJson()
162 if (mSkipFailedRuns && runResult.isRunFailure()) { in convertMetricsToJson()
167 if (runResult.getRunMetrics().size() > 0) { in convertMetricsToJson()
168 JSONObject runResultMetrics = new JSONObject(runResult.getRunMetrics()); in convertMetricsToJson()
169 String reportingUnit = runResult.getName(); in convertMetricsToJson()
176 CLog.d("Skipping metrics for %s because results are empty.", runResult.getName()); in convertMetricsToJson()
180 Map<TestDescription, TestResult> testResultMap = runResult.getTestResults(); in convertMetricsToJson()
186 mIncludeRunName ? runResult.getName() : null, 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/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/src/com/android/tradefed/testtype/suite/
DModuleDefinition.java636 for (TestRunResult runResult : listResults) { in reportFinalResults()
637 numResults += runResult.getTestResults().size(); in reportFinalResults()
638 forwardTestResults(runResult.getTestResults(), listener); in reportFinalResults()
639 if (runResult.isRunFailure()) { in reportFinalResults()
640 runFailureMessages.add(runResult.getRunFailureMessage()); in reportFinalResults()
643 elapsedTime += runResult.getElapsedTime(); in reportFinalResults()
645 metricsProto.putAll(runResult.getRunProtoMetrics()); in reportFinalResults()
646 aggLogFiles.putAll(runResult.getRunLoggedFiles()); in reportFinalResults()
/tools/tradefederation/core/src/com/android/tradefed/testtype/
DCodeCoverageTest.java109 TestRunResult runResult = listener.getCurrentRunResults(); in fetchCoverageFilePath() local
110 Map<String, String> metrics = runResult.getRunMetrics(); in fetchCoverageFilePath()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/retry/
DResultsPlayerTest.java166 TestRunResult runResult = createTestRunResult("run1", 5, 1); in testReplay_MultiTest() local
175 mPlayer.addToReplay(null, runResult, entry); in testReplay_MultiTest()
184 mPlayer.addToReplay(null, runResult, entry2); in testReplay_MultiTest()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/
DGranularRetriableTestWrapperTest.java551 for (TestRunResult runResult : resultCollector) { in testRun_retryAllTestCasesIfNotSupportTestFilterReceiver()
552 assertEquals(2, runResult.getNumTests()); in testRun_retryAllTestCasesIfNotSupportTestFilterReceiver()
554 TestStatus.FAILURE, runResult.getTestResults().get(fakeTestCase1).getStatus()); in testRun_retryAllTestCasesIfNotSupportTestFilterReceiver()
556 TestStatus.PASSED, runResult.getTestResults().get(fakeTestCase2).getStatus()); in testRun_retryAllTestCasesIfNotSupportTestFilterReceiver()
/tools/tradefederation/contrib/src/com/android/regression/tests/
DDetectRegression.java178 String runResult = in logResult() local
182 table.addLine(runResult).addSingleLineSeparator(); in logResult()