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(List<IMetricCollector> collectors)

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

boolean shouldRetry(int attemptJustExecuted, List<TestRunResult> previousResults, Set<String> skipList)

IRetryDecision.shouldRetry(IRemoteTest,int,List)에서 위임됨

Collection<IRemoteTest> split(int shardCountHint)

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

공개 생성자

InstalledInstrumentationsTest

public InstalledInstrumentationsTest ()

공개 메서드

getDevice

public ITestDevice getDevice ()

테스트 대상 기기를 가져옵니다.

반환
ITestDevice ITestDevice

run

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 (List<IMetricCollector> collectors)

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

매개변수
collectors List

shouldRetry

public boolean shouldRetry (int attemptJustExecuted, 
                List<TestRunResult> previousResults, 
                Set<String> skipList)

IRetryDecision.shouldRetry(IRemoteTest,int,List)에서 위임됨 재시도를 시도해야 하는지 여부를 결정합니다. 또한 다시 시도할 IRemoteTest에 필요한 변경사항을 적용합니다 (필터 적용, 다음 실행 준비 등).

매개변수
attemptJustExecuted int: 방금 실행한 시도 횟수입니다.

previousResults List: 방금 실행된 테스트의 TestRunResult 목록입니다.

skipList Set: 재시도하면 안 되는 항목의 집합입니다.

반환
boolean 재시도해야 하면 True, 그렇지 않으면 False입니다.

생성 값
DeviceNotAvailableException

분할

public Collection<IRemoteTest> split (int shardCountHint)

실행을 시도한 shardCount도 제공하는 split()의 대체 버전입니다. 이는 임의로 결정할 수 없는 일부 테스트 러너에 유용합니다.

매개변수
shardCountHint int: 시도된 샤드 수입니다.

반환
Collection<IRemoteTest> 별도로 실행할 하위 테스트 모음 또는 테스트를 현재 샤딩할 수 없는 경우 null