2025 年 3 月 27 日より、AOSP のビルドとコントリビューションには aosp-main
ではなく android-latest-release
を使用することをおすすめします。詳細については、AOSP の変更をご覧ください。
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
ProtoResultReporter
public
abstract
class
ProtoResultReporter
extends Object
implements
ITestInvocationListener,
ILogSaverListener,
ISupportGranularResults
java.lang.Object
|
↳ |
com.android.tradefed.result.proto.ProtoResultReporter
|
結果レポーターは、すべての結果を含む TestRecord
プロトブーブをビルドします。processFinalProto(com.android.tradefed.result.proto.TestRecordProto.TestRecord)
の最終的なプロトコルをどのように処理するかを処理するように拡張する必要があります。
概要
パブリック メソッド |
final
void
|
invocationEnded(long elapsedTime)
|
void
|
invocationFailed(FailureDescription failure)
|
void
|
invocationFailed(Throwable cause)
|
final
void
|
invocationStarted(IInvocationContext context)
|
final
void
|
logAssociation(String dataName, LogFile logFile)
|
void
|
processFinalProto(TestRecordProto.TestRecord finalRecord)
すべての結果を含む最終プロトコルの処理。
|
void
|
processStartInvocation(TestRecordProto.TestRecord invocationStartRecord, IInvocationContext invocationContext)
invocationStarted(com.android.tradefed.invoker.IInvocationContext) が発生した後の部分呼び出しテスト レコード プロトコルの処理。
|
void
|
processTestCaseEnded(TestRecordProto.TestRecord testCaseRecord)
ITestLifeCycleReceiver.testEnded(com.android.tradefed.result.TestDescription, long, HashMap) 発生後の確定済みテストケース レコード プロトコルの処理。
|
void
|
processTestCaseStarted(TestRecordProto.TestRecord testCaseStartedRecord)
testStarted(com.android.tradefed.result.TestDescription, long) が発生した後の部分的なテストケース レコード プロトコルの処理。
|
void
|
processTestModuleEnd(TestRecordProto.TestRecord moduleRecord)
testModuleEnded() が発生した後の、ファイナライズされたモジュール レコード proto の処理。
|
void
|
processTestModuleStarted(TestRecordProto.TestRecord moduleStartRecord)
testModuleStarted(com.android.tradefed.invoker.IInvocationContext) が発生した後の部分モジュール レコード プロトコルの処理。
|
void
|
processTestRunEnded(TestRecordProto.TestRecord runRecord, boolean moduleInProgress)
ITestLifeCycleReceiver.testRunEnded(long, HashMap) が発生した後の、確定済み実行レコード proto の処理。
|
void
|
processTestRunStarted(TestRecordProto.TestRecord runStartedRecord)
testRunStarted(String, int) が発生した後の部分テスト実行レコード プロトコルの処理。
|
boolean
|
supportGranularResults()
|
final
void
|
testAssumptionFailure(TestDescription test, String trace)
|
final
void
|
testAssumptionFailure(TestDescription test, FailureDescription failure)
|
final
void
|
testEnded(TestDescription test, long endTime, testMetrics)
|
void
|
testEnded(TestDescription test, testMetrics)
|
final
void
|
testFailed(TestDescription test, FailureDescription failure)
|
final
void
|
testFailed(TestDescription test, String trace)
|
final
void
|
testIgnored(TestDescription test)
|
final
void
|
testModuleEnded()
|
final
void
|
testModuleStarted(IInvocationContext moduleContext)
|
final
void
|
testRunEnded(long elapsedTimeMillis, runMetrics)
|
final
void
|
testRunFailed(FailureDescription failure)
|
final
void
|
testRunFailed(String errorMessage)
|
void
|
testRunStarted(String runName, int testCount, int attemptNumber)
|
final
void
|
testRunStarted(String runName, int testCount)
|
void
|
testRunStarted(String runName, int testCount, int attemptNumber, long startTime)
|
final
void
|
testStarted(TestDescription test, long startTime)
|
final
void
|
testStarted(TestDescription test)
|
パブリック コンストラクタ
ProtoResultReporter
public ProtoResultReporter ()
パブリック メソッド
invocationEnded
public final void invocationEnded (long elapsedTime)
invocationFailed
public void invocationFailed (FailureDescription failure)
パラメータ |
failure |
FailureDescription |
invocationFailed
public void invocationFailed (Throwable cause)
invocationStarted
public final void invocationStarted (IInvocationContext context)
パラメータ |
context |
IInvocationContext |
logAssociation
public final void logAssociation (String dataName,
LogFile logFile)
パラメータ |
dataName |
String |
logFile |
LogFile |
processFinalProto
public void processFinalProto (TestRecordProto.TestRecord finalRecord)
すべての結果を含む最終プロトコルの処理。
パラメータ |
finalRecord |
TestRecordProto.TestRecord : すべての呼び出し結果を含む最終的な proto。 |
processTestModuleEnd
public void processTestModuleEnd (TestRecordProto.TestRecord moduleRecord)
testModuleEnded()
が発生した後の、確定済みのモジュール レコード proto の処理。
パラメータ |
moduleRecord |
TestRecordProto.TestRecord : モジュールを表す最終的な proto。 |
processTestRunEnded
public void processTestRunEnded (TestRecordProto.TestRecord runRecord,
boolean moduleInProgress)
ITestLifeCycleReceiver.testRunEnded(long, HashMap)
が発生した後の、確定済み実行レコード proto の処理。
パラメータ |
runRecord |
TestRecordProto.TestRecord : 実行を表すファイナライズされたプロト。 |
moduleInProgress |
boolean : モジュールが進行中かどうか。 |
processTestRunStarted
public void processTestRunStarted (TestRecordProto.TestRecord runStartedRecord)
testRunStarted(String, int)
が発生した後の部分テスト実行レコード プロトコルの処理。
パラメータ |
runStartedRecord |
TestRecordProto.TestRecord : 実行を表す部分プロトコル。 |
supportGranularResults
public boolean supportGranularResults ()
testAssumptionFailure
public final void testAssumptionFailure (TestDescription test,
String trace)
パラメータ |
test |
TestDescription |
trace |
String |
testAssumptionFailure
public final void testAssumptionFailure (TestDescription test,
FailureDescription failure)
パラメータ |
test |
TestDescription |
failure |
FailureDescription |
testEnded
public final void testEnded (TestDescription test,
long endTime,
testMetrics)
パラメータ |
test |
TestDescription |
endTime |
long |
testMetrics |
|
testEnded
public void testEnded (TestDescription test,
testMetrics)
パラメータ |
test |
TestDescription |
testMetrics |
|
testFailed
public final void testFailed (TestDescription test,
FailureDescription failure)
パラメータ |
test |
TestDescription |
failure |
FailureDescription |
testFailed
public final void testFailed (TestDescription test,
String trace)
パラメータ |
test |
TestDescription |
trace |
String |
testIgnored
public final void testIgnored (TestDescription test)
パラメータ |
test |
TestDescription |
testModuleEnded
public final void testModuleEnded ()
testModuleStarted
public final void testModuleStarted (IInvocationContext moduleContext)
パラメータ |
moduleContext |
IInvocationContext |
testRunEnded
public final void testRunEnded (long elapsedTimeMillis,
runMetrics)
パラメータ |
elapsedTimeMillis |
long |
runMetrics |
|
testRunFailed
public final void testRunFailed (FailureDescription failure)
パラメータ |
failure |
FailureDescription |
testRunFailed
public final void testRunFailed (String errorMessage)
パラメータ |
errorMessage |
String |
testRunStarted
public void testRunStarted (String runName,
int testCount,
int attemptNumber)
パラメータ |
runName |
String |
testCount |
int |
attemptNumber |
int |
testRunStarted
public final 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 |
testStarted
public final void testStarted (TestDescription test,
long startTime)
パラメータ |
test |
TestDescription |
startTime |
long |
testStarted
public final void testStarted (TestDescription test)
パラメータ |
test |
TestDescription |
保護されたメソッド
createModuleChildReference
protected TestRecordProto.ChildReference createModuleChildReference (TestRecordProto.TestRecord record)
モジュールの子参照を作成します。
パラメータ |
record |
TestRecordProto.TestRecord |
戻り値 |
TestRecordProto.ChildReference |
|
このページのコンテンツやコードサンプルは、コンテンツ ライセンスに記載のライセンスに従います。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。"],[],[]]