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(
除外するテストのフィルタの |
void
|
addAllIncludeFilters(
含めるテストのフィルタの |
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)
|
保護されたメソッド | |
|---|---|
String[]
|
buildCommandLineArray(String filePath, String configPath,
|
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 |
clearExcludeFilters
public void clearExcludeFilters ()
現在トラッキングされている除外フィルタをすべて削除します。
clearIncludeFilters
public void clearIncludeFilters ()
現在トラッキングされている含めるフィルタをすべて削除します。
ホームラン
public final void run (TestInformation testInfo, ITestInvocationListener listener)
テストを実行し、結果をリスナーに報告します。
| パラメータ | |
|---|---|
testInfo |
TestInformation: テストの実行に役立つ情報が含まれる TestInformation オブジェクト。 |
listener |
ITestInvocationListener: テスト結果の ITestInvocationListener |
setDevice
public void setDevice (ITestDevice device)
テスト対象デバイスを挿入します。
| パラメータ | |
|---|---|
device |
ITestDevice: 使用する ITestDevice |
分割
publicsplit (int shardCountHint)
split() の代替バージョン。実行が試行される shardCount も提供します。これは、場合によっては任意に決定できない一部のテストランナーに便利です。
| パラメータ | |
|---|---|
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
protectedfilterTests (String[] testListLines, String runName, ITestInvocationListener listener)
| パラメータ | |
|---|---|
testListLines |
String |
runName |
String |
listener |
ITestInvocationListener |
| 戻り値 | |
|---|---|
|
|
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 |
|
reportLogs
protected void reportLogs (File logDir,
ITestInvocationListener listener)| パラメータ | |
|---|---|
logDir |
File |
listener |
ITestInvocationListener |
updateConfigFile
protected void updateConfigFile (InputStream configInputStream,
Writer writer)| パラメータ | |
|---|---|
configInputStream |
InputStream |
writer |
Writer |
| 例外 | |
|---|---|
HarnessRuntimeException |
|