MoblyBinaryHostTest

public class MoblyBinaryHostTest
extends Object implements IBuildReceiver, IDeviceTest, IRemoteTest, IShardableTest, ITestFilterReceiver

java.lang.Object
   ↳ com.android.tradefed.testtype.mobly.MoblyBinaryHostTest


Android ビルドシステム(Soong)から mobly python バイナリ ファイルを実行するためのホストテスト

概要

パブリック コンストラクタ

MoblyBinaryHostTest()

パブリック メソッド

void addAllExcludeFilters( filters)

除外するテストのフィルタの ERROR(/Set) を追加します。

void addAllIncludeFilters( filters)

含めるテストのフィルタの ERROR(/Set) を追加します。

void addExcludeFilter(String filter)

除外するテストのフィルタを追加します。

void addIncludeFilter(String filter)

含めるテストのフィルタを追加します。

void clearExcludeFilters()

現在トラッキングされている除外フィルタをすべて削除します。

void clearIncludeFilters()

現在トラッキングされているすべてのインクルード フィルタを削除します。

ITestDevice getDevice()

テスト対象デバイスを取得します。

getExcludeFilters()

除外フィルタの現在の ERROR(/Set) を返します。

getIncludeFilters()

インクルード フィルタの現在の ERROR(/Set) を返します。

final void run(TestInformation testInfo, ITestInvocationListener listener)

テストを実行し、結果をリスナーに報告します。

void setBuild(IBuildInfo buildInfo)
void setDevice(ITestDevice device)

テスト対象デバイスを挿入します。

split(int shardCountHint)

実行しようとした shardCount も提供する split() の代替バージョン。

保護されたメソッド

String[] buildCommandLineArray(String filePath, String configPath, tests)
String[] buildCommandLineArray(String filePath, String configPath)
filterTests(String[] testListLines, String runName, ITestInvocationListener listener)
MoblyArtifactReporter getArtifactReporter()
String getLogDirAbsolutePath()
File getLogDirFile()
boolean processYamlTestResults(InputStream inputStream, MoblyYamlResultParser parser, ITestInvocationListener listener, String runName)

Mobly テスト結果を解析し、結果をレポートします。

void updateConfigFile(InputStream configInputStream, Writer writer)

パブリック コンストラクタ

MoblyBinaryHostTest

public MoblyBinaryHostTest ()

パブリック メソッド

addAllExcludeFilters

public void addAllExcludeFilters ( filters)

除外するテストのフィルタの ERROR(/Set) を追加します。

パラメータ
filters

addAllIncludeFilters

public void addAllIncludeFilters ( filters)

含めるテストのフィルタの ERROR(/Set) を追加します。

パラメータ
filters

addExcludeFilter

public void addExcludeFilter (String filter)

除外するテストのフィルタを追加します。

パラメータ
filter String

addIncludeFilter

public void addIncludeFilter (String filter)

含めるテストのフィルタを追加します。

パラメータ
filter String

clearExcludeFilters

public void clearExcludeFilters ()

現在トラッキングされている除外フィルタをすべて削除します。

clearIncludeFilters

public void clearIncludeFilters ()

現在トラッキングされているすべての包含フィルタを削除します。

getDevice

public ITestDevice getDevice ()

テスト対象デバイスを取得します。

戻り値
ITestDevice ITestDevice

getExcludeFilters

public  getExcludeFilters ()

除外フィルタの現在の ERROR(/Set) を返します。

戻り値

getIncludeFilters

public  getIncludeFilters ()

インクルード フィルタの現在の ERROR(/Set) を返します。

戻り値

ホームラン

public final void run (TestInformation testInfo, 
                ITestInvocationListener listener)

テストを実行し、結果をリスナーに報告します。

パラメータ
testInfo TestInformation: テストの実行に役立つ情報を含む TestInformation オブジェクト。

listener ITestInvocationListener: テスト結果の ITestInvocationListener

setBuild

public void setBuild (IBuildInfo buildInfo)

パラメータ
buildInfo IBuildInfo

setDevice

public void setDevice (ITestDevice device)

テスト対象デバイスを挿入します。

パラメータ
device ITestDevice: 使用する ITestDevice

分割

public  split (int shardCountHint)

実行しようとした shardCount も提供する split() の代替バージョン。これは、任意に決定できないテストランナーに役立ちます。

パラメータ
shardCountHint int: 試行されたシャード数。

戻り値
個別に実行されるサブテストのコレクション。テストが現在シャード可能でない場合は null

保護されたメソッド

buildCommandLineArray

protected String[] buildCommandLineArray (String filePath, 
                String configPath, 
                 tests)

パラメータ
filePath String

configPath String

tests

戻り値
String[]

buildCommandLineArray

protected String[] buildCommandLineArray (String filePath, 
                String configPath)

パラメータ
filePath String

configPath String

戻り値
String[]

filterTests

protected  filterTests (String[] testListLines, 
                String runName, 
                ITestInvocationListener listener)

パラメータ
testListLines String

runName String

listener ITestInvocationListener

戻り値

getArtifactReporter

protected MoblyArtifactReporter getArtifactReporter ()

戻り値
MoblyArtifactReporter

getLogDirAbsolutePath

protected String getLogDirAbsolutePath ()

戻り値
String

getLogDirFile

protected File getLogDirFile ()

戻り値
File

processYamlTestResults

protected boolean processYamlTestResults (InputStream inputStream, 
                MoblyYamlResultParser parser, 
                ITestInvocationListener listener, 
                String runName)

Mobly テスト結果を解析し、結果レポートを作成します。

パラメータ
inputStream InputStream: Mobly テスト結果ファイルを読み取る InputStream オブジェクト。

parser MoblyYamlResultParser: Mobly テスト結果を処理する MoblyYamlResultParser オブジェクト。

listener ITestInvocationListener: さまざまなレポートを行う ITestInvocationListener インスタンス。

runName String: str、Mobly テストバイナリ実行の名前。

戻り値
boolean

updateConfigFile

protected void updateConfigFile (InputStream configInputStream, 
                Writer writer)

パラメータ
configInputStream InputStream

writer Writer

例外
HarnessRuntimeException