Начиная с 27 марта 2025 г. мы рекомендуем использовать android-latest-release
вместо aosp-main
для создания и участия в AOSP. Дополнительные сведения см. в разделе Изменения в AOSP .
Оптимизируйте свои подборки
Сохраняйте и классифицируйте контент в соответствии со своими настройками.
SubprocessResultsReporter
public class SubprocessResultsReporter
extends Object
implements ITestInvocationListener, ILogSaverListener, ISupportGranularResults
java.lang.Объект |
↳ | com.android.tradefed.result.SubprocessResultsReporter |
Известные прямые подклассы LegacySubprocessResultsReporter | Замороженная реализация генератора отчетов о результатах подпроцесса, которая должна оставаться совместимой с более ранними версиями TF/CTS (например, 8+), несмотря на изменения в его суперклассе. |
|
Реализует ITestInvocationListener
, который указывается как result_reporter и пересылает из подпроцесса результаты тестов, запусков тестов и вызовов тестов.
Краткое содержание
Публичные методы |
---|
void | close () |
TestSummary | getSummary () |
void | invocationEnded (long elapsedTime) |
void | invocationFailed (FailureDescription failure) |
void | invocationFailed (Throwable cause) |
void | invocationStarted (IInvocationContext context) |
void | logAssociation (String dataName, LogFile logFile) |
void | printEvent (String key, Object event) Помощник для печати ключа события, а затем объекта json. |
void | setOutputTestLog (boolean outputTestLog) Устанавливает, должны ли мы выводить зарегистрированный тест или нет. |
boolean | supportGranularResults () |
void | testAssumptionFailure (TestDescription testId, String trace) |
void | testAssumptionFailure (TestDescription testId, FailureDescription failure) |
void | testEnded (TestDescription testId, long endTime, metrics) testEnded (TestDescription testId, long endTime, metrics) |
void | testEnded (TestDescription testId, metrics) testEnded (TestDescription testId, metrics) |
void | testFailed (TestDescription testId, FailureDescription failure) |
void | testFailed (TestDescription testId, String reason) |
void | testIgnored (TestDescription testId) |
void | testLog (String dataName, LogDataType dataType, InputStreamSource dataStream) |
void | testModuleEnded () |
void | testModuleStarted (IInvocationContext moduleContext) |
void | testRunEnded (long time, runMetrics) testRunEnded (long time, runMetrics) |
void | testRunFailed (FailureDescription failure) |
void | testRunFailed (String reason) |
void | testRunStarted (String runName, int testCount, int attemptNumber) |
void | testRunStarted (String runName, int testCount) |
void | testRunStarted (String runName, int testCount, int attemptNumber, long startTime) |
void | testRunStopped (long arg0) |
void | testStarted (TestDescription testId, long startTime) |
void | testStarted (TestDescription testId) |
Общественные конструкторы
SubprocessResultsReporter
public SubprocessResultsReporter ()
Публичные методы
закрывать
public void close ()
получитьСводка
public TestSummary getSummary ()
вызовЗавершен
public void invocationEnded (long elapsedTime)
Параметры |
---|
elapsedTime | long |
вызов не пройден
public void invocationFailed (FailureDescription failure)
Параметры |
---|
failure | FailureDescription |
вызов не пройден
public void invocationFailed (Throwable cause)
Параметры |
---|
cause | Throwable |
вызовНачало
public void invocationStarted (IInvocationContext context)
Параметры |
---|
context | IInvocationContext |
logAssociation
public void logAssociation (String dataName,
LogFile logFile)
Параметры |
---|
dataName | String |
logFile | LogFile |
printEvent
public void printEvent (String key,
Object event)
Помощник для печати ключа события, а затем объекта json.
Параметры |
---|
key | String |
event | Object |
setOutputTestLog
public void setOutputTestLog (boolean outputTestLog)
Устанавливает, должны ли мы выводить зарегистрированный тест или нет.
Параметры |
---|
outputTestLog | boolean |
поддержкаGranularResults
public boolean supportGranularResults ()
тестПредположениеОтказ
public void testAssumptionFailure (TestDescription testId,
String trace)
Параметры |
---|
testId | TestDescription |
trace | String |
тестПредположениеОтказ
public void testAssumptionFailure (TestDescription testId,
FailureDescription failure)
Параметры |
---|
testId | TestDescription |
failure | FailureDescription |
testEnded
public void testEnded (TestDescription testId,
long endTime,
metrics)
Параметры |
---|
testId | TestDescription |
endTime | long |
metrics | |
testEnded
public void testEnded (TestDescription testId,
metrics)
Параметры |
---|
testId | TestDescription |
metrics | |
тест не пройден
public void testFailed (TestDescription testId,
FailureDescription failure)
Параметры |
---|
testId | TestDescription |
failure | FailureDescription |
тест не пройден
public void testFailed (TestDescription testId,
String reason)
Параметры |
---|
testId | TestDescription |
reason | String |
тестИгнорируется
public void testIgnored (TestDescription testId)
Параметры |
---|
testId | TestDescription |
public void testLog (String dataName,
LogDataType dataType,
InputStreamSource dataStream)
Параметры |
---|
dataName | String |
dataType | LogDataType |
dataStream | InputStreamSource |
testModuleEnded
public void testModuleEnded ()
testModuleStarted
public void testModuleStarted (IInvocationContext moduleContext)
Параметры |
---|
moduleContext | IInvocationContext |
testRunEnded
public void testRunEnded (long time,
runMetrics)
Параметры |
---|
time | long |
runMetrics | |
testRunFailed
public void testRunFailed (FailureDescription failure)
Параметры |
---|
failure | FailureDescription |
testRunFailed
public void testRunFailed (String reason)
testRunStarted
public void testRunStarted (String runName,
int testCount,
int attemptNumber)
Параметры |
---|
runName | String |
testCount | int |
attemptNumber | int |
testRunStarted
public void testRunStarted (String runName,
int testCount)
Параметры |
---|
runName | String |
testCount | int |
testRunStarted
public void testRunStarted (String runName,
int testCount,
int attemptNumber,
long startTime)
Параметры |
---|
runName | String |
testCount | int |
attemptNumber | int |
startTime | long |
testRunStopped
public void testRunStopped (long arg0)
тестНачало
public void testStarted (TestDescription testId,
long startTime)
Параметры |
---|
testId | TestDescription |
startTime | long |
тестНачало
public void testStarted (TestDescription testId)
Параметры |
---|
testId | TestDescription |
,
SubprocessResultsReporter
public class SubprocessResultsReporter
extends Object
implements ITestInvocationListener, ILogSaverListener, ISupportGranularResults
java.lang.Объект |
↳ | com.android.tradefed.result.SubprocessResultsReporter |
Известные прямые подклассы LegacySubprocessResultsReporter | Замороженная реализация генератора отчетов о результатах подпроцесса, которая должна оставаться совместимой с более ранними версиями TF/CTS (например, 8+), несмотря на изменения в его суперклассе. |
|
Реализует ITestInvocationListener
, который указывается как result_reporter и пересылает из подпроцесса результаты тестов, запусков тестов и вызовов тестов.
Краткое содержание
Публичные методы |
---|
void | close () |
TestSummary | getSummary () |
void | invocationEnded (long elapsedTime) |
void | invocationFailed (FailureDescription failure) |
void | invocationFailed (Throwable cause) |
void | invocationStarted (IInvocationContext context) |
void | logAssociation (String dataName, LogFile logFile) |
void | printEvent (String key, Object event) Помощник для печати ключа события, а затем объекта json. |
void | setOutputTestLog (boolean outputTestLog) Устанавливает, должны ли мы выводить зарегистрированный тест или нет. |
boolean | supportGranularResults () |
void | testAssumptionFailure (TestDescription testId, String trace) |
void | testAssumptionFailure (TestDescription testId, FailureDescription failure) |
void | testEnded (TestDescription testId, long endTime, metrics) testEnded (TestDescription testId, long endTime, metrics) |
void | testEnded (TestDescription testId, metrics) testEnded (TestDescription testId, metrics) |
void | testFailed (TestDescription testId, FailureDescription failure) |
void | testFailed (TestDescription testId, String reason) |
void | testIgnored (TestDescription testId) |
void | testLog (String dataName, LogDataType dataType, InputStreamSource dataStream) |
void | testModuleEnded () |
void | testModuleStarted (IInvocationContext moduleContext) |
void | testRunEnded (long time, runMetrics) testRunEnded (long time, runMetrics) |
void | testRunFailed (FailureDescription failure) |
void | testRunFailed (String reason) |
void | testRunStarted (String runName, int testCount, int attemptNumber) |
void | testRunStarted (String runName, int testCount) |
void | testRunStarted (String runName, int testCount, int attemptNumber, long startTime) |
void | testRunStopped (long arg0) |
void | testStarted (TestDescription testId, long startTime) |
void | testStarted (TestDescription testId) |
Общественные конструкторы
SubprocessResultsReporter
public SubprocessResultsReporter ()
Публичные методы
закрывать
public void close ()
получитьСводка
public TestSummary getSummary ()
вызовЗавершен
public void invocationEnded (long elapsedTime)
Параметры |
---|
elapsedTime | long |
вызов не пройден
public void invocationFailed (FailureDescription failure)
Параметры |
---|
failure | FailureDescription |
вызов не пройден
public void invocationFailed (Throwable cause)
Параметры |
---|
cause | Throwable |
вызовНачало
public void invocationStarted (IInvocationContext context)
Параметры |
---|
context | IInvocationContext |
logAssociation
public void logAssociation (String dataName,
LogFile logFile)
Параметры |
---|
dataName | String |
logFile | LogFile |
printEvent
public void printEvent (String key,
Object event)
Помощник для печати ключа события, а затем объекта json.
Параметры |
---|
key | String |
event | Object |
setOutputTestLog
public void setOutputTestLog (boolean outputTestLog)
Устанавливает, должны ли мы выводить зарегистрированный тест или нет.
Параметры |
---|
outputTestLog | boolean |
поддержкаGranularResults
public boolean supportGranularResults ()
тестПредположениеОтказ
public void testAssumptionFailure (TestDescription testId,
String trace)
Параметры |
---|
testId | TestDescription |
trace | String |
тестПредположениеОтказ
public void testAssumptionFailure (TestDescription testId,
FailureDescription failure)
Параметры |
---|
testId | TestDescription |
failure | FailureDescription |
testEnded
public void testEnded (TestDescription testId,
long endTime,
metrics)
Параметры |
---|
testId | TestDescription |
endTime | long |
metrics | |
testEnded
public void testEnded (TestDescription testId,
metrics)
Параметры |
---|
testId | TestDescription |
metrics | |
тест не пройден
public void testFailed (TestDescription testId,
FailureDescription failure)
Параметры |
---|
testId | TestDescription |
failure | FailureDescription |
тест не пройден
public void testFailed (TestDescription testId,
String reason)
Параметры |
---|
testId | TestDescription |
reason | String |
тестИгнорируется
public void testIgnored (TestDescription testId)
Параметры |
---|
testId | TestDescription |
public void testLog (String dataName,
LogDataType dataType,
InputStreamSource dataStream)
Параметры |
---|
dataName | String |
dataType | LogDataType |
dataStream | InputStreamSource |
testModuleEnded
public void testModuleEnded ()
testModuleStarted
public void testModuleStarted (IInvocationContext moduleContext)
Параметры |
---|
moduleContext | IInvocationContext |
testRunEnded
public void testRunEnded (long time,
runMetrics)
Параметры |
---|
time | long |
runMetrics | |
testRunFailed
public void testRunFailed (FailureDescription failure)
Параметры |
---|
failure | FailureDescription |
testRunFailed
public void testRunFailed (String reason)
testRunStarted
public void testRunStarted (String runName,
int testCount,
int attemptNumber)
Параметры |
---|
runName | String |
testCount | int |
attemptNumber | int |
testRunStarted
public void testRunStarted (String runName,
int testCount)
Параметры |
---|
runName | String |
testCount | int |
testRunStarted
public void testRunStarted (String runName,
int testCount,
int attemptNumber,
long startTime)
Параметры |
---|
runName | String |
testCount | int |
attemptNumber | int |
startTime | long |
testRunStopped
public void testRunStopped (long arg0)
тестНачало
public void testStarted (TestDescription testId,
long startTime)
Параметры |
---|
testId | TestDescription |
startTime | long |
тестНачало
public void testStarted (TestDescription testId)
Параметры |
---|
testId | TestDescription |
Контент и образцы кода на этой странице предоставлены по лицензиям. Java и OpenJDK – это зарегистрированные товарные знаки корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2025-03-26 UTC.
[[["Прост для понимания","easyToUnderstand","thumb-up"],["Помог мне решить мою проблему","solvedMyProblem","thumb-up"],["Другое","otherUp","thumb-up"]],[["Отсутствует нужная мне информация","missingTheInformationINeed","thumb-down"],["Слишком сложен/слишком много шагов","tooComplicatedTooManySteps","thumb-down"],["Устарел","outOfDate","thumb-down"],["Проблема с переводом текста","translationIssue","thumb-down"],["Проблемы образцов/кода","samplesCodeIssue","thumb-down"],["Другое","otherDown","thumb-down"]],["Последнее обновление: 2025-03-26 UTC."],[],[]]