Home
last modified time | relevance | path

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

/tools/tradefederation/core/src/com/android/tradefed/testtype/
DGTestResultParser.java540 private String getTestClass(TestResult testResult) { in getTestClass() argument
546 sb.append(testResult.mTestClass); in getTestClass()
549 return testResult.mTestClass; in getTestClass()
559 TestResult testResult = getCurrentTestResult(); in processTestStartedTag() local
560 testResult.mTestClass = parsedResults.mTestClassName; in processTestStartedTag()
561 testResult.mTestName = parsedResults.mTestName; in processTestStartedTag()
563 if (getTestClass(testResult) !=null && testResult.mTestName !=null) { in processTestStartedTag()
564 testId = new TestDescription(getTestClass(testResult), testResult.mTestName); in processTestStartedTag()
567 getTestClass(testResult), testResult.mTestName); in processTestStartedTag()
587 TestResult testResult = getCurrentTestResult(); in doTestEnded() local
[all …]
/tools/tradefederation/core/src/com/android/tradefed/result/
DConsoleResultReporter.java132 String getTestSummary(TestDescription testId, TestResult testResult) { in getTestSummary() argument
134 sb.append(String.format(" %s: %s (%dms)\n", testId.toString(), testResult.getStatus(), in getTestSummary()
135 testResult.getEndTime() - testResult.getStartTime())); in getTestSummary()
136 String stack = testResult.getStackTrace(); in getTestSummary()
144 Map<String, String> metrics = testResult.getMetrics(); in getTestSummary()
DMetricsXMLResultReporter.java148 KXmlSerializer serializer, TestDescription testId, TestResult testResult) in printTestResults() argument
153 long elapsedTime = testResult.getEndTime() - testResult.getStartTime(); in printTestResults()
156 printTestMetrics(serializer, testResult.getMetrics()); in printTestResults()
158 if (!TestStatus.PASSED.equals(testResult.getStatus())) { in printTestResults()
159 String result = testResult.getStatus().name(); in printTestResults()
161 String stackText = sanitize(testResult.getStackTrace()); in printTestResults()
DXmlResultReporter.java173 void print(KXmlSerializer serializer, TestDescription testId, TestResult testResult) in print() argument
181 if (!TestStatus.PASSED.equals(testResult.getStatus())) { in print()
182 String result = testResult.getStatus().equals(TestStatus.FAILURE) ? FAILURE : ERROR; in print()
191 String stackText = sanitize(testResult.getStackTrace()); in print()
DJsonHttpTestResultReporter.java174 TestResult testResult = entry.getValue(); in convertMetricsToJson() local
183 if (testResult.getMetrics().size() > 0) { in convertMetricsToJson()
184 JSONObject testResultMetrics = new JSONObject(testResult.getMetrics()); in convertMetricsToJson()
DTestRunResult.java203 private void addTestResult(TestDescription test, TestResult testResult) { in addTestResult() argument
205 mTestResults.put(test, testResult); in addTestResult()
/tools/tradefederation/core/tests/src/com/android/tradefed/result/
DTestRunResultTest.java234 Map<TestDescription, TestResult> testResult = result.getTestResults(); in testMergeRetriedRunResults_fullMergeLogicCheck() local
235 assertTrue(testResult.containsKey(testcase1)); in testMergeRetriedRunResults_fullMergeLogicCheck()
236 assertTrue(testResult.containsKey(testcase2)); in testMergeRetriedRunResults_fullMergeLogicCheck()
237 assertTrue(testResult.containsKey(testcase3)); in testMergeRetriedRunResults_fullMergeLogicCheck()
239 TestResult test1Result = testResult.get(testcase1); in testMergeRetriedRunResults_fullMergeLogicCheck()
240 TestResult test2Result = testResult.get(testcase2); in testMergeRetriedRunResults_fullMergeLogicCheck()
241 TestResult test3Result = testResult.get(testcase3); in testMergeRetriedRunResults_fullMergeLogicCheck()
292 TestResult testResult = testRunResult.get(testcase); in testMergeRetriedRunResults_checkMergingStackTraces() local
293 assertEquals(TestStatus.FAILURE, testResult.getStatus()); in testMergeRetriedRunResults_checkMergingStackTraces()
295 assertEquals("Second run failed.\nFourth run failed.", testResult.getStackTrace()); in testMergeRetriedRunResults_checkMergingStackTraces()
/tools/tradefederation/core/prod-tests/src/com/android/performance/tests/
DGLBenchmarkTest.java236 Element testResult = (Element) node; in parseResultXml() local
237 String testTitle = getData(testResult, "title"); in parseResultXml()
238 String testType = getData(testResult, "type"); in parseResultXml()
239 String fps = getData(testResult, "fps"); in parseResultXml()
240 String score = getData(testResult, "score"); in parseResultXml()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/
DPythonUnitTestRunnerTest.java164 private IRunUtil getMockRunUtil(UnitTestResult testResult) { in getMockRunUtil() argument
165 CommandResult expectedResult = testResult.getCommandResult(); in getMockRunUtil()
/tools/tradefederation/contrib/src/com/android/media/tests/
DCameraPerformanceTest.java160 String testResult = metric.getValue(); in parseResult() local
162 CLog.d("test result %s", testResult); in parseResult()
164 if (shouldUseCtsXmlResultParser(testResult)) { in parseResult()
177 Map<String, String> testKpis = parser.parse(testResult, testMethod); in parseResult()
/tools/tradefederation/core/src/com/android/tradefed/testtype/junit4/
DBaseHostJUnit4Test.java614 TestResult testResult = testEntry.getValue(); in printTestResult() local
615 TestStatus testStatus = testResult.getStatus(); in printTestResult()
619 CLog.logAndDisplay(LogLevel.WARN, testResult.getStackTrace()); in printTestResult()
/tools/tradefederation/core/src/com/android/tradefed/testtype/metricregression/
DDetectRegression.java198 String testResult = in logResult() local
202 table.addLine(testResult).addSingleLineSeparator(); in logResult()
/tools/tradefederation/core/src/com/android/tradefed/result/suite/
DXmlSuiteResultFormatter.java335 XmlSerializer serializer, Entry<String, TestResult> testResult) in HandleLoggedFiles() argument
337 Map<String, LogFile> loggedFiles = testResult.getValue().getLoggedFiles(); in HandleLoggedFiles()