Home
last modified time | relevance | path

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

123

/tools/tradefederation/core/invocation_interfaces/com/android/tradefed/result/
DTestRunResult.java18 import com.android.ddmlib.testrunner.TestResult.TestStatus;
46 private Map<TestDescription, TestResult> mTestResults =
47 new LinkedHashMap<TestDescription, TestResult>();
57 private TestResult mCurrentTestResult;
86 public Map<TestDescription, TestResult> getTestResults() { in getTestResults()
119 for (Map.Entry<TestDescription, TestResult> testEntry : getTestResults().entrySet()) { in getTestsInState()
159 for (TestResult r : mTestResults.values()) { in getNumTestsInState()
168 public List<TestResult> getTestsResultsInState(TestStatus status) { in getTestsResultsInState()
169 List<TestResult> results = new ArrayList<>(); in getTestsResultsInState()
170 for (TestResult r : mTestResults.values()) { in getTestsResultsInState()
[all …]
DTestResult.java18 import com.android.ddmlib.testrunner.TestResult.TestStatus;
32 public class TestResult { class
45 public TestResult() { in TestResult() method in TestResult
132 public TestResult setStatus(TestStatus status) { in setStatus()
168 TestResult other = (TestResult) obj; in equals()
191 public static TestResult merge(List<TestResult> results, MergeStrategy strategy) { in merge()
199 TestResult mergedResult = new TestResult(); in merge()
211 for (TestResult attempt : results) { in merge()
/tools/tradefederation/core/tests/src/com/android/tradefed/result/
DTestResultTest.java20 import com.android.ddmlib.testrunner.TestResult.TestStatus;
36 List<TestResult> testResults = new ArrayList<>(); in testMerge_singleRes()
38 TestResult finalRes = in testMerge_singleRes()
39 TestResult.merge(testResults, MergeStrategy.ONE_TESTCASE_PASS_IS_PASS); in testMerge_singleRes()
48 List<TestResult> testResults = new ArrayList<>(); in testMerge_multiRes_aggPass()
51 TestResult finalRes = in testMerge_multiRes_aggPass()
52 TestResult.merge(testResults, MergeStrategy.ONE_TESTCASE_PASS_IS_PASS); in testMerge_multiRes_aggPass()
55 assertTrue(finalRes.getProtoMetrics().containsKey(TestResult.IS_FLAKY)); in testMerge_multiRes_aggPass()
63 List<TestResult> testResults = new ArrayList<>(); in testMerge_allFailed_aggPass()
66 TestResult finalRes = in testMerge_allFailed_aggPass()
[all …]
DTestRunResultTest.java24 import com.android.ddmlib.testrunner.TestResult.TestStatus;
169 TestResult testRes = result.getTestResults().get(test); in testLogSavedFile_testCases()
194 TestResult testRes = result.getTestResults().get(test); in testLogSavedFile_runLogs()
281 Map<TestDescription, TestResult> testResult = result.getTestResults(); 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()
343 Map<TestDescription, TestResult> testRunResult = result.getTestResults(); in testMergeRetriedRunResults_checkMergingStackTraces()
345 TestResult testResult = testRunResult.get(testcase); in testMergeRetriedRunResults_checkMergingStackTraces()
609 Map<TestDescription, TestResult> testRunResult = result.getTestResults(); in testMergeRetriedRunResults_testCaseStatus()
[all …]
DTestResultListenerTest.java18 import com.android.ddmlib.testrunner.TestResult.TestStatus;
35 private LinkedHashMap<TestDescription, TestResult> mResults;
41 mResults = new LinkedHashMap<TestDescription, TestResult>(); in setUp()
45 public void testResult(TestDescription test, TestResult result) { in setUp()
66 TestResult result = createTestResult(TestStatus.FAILURE); in testFailed()
94 private TestResult createTestResult(TestStatus status) { in createTestResult()
95 TestResult result = new TestResult(); in createTestResult()
DPassingTestFileReporterTest.java20 import com.android.ddmlib.testrunner.TestResult;
60 mResultReporter.testResult(mTest, createTestResult(TestResult.TestStatus.PASSED)); in testPassed()
69 mResultReporter.testResult(mTest, createTestResult(TestResult.TestStatus.FAILURE)); in testFailed()
76 private com.android.tradefed.result.TestResult createTestResult(TestResult.TestStatus status) { in createTestResult()
77 com.android.tradefed.result.TestResult result = in createTestResult()
78 new com.android.tradefed.result.TestResult(); in createTestResult()
DConsoleResultReporterTest.java20 import com.android.ddmlib.testrunner.TestResult.TestStatus;
68 TestResult result = createTestResult(TestStatus.FAILURE); in testFailed()
79 TestResult result = createTestResult(TestStatus.FAILURE); in testFailed_suppressPassed()
110 private TestResult createTestResult(TestStatus status) { in createTestResult()
111 TestResult result = new TestResult(); in createTestResult()
DCountingTestResultListenerTest.java20 import com.android.ddmlib.testrunner.TestResult.TestStatus;
79 private TestResult createTestResult(TestStatus status) { in createTestResult()
80 TestResult result = new TestResult(); in createTestResult()
/tools/tradefederation/core/atest/
Dresult_reporter_unittest.py31 RESULT_PASSED_TEST = test_runner_base.TestResult(
45 RESULT_PASSED_TEST_MODULE_2 = test_runner_base.TestResult(
59 RESULT_PASSED_TEST_RUNNER_2_NO_MODULE = test_runner_base.TestResult(
73 RESULT_FAILED_TEST = test_runner_base.TestResult(
87 RESULT_RUN_FAILURE = test_runner_base.TestResult(
101 RESULT_INVOCATION_FAILURE = test_runner_base.TestResult(
115 RESULT_IGNORED_TEST = test_runner_base.TestResult(
129 RESULT_ASSUMPTION_FAILED_TEST = test_runner_base.TestResult(
152 RESULT_PERF01_TEST01 = test_runner_base.TestResult(
166 RESULT_PERF01_TEST02 = test_runner_base.TestResult(
[all …]
/tools/asuite/atest/
Dresult_reporter_unittest.py32 RESULT_PASSED_TEST = test_runner_base.TestResult(
46 RESULT_PASSED_TEST_MODULE_2 = test_runner_base.TestResult(
60 RESULT_PASSED_TEST_RUNNER_2_NO_MODULE = test_runner_base.TestResult(
74 RESULT_FAILED_TEST = test_runner_base.TestResult(
88 RESULT_RUN_FAILURE = test_runner_base.TestResult(
102 RESULT_INVOCATION_FAILURE = test_runner_base.TestResult(
116 RESULT_IGNORED_TEST = test_runner_base.TestResult(
130 RESULT_ASSUMPTION_FAILED_TEST = test_runner_base.TestResult(
153 RESULT_PERF01_TEST01 = test_runner_base.TestResult(
167 RESULT_PERF01_TEST02 = test_runner_base.TestResult(
[all …]
/tools/tradefederation/core/atest/test_runners/
Devent_handler_unittest.py144 call1 = mock.call(test_runner_base.TestResult(
157 call2 = mock.call(test_runner_base.TestResult(
176 call = mock.call(test_runner_base.TestResult(
195 call = mock.call(test_runner_base.TestResult(
214 call = mock.call(test_runner_base.TestResult(
234 call = mock.call(test_runner_base.TestResult(
267 call1 = mock.call(test_runner_base.TestResult(
280 call2 = mock.call(test_runner_base.TestResult(
299 call1 = mock.call(test_runner_base.TestResult(
315 call2 = mock.call(test_runner_base.TestResult(
[all …]
Devent_handler.py123 self.reporter.process_test_result(test_runner_base.TestResult(
138 self.reporter.process_test_result(test_runner_base.TestResult(
187 self.reporter.process_test_result(test_runner_base.TestResult(
252 reporter.process_test_result(test_runner_base.TestResult(
/tools/asuite/atest/test_runners/
Devent_handler_unittest.py148 call1 = mock.call(test_runner_base.TestResult(
161 call2 = mock.call(test_runner_base.TestResult(
180 call = mock.call(test_runner_base.TestResult(
199 call = mock.call(test_runner_base.TestResult(
218 call = mock.call(test_runner_base.TestResult(
238 call = mock.call(test_runner_base.TestResult(
271 call1 = mock.call(test_runner_base.TestResult(
284 call2 = mock.call(test_runner_base.TestResult(
303 call1 = mock.call(test_runner_base.TestResult(
319 call2 = mock.call(test_runner_base.TestResult(
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/retry/
DResultsPlayerTest.java20 import com.android.ddmlib.testrunner.TestResult.TestStatus;
32 import com.android.tradefed.result.TestResult;
155 TestResult result = new TestResult(); in testReplay_oneTest()
161 Entry<TestDescription, TestResult> entry = new SimpleEntry<>(test, result); in testReplay_oneTest()
184 TestResult result = new TestResult(); in testReplay_MultiTest()
189 Entry<TestDescription, TestResult> entry = new SimpleEntry<>(test, result); in testReplay_MultiTest()
193 TestResult result2 = new TestResult(); in testReplay_MultiTest()
198 Entry<TestDescription, TestResult> entry2 = new SimpleEntry<>(test2, result2); in testReplay_MultiTest()
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/retry/
DRetryRescheduler.java38 import com.android.tradefed.result.TestResult;
293 Map<TestDescription, TestResult> parameterizedMethods = new LinkedHashMap<>(); in updateRunner()
295 for (Entry<TestDescription, TestResult> result : in updateRunner()
312 for (Entry<String, Map<TestDescription, TestResult>> subMap : in updateRunner()
328 for (Entry<TestDescription, TestResult> result : in updateRunner()
381 private Map<String, Map<TestDescription, TestResult>> sortMethodToClass( in sortMethodToClass()
382 Map<TestDescription, TestResult> paramMethods) { in sortMethodToClass()
383 Map<String, Map<TestDescription, TestResult>> returnMap = new LinkedHashMap<>(); in sortMethodToClass()
384 for (Entry<TestDescription, TestResult> entry : paramMethods.entrySet()) { in sortMethodToClass()
390 Map<TestDescription, TestResult> forClass = returnMap.get(noParamName); in sortMethodToClass()
DResultsPlayer.java32 import com.android.tradefed.result.TestResult;
49 public List<Entry<TestDescription, TestResult>> mResults = new ArrayList<>();
102 Collection<Entry<TestDescription, TestResult>> testSet = holder.mResults; in run()
139 Entry<TestDescription, TestResult> testResult) { in addToReplay()
164 Collection<Entry<TestDescription, TestResult>> testSet, in forwardTestResults()
167 for (Map.Entry<TestDescription, TestResult> testEntry : testSet) { in forwardTestResults()
/tools/tradefederation/core/src/com/android/tradefed/retry/
DBaseRetryDecision.java18 import com.android.ddmlib.testrunner.TestResult.TestStatus;
26 import com.android.tradefed.result.TestResult;
180 public static Map<TestDescription, TestResult> getFailedTestCases( in getFailedTestCases()
182 Map<TestDescription, TestResult> failedTestCases = new LinkedHashMap<>(); in getFailedTestCases()
185 for (Entry<TestDescription, TestResult> entry : run.getTestResults().entrySet()) { in getFailedTestCases()
229 Map<TestDescription, TestResult> previousFailedTests = getFailedTestCases(previousResults); in handleRetryFailures()
264 ITestFilterReceiver test, Map<TestDescription, TestResult> tests) { in addRetriedTestsToFilters()
267 for (Entry<TestDescription, TestResult> testCaseEntry : tests.entrySet()) { in addRetriedTestsToFilters()
/tools/test/graphicsbenchmark/performance_tests/hostside/src/com/android/game/qualification/reporter/
DGameQualificationResultReporter.java20 import com.android.ddmlib.testrunner.TestResult.TestStatus;
34 import com.android.tradefed.result.TestResult;
179 for (Map.Entry<TestDescription, TestResult> entry in getInvocationSummary()
202 TestResult result = testRunResult.getTestResults().get(test); in getInvocationSummary()
247 TestResult result = testRunResult.getTestResults().get(test); in createFunctionalTestFailureReport()
275 Map<TestDescription, TestResult> testResults = testRunResult.getTestResults(); in getTestRunSummary()
276 for (Map.Entry<TestDescription, TestResult> entry : testResults.entrySet()) { in getTestRunSummary()
368 private String getTestSummary(TestDescription testId, TestResult testResult) { in getTestSummary()
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/
DGTestResultParser.java96 private TestResult mCurrentTestResult = null;
140 private static class TestResult { class in GTestResultParser
256 private TestResult getCurrentTestResult() { in getCurrentTestResult()
258 mCurrentTestResult = new TestResult(); in getCurrentTestResult()
554 private String getTestClass(TestResult testResult) { in getTestClass()
573 TestResult testResult = getCurrentTestResult(); in processTestStartedTag()
600 TestResult testResult = getCurrentTestResult(); in doTestEnded()
711 TestResult testResult = getCurrentTestResult(); in appendTestOutputLine()
/tools/tradefederation/core/src/com/android/tradefed/result/suite/
DXmlSuiteResultFormatter.java19 import com.android.ddmlib.testrunner.TestResult.TestStatus;
27 import com.android.tradefed.result.TestResult;
318 XmlSerializer serializer, Map<TestDescription, TestResult> results) in serializeTestCases()
321 Map<String, Map<String, TestResult>> format = new LinkedHashMap<>(); in serializeTestCases()
322 for (Entry<TestDescription, TestResult> cr : results.entrySet()) { in serializeTestCases()
326 Map<String, TestResult> methodResult = format.get(cr.getKey().getClassName()); in serializeTestCases()
333 for (Entry<String, TestResult> individualResult : format.get(className).entrySet()) { in serializeTestCases()
387 XmlSerializer serializer, Entry<String, TestResult> testResult) in HandleLoggedFiles()
/tools/tradefederation/core/src/com/android/tradefed/result/
DTestResultListener.java18 import com.android.ddmlib.testrunner.TestResult.TestStatus;
36 private TestResult mCurrentResult;
38 public abstract void testResult(TestDescription test, TestResult result); in testResult()
47 mCurrentResult = new TestResult(); in testStarted()
70 mCurrentResult.setStatus(com.android.ddmlib.testrunner.TestResult.TestStatus.IGNORED); in testIgnored()
DConsoleResultReporter.java18 import com.android.ddmlib.testrunner.TestResult.TestStatus;
62 private Map<TestDescription, TestResult> mFailures = new LinkedHashMap<>();
81 public void testResult(TestDescription test, TestResult result) { in testResult()
157 for (Entry<TestDescription, TestResult> entry : mFailures.entrySet()) { in invocationEnded()
190 static String getTestSummary(String testTag, TestDescription testId, TestResult testResult) { in getTestSummary()
DXmlResultReporter.java21 import com.android.ddmlib.testrunner.TestResult.TestStatus;
164 Map<TestDescription, TestResult> testResults = runResult.getTestResults(); in printTestResults()
165 for (Map.Entry<TestDescription, TestResult> testEntry : testResults.entrySet()) { in printTestResults()
173 void print(KXmlSerializer serializer, TestDescription testId, TestResult testResult) in print()
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/junit4/
DBaseHostJUnit4Test.java24 import com.android.ddmlib.testrunner.TestResult.TestStatus;
34 import com.android.tradefed.result.TestResult;
661 for (Map.Entry<TestDescription, TestResult> resultEntry : in runDeviceTests()
672 List<TestResult> assumpFail = in runDeviceTests()
808 for (Map.Entry<TestDescription, TestResult> testEntry : in printTestResult()
810 TestResult testResult = testEntry.getValue(); in printTestResult()
/tools/test/connectivity/acts/framework/tests/
Dacts_records_test.py172 tr1 = records.TestResult()
180 tr2 = records.TestResult()
193 tr1 = records.TestResult()
208 tr = records.TestResult()
223 tr = records.TestResult()

123