설치된 계측 테스트

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

java.lang.Object
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 ()

공개 메소드

getDevice

public ITestDevice getDevice ()

테스트 중인 장치를 가져옵니다.

보고
ITestDevice ITestDevice

달리다

public void run (TestInformation testInfo, 
                ITestInvocationListener listener)

테스트를 실행하고 결과를 리스너에게 보고합니다.

매개변수
testInfo TestInformation : 테스트를 실행하는 데 유용한 정보가 포함된 TestInformation 개체입니다.

listener ITestInvocationListener : 테스트 결과의 ITestInvocationListener

던지기
DeviceNotAvailableException

setConfiguration

public void setConfiguration (IConfiguration configuration)

사용 중인 IConfiguration 삽입합니다.

매개변수
configuration IConfiguration

setDevice

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