Home
last modified time | relevance | path

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

/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/
DGTestResultParser.java554 private String getTestClass(TestResult testResult) { in getTestClass() argument
560 sb.append(testResult.mTestClass); in getTestClass()
563 return testResult.mTestClass; in getTestClass()
573 TestResult testResult = getCurrentTestResult(); in processTestStartedTag() local
574 testResult.mTestClass = parsedResults.mTestClassName; in processTestStartedTag()
575 testResult.mTestName = parsedResults.mTestName; in processTestStartedTag()
577 if (getTestClass(testResult) !=null && testResult.mTestName !=null) { in processTestStartedTag()
578 testId = new TestDescription(getTestClass(testResult), testResult.mTestName); in processTestStartedTag()
581 getTestClass(testResult), testResult.mTestName); in processTestStartedTag()
600 TestResult testResult = getCurrentTestResult(); in doTestEnded() local
[all …]
DHostGTest.java167 CommandResult testResult = executeHostGTestCommand(cmd, maxTestTimeMs, resultParser); in runTest() local
169 switch (testResult.getStatus()) { in runTest()
173 final Integer exitCode = testResult.getExitCode(); in runTest()
/tools/tradefederation/core/tests/src/com/android/tradefed/result/
DTestRunResultTest.java281 Map<TestDescription, TestResult> testResult = result.getTestResults(); in testMergeRetriedRunResults_fullMergeLogicCheck() local
282 assertTrue(testResult.containsKey(testcase1)); in testMergeRetriedRunResults_fullMergeLogicCheck()
283 assertTrue(testResult.containsKey(testcase2)); in testMergeRetriedRunResults_fullMergeLogicCheck()
284 assertTrue(testResult.containsKey(testcase3)); in testMergeRetriedRunResults_fullMergeLogicCheck()
286 TestResult test1Result = testResult.get(testcase1); in testMergeRetriedRunResults_fullMergeLogicCheck()
287 TestResult test2Result = testResult.get(testcase2); in testMergeRetriedRunResults_fullMergeLogicCheck()
288 TestResult test3Result = testResult.get(testcase3); in testMergeRetriedRunResults_fullMergeLogicCheck()
345 TestResult testResult = testRunResult.get(testcase); in testMergeRetriedRunResults_checkMergingStackTraces() local
346 assertEquals(TestStatus.PASSED, testResult.getStatus()); in testMergeRetriedRunResults_checkMergingStackTraces()
350 testResult.getStackTrace()); in testMergeRetriedRunResults_checkMergingStackTraces()
[all …]
DCountingTestResultListenerTest.java42 mResultListener.testResult(mTest, createTestResult(TestStatus.PASSED)); in testPassed()
50 mResultListener.testResult(mTest, createTestResult(TestStatus.FAILURE)); in testFailed()
58 mResultListener.testResult(mTest, createTestResult(TestStatus.INCOMPLETE)); in duplicateResults()
60 mResultListener.testResult(mTest, createTestResult(TestStatus.PASSED)); in duplicateResults()
69 mResultListener.testResult(mTest, createTestResult(TestStatus.INCOMPLETE)); in hasFailedTests()
71 mResultListener.testResult(mTest, createTestResult(TestStatus.FAILURE)); in hasFailedTests()
73 mResultListener.testResult(mTest, createTestResult(TestStatus.ASSUMPTION_FAILURE)); in hasFailedTests()
75 mResultListener.testResult(mTest, createTestResult(TestStatus.PASSED)); in hasFailedTests()
DConsoleResultReporterTest.java55 mResultReporter.testResult(mTest, createTestResult(TestStatus.PASSED)); in testPassed()
62 mResultReporter.testResult(mTest, createTestResult(TestStatus.PASSED)); in testPassed_suppressedPassed()
70 mResultReporter.testResult(mTest, result); in testFailed()
81 mResultReporter.testResult(mTest, result); in testFailed_suppressPassed()
89 mResultReporter.testResult(mTest, createTestResult(TestStatus.PASSED)); in testSummary()
DPassingTestFileReporterTest.java60 mResultReporter.testResult(mTest, createTestResult(TestResult.TestStatus.PASSED)); in testPassed()
69 mResultReporter.testResult(mTest, createTestResult(TestResult.TestStatus.FAILURE)); in testFailed()
DTestResultListenerTest.java45 public void testResult(TestDescription test, TestResult result) { in setUp()
/tools/tradefederation/core/src/com/android/tradefed/result/
DConsoleResultReporter.java81 public void testResult(TestDescription test, TestResult result) { in testResult() method in ConsoleResultReporter
82 mResultCountListener.testResult(test, result); in testResult()
190 static String getTestSummary(String testTag, TestDescription testId, TestResult testResult) { in getTestSummary() argument
197 testResult.getStatus(), in getTestSummary()
198 testResult.getEndTime() - testResult.getStartTime())); in getTestSummary()
199 String stack = testResult.getStackTrace(); in getTestSummary()
207 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()
DTestResultListener.java38 public abstract void testResult(TestDescription test, TestResult result); in testResult() method in TestResultListener
104 testResult(mCurrentTest, mCurrentResult); in testRunEnded()
121 testResult(mCurrentTest, mCurrentResult); in reportTestFinish()
DJsonHttpTestResultReporter.java225 TestResult testResult = entry.getValue(); in convertMetricsToJson() local
237 if (testResult.getMetrics().size() > 0) { in convertMetricsToJson()
238 JSONObject testResultMetrics = new JSONObject(testResult.getMetrics()); in convertMetricsToJson()
DPassingTestFileReporter.java40 public void testResult(TestDescription test, TestResult result) { in testResult() method in PassingTestFileReporter
DCountingTestResultListener.java31 public void testResult(TestDescription test, TestResult result) { in testResult() method in CountingTestResultListener
/tools/tradefederation/core/src/com/android/tradefed/device/helper/
DTelephonyHelper.java118 TestResult testResult = runResult.getTestResults().get(SIM_TEST); in getSimInfo() local
119 if (testResult == null) { in getSimInfo()
124 info.mHasTelephonySupport = !TestStatus.FAILURE.equals(testResult.getStatus()); in getSimInfo()
125 info.mSimState = testResult.getMetrics().get(SIM_STATE_KEY); in getSimInfo()
127 stringToBool(testResult.getMetrics().get(CARRIER_PRIVILEGES_KEY)); in getSimInfo()
129 stringToBool(testResult.getMetrics().get(SECURED_ELEMENT_KEY)); in getSimInfo()
130 info.mHasSeService = stringToBool(testResult.getMetrics().get(SE_SERVICE_KEY)); in getSimInfo()
/tools/test/graphicsbenchmark/performance_tests/hostside/src/com/android/game/qualification/reporter/
DGameQualificationResultReporter.java368 private String getTestSummary(TestDescription testId, TestResult testResult) { in getTestSummary() argument
370 sb.append(String.format(" %s: %s (%dms)\n", testId.toString(), testResult.getStatus(), in getTestSummary()
371 testResult.getEndTime() - testResult.getStartTime())); in getTestSummary()
372 String stack = testResult.getStackTrace(); in getTestSummary()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/mobly/
DMoblyBinaryHostTestTest.java108 File testResult = new File(mSpyTest.getLogDirAbsolutePath(), TEST_RESULT_FILE_NAME); in testRun_withPythonBinariesOption() local
116 FileUtils.createFile(testResult, ""); in testRun_withPythonBinariesOption()
146 File testResult = new File(mSpyTest.getLogDirAbsolutePath(), TEST_RESULT_FILE_NAME); in testRun_withParFileNameOption() local
153 FileUtils.createFile(testResult, ""); in testRun_withParFileNameOption()
/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/test_framework/com/android/tradefed/testtype/mobly/
DMoblyYamlResultParser.java73 ITestResult testResult = resultHandler.handle(docMap); in parseDocumentMap() local
75 mTestCount = ((Summary) testResult).getExecuted(); in parseDocumentMap()
77 return testResult; in parseDocumentMap()
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/retry/
DResultsPlayer.java139 Entry<TestDescription, TestResult> testResult) { in addToReplay() argument
146 if (testResult != null) { in addToReplay()
147 holder.mResults.add(testResult); in addToReplay()
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/junit4/
DBaseHostJUnit4Test.java810 TestResult testResult = testEntry.getValue(); in printTestResult() local
811 TestStatus testStatus = testResult.getStatus(); in printTestResult()
815 CLog.logAndDisplay(LogLevel.WARN, testResult.getStackTrace()); in printTestResult()
/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/regression/tests/
DDetectRegression.java197 String testResult = in logResult() local
201 table.addLine(testResult).addSingleLineSeparator(); in logResult()
/tools/tradefederation/core/invocation_interfaces/com/android/tradefed/result/
DTestRunResult.java279 private void addTestResult(TestDescription test, TestResult testResult) { in addTestResult() argument
281 mTestResults.put(test, testResult); in addTestResult()
/tools/tradefederation/core/src/com/android/tradefed/result/suite/
DXmlSuiteResultFormatter.java387 XmlSerializer serializer, Entry<String, TestResult> testResult) in HandleLoggedFiles() argument
389 Map<String, LogFile> loggedFiles = testResult.getValue().getLoggedFiles(); in HandleLoggedFiles()