Home
last modified time | relevance | path

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

12

/tools/tradefederation/core/javatests/com/android/tradefed/result/
DXmlResultReporterTest.java114 final TestDescription testId = new TestDescription("FooTest", "testFoo"); in testSinglePass() local
120 mResultReporter.testStarted(testId); in testSinglePass()
121 mResultReporter.testEnded(testId, emptyMap); in testSinglePass()
128 testId.getTestName(), testId.getClassName()); in testSinglePass()
138 final TestDescription testId = new TestDescription("FooTest", "testFoo"); in testSingleFail() local
145 mResultReporter.testStarted(testId); in testSingleFail()
146 mResultReporter.testFailed(testId, trace); in testSingleFail()
147 mResultReporter.testEnded(testId, emptyMap); in testSingleFail()
154 testId.getTestName(), testId.getClassName()); in testSingleFail()
166 final TestDescription testId = new TestDescription("FooTest", "testFoo"); in testSingleIgnored() local
[all …]
DMetricsXMLResultReporterTest.java79 final TestDescription testId = new TestDescription("FooTest", "testFoo"); in testRunMetrics() local
85 mResultReporter.testStarted(testId); in testRunMetrics()
86 mResultReporter.testEnded(testId, TfMetricProtoUtil.upgradeConvert(map)); in testRunMetrics()
94 testId.getTestName(), testId.getClassName()); in testRunMetrics()
106 final TestDescription testId = new TestDescription("FooTest", "testFoo"); in testTestMetrics() local
112 mResultReporter.testStarted(testId); in testTestMetrics()
113 mResultReporter.testEnded(testId, TfMetricProtoUtil.upgradeConvert(map)); in testTestMetrics()
121 testId.getTestName(), testId.getClassName()); in testTestMetrics()
130 final TestDescription testId = new TestDescription("FooTest", "testFoo"); in testTestFailMetrics() local
137 mResultReporter.testStarted(testId); in testTestFailMetrics()
[all …]
DSubprocessResultsReporterTest.java63 TestDescription testId = new TestDescription("com.fakeclass", "faketest"); in testPrintEvent_Inop() local
64 mReporter.testStarted(testId); in testPrintEvent_Inop()
65 mReporter.testFailed(testId, "fake failure"); in testPrintEvent_Inop()
66 mReporter.testEnded(testId, new HashMap<String, Metric>()); in testPrintEvent_Inop()
116 TestDescription testId = new TestDescription("com.fakeclass", "faketest"); in testPrintEvent_printToSocket() local
126 mReporter.testIgnored(testId); in testPrintEvent_printToSocket()
127 mReporter.testAssumptionFailure(testId, "fake trace"); in testPrintEvent_printToSocket()
133 verify(mMockListener).testIgnored(testId); in testPrintEvent_printToSocket()
134 verify(mMockListener).testAssumptionFailure(testId, "fake trace"); in testPrintEvent_printToSocket()
153 TestDescription testId = new TestDescription("com.fakeclass", "faketest"); in testPrintEvent_printToSocket_StructuredFailures() local
[all …]
DLegacySubprocessResultsReporterTest.java55 TestIdentifier testId = new TestIdentifier("com.fakeclass", "faketest"); in testPrintEvent_Inop() local
56 mReporter.testStarted(testId); in testPrintEvent_Inop()
57 mReporter.testFailed(testId, "fake failure"); in testPrintEvent_Inop()
58 mReporter.testEnded(testId, Collections.emptyMap()); in testPrintEvent_Inop()
68 TestIdentifier testId = new TestIdentifier("com.fakeclass", "faketest"); in testPrintEvent_printToSocket() local
79 mReporter.testIgnored(testId); in testPrintEvent_printToSocket()
80 mReporter.testAssumptionFailure(testId, "fake trace"); in testPrintEvent_printToSocket()
/tools/tradefederation/core/src/com/android/tradefed/result/
DSubprocessResultsReporter.java93 public void testAssumptionFailure(TestDescription testId, String trace) { in testAssumptionFailure() argument
95 new FailedTestEventInfo(testId.getClassName(), testId.getTestName(), trace); in testAssumptionFailure()
101 public void testAssumptionFailure(TestDescription testId, FailureDescription failure) { in testAssumptionFailure() argument
103 new FailedTestEventInfo(testId.getClassName(), testId.getTestName(), failure); in testAssumptionFailure()
109 public void testSkipped(TestDescription testId, SkipReason reason) { in testSkipped() argument
111 new SkippedTestEventInfo(testId.getClassName(), testId.getTestName(), reason); in testSkipped()
117 public void testEnded(TestDescription testId, HashMap<String, Metric> metrics) { in testEnded() argument
118 testEnded(testId, System.currentTimeMillis(), metrics); in testEnded()
123 public void testEnded(TestDescription testId, long endTime, HashMap<String, Metric> metrics) { in testEnded() argument
127 testId.getClassName(), in testEnded()
[all …]
DLegacySubprocessResultsReporter.java79 public void testAssumptionFailure(TestIdentifier testId, String trace) { in testAssumptionFailure() argument
81 new FailedTestEventInfo(testId.getClassName(), testId.getTestName(), trace); in testAssumptionFailure()
86 public void testEnded(TestIdentifier testId, Map<String, String> metrics) { in testEnded() argument
87 testEnded(testId, System.currentTimeMillis(), metrics); in testEnded()
91 public void testEnded(TestIdentifier testId, long endTime, Map<String, String> metrics) { in testEnded() argument
94 testId.getClassName(), testId.getTestName(), endTime, metrics); in testEnded()
99 public void testFailed(TestIdentifier testId, String reason) { in testFailed() argument
101 new FailedTestEventInfo(testId.getClassName(), testId.getTestName(), reason); in testFailed()
106 public void testIgnored(TestIdentifier testId) { in testIgnored() argument
107 BaseTestEventInfo info = new BaseTestEventInfo(testId.getClassName(), testId.getTestName()); in testIgnored()
[all …]
DTextResultReporter.java46 public void testFailed(TestDescription testId, String trace) { in testFailed() argument
47 super.testFailed(testId, trace); in testFailed()
51 public void testAssumptionFailure(TestDescription testId, String trace) { in testAssumptionFailure() argument
52 super.testAssumptionFailure(testId, trace); in testAssumptionFailure()
57 public void testEnded(TestDescription testId, HashMap<String, Metric> metrics) { in testEnded() argument
58 super.testEnded(testId, metrics); in testEnded()
61 printer.getWriter().format("\n%s metrics: %s\n", testId, metrics); in testEnded()
DInvocationToJUnitResultForwarder.java57 public void testFailed(TestDescription testId, String trace) { in testFailed() argument
58 Test test = new TestIdentifierResult(testId); in testFailed()
61 CLog.w("\nTest %s failed with stack:\n %s", testId.toString(), trace); in testFailed()
65 public void testAssumptionFailure(TestDescription testId, String trace) { in testAssumptionFailure() argument
66 Test test = new TestIdentifierResult(testId); in testAssumptionFailure()
121 private TestIdentifierResult(TestDescription testId) { in TestIdentifierResult() argument
122 mTestId = testId; in TestIdentifierResult()
/tools/tradefederation/core/src/com/android/tradefed/testtype/
DDynamicFileStubTest.java75 TestDescription testId = new TestDescription(this.getClass().getName(), "DynamicFile"); in checkDynamicFile() local
76 listener.testStarted(testId); in checkDynamicFile()
79 listener.testFailed(testId, String.format("%s doesn't exist.", mFile.getPath())); in checkDynamicFile()
82 listener.testEnded(testId, new LinkedHashMap<String, Metric>()); in checkDynamicFile()
86 TestDescription testId = new TestDescription(this.getClass().getName(), "DynamicFileList"); in checkDynamicFileList() local
87 listener.testStarted(testId); in checkDynamicFileList()
96 listener.testFailed(testId, String.format("%s doesn't exist.", nonExistFiles)); in checkDynamicFileList()
99 listener.testEnded(testId, new LinkedHashMap<String, Metric>()); in checkDynamicFileList()
103 TestDescription testId = new TestDescription(this.getClass().getName(), "DynamicFileMap"); in checkDynamicFileMap() local
104 listener.testStarted(testId); in checkDynamicFileMap()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/result/ddmlib/
DTestRunToTestInvocationForwarder.java69 public void testStarted(TestIdentifier testId) { in testStarted() argument
70 if (INVALID_METHODS.contains(testId.getTestName())) { in testStarted()
71 mInvalidMethod = testId; in testStarted()
78 listener.testStarted(TestDescription.createFromTestIdentifier(testId)); in testStarted()
89 public void testAssumptionFailure(TestIdentifier testId, String trace) { in testAssumptionFailure() argument
90 if (mInvalidMethod != null && mInvalidMethod.equals(testId)) { in testAssumptionFailure()
96 TestDescription.createFromTestIdentifier(testId), trace); in testAssumptionFailure()
107 public void testFailed(TestIdentifier testId, String trace) { in testFailed() argument
108 if (mInvalidMethod != null && mInvalidMethod.equals(testId)) { in testFailed()
115 TestDescription.createFromTestIdentifier(testId), in testFailed()
[all …]
/tools/tradefederation/core/javatests/com/android/tradefed/testtype/
DGTestFuncTest.java122 private void doNativeTestAppRunSingleTestFailure(TestDescription testId) { in doNativeTestAppRunSingleTestFailure() argument
131 private void verifyNativeTestAppRunSingleTestFailure(TestDescription testId) { in verifyNativeTestAppRunSingleTestFailure() argument
134 verify(mMockListener).testStarted(Mockito.eq(testId)); in verifyNativeTestAppRunSingleTestFailure()
135 verify(mMockListener).testFailed(Mockito.eq(testId), Mockito.isA(String.class)); in verifyNativeTestAppRunSingleTestFailure()
136 verify(mMockListener).testEnded(Mockito.eq(testId), Mockito.eq(emptyMap)); in verifyNativeTestAppRunSingleTestFailure()
146 TestDescription testId = in testRun_testCrash() local
149 doNativeTestAppRunSingleTestFailure(testId); in testRun_testCrash()
155 verifyNativeTestAppRunSingleTestFailure(testId); in testRun_testCrash()
163 TestDescription testId = in testRun_deviceReboot() local
167 doNativeTestAppRunSingleTestFailure(testId); in testRun_deviceReboot()
[all …]
DArtRunTestTest.java178 TestDescription testId = new TestDescription(runName, runTestName); in doTestRunSingleTest() local
247 verify(mMockInvocationListener).testStarted(testId); in doTestRunSingleTest()
249 .testEnded(eq(testId), (HashMap<String, Metric>) Mockito.any()); in doTestRunSingleTest()
301 TestDescription testId = new TestDescription(runName, runTestName); in testRunSingleTest_nonZeroExitCode() local
370 verify(mMockInvocationListener).testStarted(testId); in testRunSingleTest_nonZeroExitCode()
371 verify(mMockInvocationListener).testFailed(testId, "Test `test` exited with code 1"); in testRunSingleTest_nonZeroExitCode()
373 .testEnded(eq(testId), (HashMap<String, Metric>) Mockito.any()); in testRunSingleTest_nonZeroExitCode()
401 TestDescription testId = new TestDescription(runName, runTestName); in testRunSingleTest_unexpectedStandardOutput() local
479 verify(mMockInvocationListener).testStarted(testId); in testRunSingleTest_unexpectedStandardOutput()
480 verify(mMockInvocationListener).testFailed(testId, errorMessage); in testRunSingleTest_unexpectedStandardOutput()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/util/
DLocalRunInstructionBuilder.java58 TestDescription testId) { in getInstruction() argument
64 return getAtestInstruction(configDescriptor, testId); in getInstruction()
79 ConfigurationDescriptor configDescriptor, TestDescription testId) { in getAtestInstruction() argument
82 instruction.append(getCommand(configDescriptor, testId, LocalTestRunner.ATEST)); in getAtestInstruction()
96 TestDescription testId, in getCommand() argument
104 if (testId != null) { in getCommand()
105 testName.append(String.format(":%s", testId.getClassName())); in getCommand()
108 if (testId.getTestName().equals(testId.getTestNameWithoutParams())) { in getCommand()
109 testName.append(String.format("#%s", testId.getTestName())); in getCommand()
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/
DGTestResultParser.java429 private void setTestStarted(TestDescription testId) { in setTestStarted() argument
431 mMethodScope = new CloseableTraceScope(testId.toString()); in setTestStarted()
521 String[] testId = identifier.split("\\."); in parseTestDescription() local
522 if (testId.length < 2) { in parseTestDescription()
528 returnInfo.mTestClassName = testId[0]; in parseTestDescription()
529 returnInfo.mTestName = testId[1]; in parseTestDescription()
609 TestDescription testId = null; in processTestStartedTag() local
611 testId = new TestDescription(getTestClass(testResult), testResult.mTestName); in processTestStartedTag()
619 listener.testStarted(testId, testResult.mStartTimeMs); in processTestStartedTag()
621 setTestStarted(testId); in processTestStartedTag()
[all …]
DGoogleBenchmarkResultParser.java113 TestDescription testId = new TestDescription(mTestClassName, name); in parse() local
114 mTestListener.testStarted(testId); in parse()
115 try (CloseableTraceScope ignore = new CloseableTraceScope(testId.toString())) { in parse()
121 testId, in parse()
129 mTestListener.testIgnored(testId); in parse()
138 testId, "Benchmark reported an unspecified error"); in parse()
141 testId, in parse()
148 mTestListener.testEnded(testId, TfMetricProtoUtil.upgradeConvert(testResults)); in parse()
DGTestXmlResultParser.java192 TestDescription testId = in processTestResult() local
197 listener.testStarted(testId, startTimeMs); in processTestResult()
202 listener.testIgnored(testId); in processTestResult()
207 mFailedTests.add(String.format("%s.%s", testId.getClassName(), testId.getTestName())); in processTestResult()
216 listener.testFailed(testId, trace); in processTestResult()
224 listener.testEnded(testId, endTimeMs, TfMetricProtoUtil.upgradeConvert(map)); in processTestResult()
DPythonUnitTestResultParser.java471 TestDescription testId = new TestDescription(mCurrentTestClass, mCurrentTestName); in reportNonFailureTestResult() local
475 mTestResultCache.put(testId, SKIPPED_ENTRY); in reportNonFailureTestResult()
477 mTestResultCache.put(testId, null); in reportNonFailureTestResult()
479 mTestResultCache.put(testId, SKIPPED_ENTRY); in reportNonFailureTestResult()
481 mTestResultCache.put(testId, "Test unexpected succeeded"); in reportNonFailureTestResult()
491 TestDescription testId = new TestDescription(mCurrentTestClass, mCurrentTestName); in reportFailureTestResult() local
493 mTestResultCache.put(testId, SKIPPED_ENTRY); in reportFailureTestResult()
495 mTestResultCache.put(testId, mCurrentTraceback.toString()); in reportFailureTestResult()
DDeviceTestCase.java133 TestDescription testId = new TestDescription(runName, methodName); in run() local
134 listener.testStarted(testId); in run()
135 listener.testEnded(testId, empty); in run()
140 TestDescription testId = new TestDescription(runName, getName()); in run() local
141 listener.testStarted(testId); in run()
142 listener.testEnded(testId, empty); in run()
/tools/test/graphicsbenchmark/performance_tests/hostside/src/com/android/game/qualification/reporter/
DGameQualificationResultReporter.java62 public void putRequirements(TestDescription testId, CertificationRequirements requirements) { in putRequirements() argument
63 mRequirements.put(testId, requirements); in putRequirements()
76 … public void testEnded(TestDescription testId, long elapsedTime, HashMap<String, Metric> metrics) { in testEnded() argument
77 super.testEnded(testId, elapsedTime, metrics); in testEnded()
81 summaries.put(testId, summary); in testEnded()
305 TestDescription testId = entry.getKey(); in createPerformanceReport() local
310 text.append(testId.getTestName()); in createPerformanceReport()
327 testId.getTestName(), in createPerformanceReport()
338 text.append(testId.getTestName()); in createPerformanceReport()
347 text.append(testId.getTestName()); in createPerformanceReport()
[all …]
/tools/tradefederation/contrib/src/com/android/example/
DRebootTest.java44 TestDescription testId; in run() local
50 testId = new TestDescription("RebootTest", in run()
52 listener.testStarted(testId); in run()
56 listener.testFailed(testId, "Failed to reboot."); in run()
58 listener.testEnded(testId, emptyMap); in run()
/tools/tradefederation/contrib/src/com/android/media/tests/
DVideoMultimeterRunner.java65 TestDescription testId = new TestDescription(getClass() in run() local
69 listener.testStarted(testId); in run()
86 listener.testFailed(testId, "Failed to set up environment"); in run()
90 listener.testFailed(testId, "Failed to acquire run token"); in run()
93 listener.testEnded(testId, TfMetricProtoUtil.upgradeConvert(metrics)); in run()
DAudioJitterTest.java92 TestDescription testId = new TestDescription(getClass().getCanonicalName(), RUN_KEY); in run() local
96 listener.testStarted(testId); in run()
123 listener.testFailed(testId, errMsg); in run()
124 listener.testEnded(testId, TfMetricProtoUtil.upgradeConvert(metrics)); in run()
128 listener.testEnded(testId, TfMetricProtoUtil.upgradeConvert(metrics)); in run()
/tools/tradefederation/contrib/src/com/android/tradefed/
DSl4aBluetoothDiscovery.java93 TestDescription testId = in run() local
98 listener.testStarted(testId); in run()
121 listener.testFailed(testId, "Did not find the bluetooth from DUT."); in run()
125 listener.testFailed(testId, "Exception " + e); in run()
127 listener.testEnded(testId, new HashMap<String, Metric>()); in run()
/tools/tradefederation/core/javatests/com/android/tradefed/util/
DLocalRunInstructionBuilderTest.java77 TestDescription testId = new TestDescription(CLASS_NAME, METHOD_NAME); in testGetInstruction_withTestId() local
80 configDescriptor, LocalTestRunner.ATEST, testId); in testGetInstruction_withTestId()
97 TestDescription testId = new TestDescription(CLASS_NAME, METHOD_NAME_WITH_PARAMETER); in testGetInstruction_withTestIdAndParameter() local
100 configDescriptor, LocalTestRunner.ATEST, testId); in testGetInstruction_withTestIdAndParameter()
/tools/netsim/testing/tests/wifi/nsd/src/android/test/wifi/nsd/
DNsdInstrumentationTest.java33 private static String testId; field in NsdInstrumentationTest
39 testId = InstrumentationRegistry.getArguments().getString("test_id"); in setup()
46 NsdHelper nsdHelper = new NsdHelper(appContext, testId); in testNsd()

12