インストール済みの機器テスト

public class InstalledInstrumentationsTest
extends Object implements IDeviceTest , IShardableTest , IMetricCollectorReceiver , IAutoRetriableTest , IConfigurationReceiver

java.lang.オブジェクト
com.android.tradefed.testtype.InstalledInstrumentationsTest


現在のデバイスで見つかったすべてのインストルメンテーションを実行します。

まとめ

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

InstalledInstrumentationsTest ()

パブリックメソッド

ITestDevice getDevice ()

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

void run ( TestInformation testInfo, ITestInvocationListener listener)

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

void setConfiguration ( IConfiguration configuration)

使用中のIConfigurationを挿入します。

void setDevice ( ITestDevice device)

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

void setMetricCollectors ( collectors) setMetricCollectors ( collectors)

テスト実行用に定義されたIMetricCollectorのリストを設定します。

boolean shouldRetry (int attemptJustExecuted, previousResults, skipList) shouldRetry (int attemptJustExecuted, previousResults, skipList) shouldRetry (int attemptJustExecuted, previousResults, skipList)

ERROR(IRetryDecision#shouldRetry(IRemoteTest, int, List)/com.android.tradefed.retry.IRetryDecision#shouldRetry(com.android.tradefed.testtype.IRemoteTest,int,List) IRetryDecision#shouldRetry(IRemoteTest, int, List))

split (int shardCountHint)

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

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

インストール済みの機器テスト

public InstalledInstrumentationsTest ()

パブリックメソッド

デバイスの取得

public ITestDevice getDevice ()

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

戻り値
ITestDevice ITestDevice

走る

public void run (TestInformation testInfo, 
                ITestInvocationListener listener)

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

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

listener ITestInvocationListener : テスト結果のITestInvocationListener

投げる
DeviceNotAvailableException

set構成

public void setConfiguration (IConfiguration configuration)

使用中のIConfigurationを挿入します。

パラメーター
configuration IConfiguration

セットデバイス

public void setDevice (ITestDevice device)

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

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

setMetricCollectors

public void setMetricCollectors ( collectors)

テスト実行用に定義されたIMetricCollectorのリストを設定します。

パラメーター
collectors

再試行する必要があります

public boolean shouldRetry (int attemptJustExecuted, 
                 previousResults, 
                 skipList)

ERROR(IRetryDecision#shouldRetry(IRemoteTest, int, List)/com.android.tradefed.retry.IRetryDecision#shouldRetry(com.android.tradefed.testtype.IRemoteTest,int,List) IRetryDecision#shouldRetry(IRemoteTest, int, List)) 。再試行するかどうかを決定します。また、再試行するIRemoteTestに必要な変更を加えます (フィルターの適用、次回の実行の準備など)。

パラメーター
attemptJustExecuted int : 実行したばかりの試行の数。

previousResults : 実行されたばかりのテストのTestRunResultのリスト。

skipList : 再試行すべきではない項目のセット。

戻り値
boolean再試行する必要がある場合は True、それ以外の場合は False。

投げる
DeviceNotAvailableException

スプリット

public  split (int shardCountHint)

実行しようとしている shardCount も提供する、 split()の代替バージョン。これは、独断で決定できない場合があるテスト ランナーにとって便利です。

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

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