MoblyBinaryHostTest
public class MoblyBinaryHostTest
extends Object
implements IRemoteTest , IDeviceTest , IBuildReceiver , ITestFilterReceiver , IShardableTest
java.lang.オブジェクト | |
↳ | com.android.tradefed.testtype.mobly.MoblyBinaryHostTest |
Android ビルド システムから Mobly Python バイナリ ファイルを実行することを目的としたホスト テスト (Soong)
まとめ
パブリックコンストラクター | |
---|---|
MoblyBinaryHostTest () |
パブリックメソッド | |
---|---|
void | addAllExcludeFilters ( filters) addAllExcludeFilters ( filters) テストを除外するフィルターの |
void | addAllIncludeFilters ( filters) addAllIncludeFilters ( filters) テストを含めるフィルターの |
void | addExcludeFilter (String filter) 除外するテストのフィルターを追加します。 |
void | addIncludeFilter (String filter) どのテストを含めるかのフィルターを追加します。 |
void | clearExcludeFilters () 現在追跡されているすべての除外フィルターを削除します。 |
void | clearIncludeFilters () 現在追跡されているすべての組み込みフィルターを削除します。 |
ITestDevice | getDevice () テスト対象のデバイスを取得します。 |
getExcludeFilters () 除外フィルターの現在の | |
getIncludeFilters () インクルードフィルターの現在の | |
final void | run ( TestInformation testInfo, ITestInvocationListener listener) テストを実行し、結果をリスナーに報告します。 |
void | setBuild ( IBuildInfo buildInfo) |
void | setDevice ( ITestDevice device) テスト対象のデバイスを注入します。 |
split (int shardCountHint) 実行しようとしている shardCount も提供する、 |
保護されたメソッド | |
---|---|
String[] | buildCommandLineArray (String filePath, String configPath, tests) buildCommandLineArray (String filePath, String configPath, tests) |
String[] | buildCommandLineArray (String filePath, String configPath) |
filterTests (String[] testListLines, String runName, ITestInvocationListener listener) | |
String | getLogDirAbsolutePath () |
File | getLogDirFile () |
boolean | processYamlTestResults (InputStream inputStream, MoblyYamlResultParser parser, ITestInvocationListener listener, String runName) Mobly テスト結果を解析し、結果レポートを実行します。 |
void | reportLogs (File logDir, ITestInvocationListener listener) |
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 |
クリア除外フィルタ
public void clearExcludeFilters ()
現在追跡されているすべての除外フィルターを削除します。
ClearIncludeFilters
public void clearIncludeFilters ()
現在追跡されているすべての組み込みフィルターを削除します。
走る
public final void run (TestInformation testInfo, ITestInvocationListener listener)
テストを実行し、結果をリスナーに報告します。
パラメーター | |
---|---|
testInfo | TestInformation : テストを実行するために役立つ情報を含むTestInformation オブジェクト。 |
listener | ITestInvocationListener : テスト結果のITestInvocationListener |
セットデバイス
public void setDevice (ITestDevice device)
テスト対象のデバイスを注入します。
パラメーター | |
---|---|
device | ITestDevice : 使用するITestDevice |
スプリット
publicsplit (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[] |
フィルターテスト
protectedfilterTests (String[] testListLines, String runName, ITestInvocationListener listener)
パラメーター | |
---|---|
testListLines | String |
runName | String |
listener | ITestInvocationListener |
戻り値 | |
---|---|
getLogDir絶対パス
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 |
レポートログ
protected void reportLogs (File logDir, ITestInvocationListener listener)
パラメーター | |
---|---|
logDir | File |
listener | ITestInvocationListener |
updateConfigFile
protected void updateConfigFile (InputStream configInputStream, Writer writer)
パラメーター | |
---|---|
configInputStream | InputStream |
writer | Writer |
投げる | |
---|---|
HarnessRuntimeException |
MoblyBinaryHostTest
public class MoblyBinaryHostTest
extends Object
implements IRemoteTest , IDeviceTest , IBuildReceiver , ITestFilterReceiver , IShardableTest
java.lang.オブジェクト | |
↳ | com.android.tradefed.testtype.mobly.MoblyBinaryHostTest |
Android ビルド システムから Mobly Python バイナリ ファイルを実行することを目的としたホスト テスト (Soong)
まとめ
パブリックコンストラクター | |
---|---|
MoblyBinaryHostTest () |
パブリックメソッド | |
---|---|
void | addAllExcludeFilters ( filters) addAllExcludeFilters ( filters) テストを除外するフィルターの |
void | addAllIncludeFilters ( filters) addAllIncludeFilters ( filters) テストを含めるフィルターの |
void | addExcludeFilter (String filter) 除外するテストのフィルターを追加します。 |
void | addIncludeFilter (String filter) どのテストを含めるかのフィルターを追加します。 |
void | clearExcludeFilters () 現在追跡されているすべての除外フィルターを削除します。 |
void | clearIncludeFilters () 現在追跡されているすべての組み込みフィルターを削除します。 |
ITestDevice | getDevice () テスト対象のデバイスを取得します。 |
getExcludeFilters () 除外フィルターの現在の | |
getIncludeFilters () インクルードフィルターの現在の | |
final void | run ( TestInformation testInfo, ITestInvocationListener listener) テストを実行し、結果をリスナーに報告します。 |
void | setBuild ( IBuildInfo buildInfo) |
void | setDevice ( ITestDevice device) テスト対象のデバイスを注入します。 |
split (int shardCountHint) 実行しようとしている shardCount も提供する、 |
保護されたメソッド | |
---|---|
String[] | buildCommandLineArray (String filePath, String configPath, tests) buildCommandLineArray (String filePath, String configPath, tests) |
String[] | buildCommandLineArray (String filePath, String configPath) |
filterTests (String[] testListLines, String runName, ITestInvocationListener listener) | |
String | getLogDirAbsolutePath () |
File | getLogDirFile () |
boolean | processYamlTestResults (InputStream inputStream, MoblyYamlResultParser parser, ITestInvocationListener listener, String runName) Mobly テスト結果を解析し、結果レポートを実行します。 |
void | reportLogs (File logDir, ITestInvocationListener listener) |
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 |
クリア除外フィルタ
public void clearExcludeFilters ()
現在追跡されているすべての除外フィルターを削除します。
ClearIncludeFilters
public void clearIncludeFilters ()
現在追跡されているすべての組み込みフィルターを削除します。
走る
public final void run (TestInformation testInfo, ITestInvocationListener listener)
テストを実行し、結果をリスナーに報告します。
パラメーター | |
---|---|
testInfo | TestInformation : テストを実行するために役立つ情報を含むTestInformation オブジェクト。 |
listener | ITestInvocationListener : テスト結果のITestInvocationListener |
セットデバイス
public void setDevice (ITestDevice device)
テスト対象のデバイスを注入します。
パラメーター | |
---|---|
device | ITestDevice : 使用するITestDevice |
スプリット
publicsplit (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[] |
フィルターテスト
protectedfilterTests (String[] testListLines, String runName, ITestInvocationListener listener)
パラメーター | |
---|---|
testListLines | String |
runName | String |
listener | ITestInvocationListener |
戻り値 | |
---|---|
getLogDir絶対パス
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 |
レポートログ
protected void reportLogs (File logDir, ITestInvocationListener listener)
パラメーター | |
---|---|
logDir | File |
listener | ITestInvocationListener |
updateConfigFile
protected void updateConfigFile (InputStream configInputStream, Writer writer)
パラメーター | |
---|---|
configInputStream | InputStream |
writer | Writer |
投げる | |
---|---|
HarnessRuntimeException |
MoblyBinaryHostTest
public class MoblyBinaryHostTest
extends Object
implements IRemoteTest , IDeviceTest , IBuildReceiver , ITestFilterReceiver , IShardableTest
java.lang.オブジェクト | |
↳ | com.android.tradefed.testtype.mobly.MoblyBinaryHostTest |
Android ビルド システムから Mobly Python バイナリ ファイルを実行することを目的としたホスト テスト (Soong)
まとめ
パブリックコンストラクター | |
---|---|
MoblyBinaryHostTest () |
パブリックメソッド | |
---|---|
void | addAllExcludeFilters ( filters) addAllExcludeFilters ( filters) テストを除外するフィルターの |
void | addAllIncludeFilters ( filters) addAllIncludeFilters ( filters) テストを含めるフィルターの |
void | addExcludeFilter (String filter) 除外するテストのフィルターを追加します。 |
void | addIncludeFilter (String filter) どのテストを含めるかのフィルターを追加します。 |
void | clearExcludeFilters () 現在追跡されているすべての除外フィルターを削除します。 |
void | clearIncludeFilters () 現在追跡されているすべての組み込みフィルターを削除します。 |
ITestDevice | getDevice () テスト対象のデバイスを取得します。 |
getExcludeFilters () 除外フィルターの現在の | |
getIncludeFilters () インクルードフィルターの現在の | |
final void | run ( TestInformation testInfo, ITestInvocationListener listener) テストを実行し、結果をリスナーに報告します。 |
void | setBuild ( IBuildInfo buildInfo) |
void | setDevice ( ITestDevice device) テスト対象のデバイスを注入します。 |
split (int shardCountHint) 実行しようとしている shardCount も提供する、 |
保護されたメソッド | |
---|---|
String[] | buildCommandLineArray (String filePath, String configPath, tests) buildCommandLineArray (String filePath, String configPath, tests) |
String[] | buildCommandLineArray (String filePath, String configPath) |
filterTests (String[] testListLines, String runName, ITestInvocationListener listener) | |
String | getLogDirAbsolutePath () |
File | getLogDirFile () |
boolean | processYamlTestResults (InputStream inputStream, MoblyYamlResultParser parser, ITestInvocationListener listener, String runName) Mobly テスト結果を解析し、結果レポートを実行します。 |
void | reportLogs (File logDir, ITestInvocationListener listener) |
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 |
クリア除外フィルタ
public void clearExcludeFilters ()
現在追跡されているすべての除外フィルターを削除します。
ClearIncludeFilters
public void clearIncludeFilters ()
現在追跡されているすべての組み込みフィルターを削除します。
走る
public final void run (TestInformation testInfo, ITestInvocationListener listener)
テストを実行し、結果をリスナーに報告します。
パラメーター | |
---|---|
testInfo | TestInformation : テストを実行するために役立つ情報を含むTestInformation オブジェクト。 |
listener | ITestInvocationListener : テスト結果のITestInvocationListener |
セットデバイス
public void setDevice (ITestDevice device)
テスト対象のデバイスを注入します。
パラメーター | |
---|---|
device | ITestDevice : 使用するITestDevice |
スプリット
publicsplit (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[] |
フィルターテスト
protectedfilterTests (String[] testListLines, String runName, ITestInvocationListener listener)
パラメーター | |
---|---|
testListLines | String |
runName | String |
listener | ITestInvocationListener |
戻り値 | |
---|---|
getLogDir絶対パス
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 |
レポートログ
protected void reportLogs (File logDir, ITestInvocationListener listener)
パラメーター | |
---|---|
logDir | File |
listener | ITestInvocationListener |
updateConfigFile
protected void updateConfigFile (InputStream configInputStream, Writer writer)
パラメーター | |
---|---|
configInputStream | InputStream |
writer | Writer |
投げる | |
---|---|
HarnessRuntimeException |