InstalledInstrumentationsTest

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

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)

테스트 실행에 정의된 IMetricCollector 목록을 설정합니다.

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))에서 위임했습니다.

split(int shardCountHint)

실행하려는 shardCount도 제공하는 split()의 대체 버전입니다.

공개 생성자

InstalledInstrumentationsTest

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

shouldRetry

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