ExecutableTargetTest

public class ExecutableTargetTest
extends ExecutableBaseTest implements IDeviceTest

java.lang.Object
   ↳ com.android.tradefed.testtype.binary.ExecutableBaseTest
     ↳ com.android.tradefed.testtype.binary.ExecutableTargetTest


타겟에서 실행되는 실행 파일의 테스트 실행기입니다. 러너는 기기에서 바이너리가 실행되므로 IDeviceTest를 구현합니다.

요약

상수

String DEVICE_LOST_ERROR

String ROOT_LOST_ERROR

공개 생성자

ExecutableTargetTest()

공개 메서드

String findBinary(String binary)

바이너리를 실행할 수 있도록 검색합니다.

boolean getCollectTestsOnly()
ITestDevice getDevice()

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

void runBinary(String binaryPath, ITestInvocationListener listener, TestDescription description)

지정된 경로에서 바이너리를 실제로 실행합니다.

void setDevice(ITestDevice device)

테스트 대상 기기를 삽입합니다.

FailureDescription shouldAbortRun(TestDescription description)

testRun이 일찍 종료되어야 하는지 확인합니다.

보호된 메서드

void checkCommandResult(CommandResult result, ITestInvocationListener listener, TestDescription description)

테스트 명령어의 결과를 확인합니다.

boolean doesRunBinaryGenerateTestResults()
boolean doesRunBinaryGenerateTestRuns()
boolean getSkipBinaryCheck()

상수

DEVICE_LOST_ERROR

public static final String DEVICE_LOST_ERROR

상수 값: '%s 전에 기기를 분실했습니다. 실행을 중단합니다.'

ROOT_LOST_ERROR

public static final String ROOT_LOST_ERROR

상수 값: '%s 전에 루트 액세스 권한이 손실되었습니다. 실행을 중단합니다.'

공개 생성자

ExecutableTargetTest

public ExecutableTargetTest ()

공개 메서드

findBinary

public String findBinary (String binary)

바이너리를 실행할 수 있도록 검색합니다.

매개변수
binary String: 바이너리의 경로 또는 바이너리 이름입니다.

반환 값
String 바이너리 경로입니다. 찾을 수 없는 경우 null입니다.

생성 값
DeviceNotAvailableException

getCollectTestsOnly

public boolean getCollectTestsOnly ()

반환 값
boolean

getDevice

public ITestDevice getDevice ()

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

반환 값
ITestDevice ITestDevice

runBinary

public void runBinary (String binaryPath, 
                ITestInvocationListener listener, 
                TestDescription description)

지정된 경로에서 바이너리를 실제로 실행합니다.

매개변수
binaryPath String: 바이너리의 경로입니다.

listener ITestInvocationListener: 결과를 보고할 리스너입니다.

description TestDescription: 진행 중인 테스트입니다.

생성 값
DeviceNotAvailableException

setDevice

public void setDevice (ITestDevice device)

테스트 대상 기기를 삽입합니다.

매개변수
device ITestDevice: 사용할 ITestDevice

shouldAbortRun

public FailureDescription shouldAbortRun (TestDescription description)

testRun이 일찍 종료되어야 하는지 확인합니다.

매개변수
description TestDescription: 진행 중인 테스트입니다.

반환 값
FailureDescription 실행 루프를 종료해야 하는 경우 FailureDescription입니다.

보호된 메서드

checkCommandResult

protected void checkCommandResult (CommandResult result, 
                ITestInvocationListener listener, 
                TestDescription description)

테스트 명령어의 결과를 확인합니다.

매개변수
result CommandResult: CommandResult 명령어의 테스트 결과

listener ITestInvocationListener: ITestInvocationListener

description TestDescription: 진행 중인 테스트입니다.

doesRunBinaryGenerateTestResults

protected boolean doesRunBinaryGenerateTestResults ()

반환 값
boolean

doesRunBinaryGenerateTestRuns

protected boolean doesRunBinaryGenerateTestRuns ()

반환 값
boolean

getSkipBinaryCheck

protected boolean getSkipBinaryCheck ()

반환 값
boolean