ExecutableTargetTest

public class ExecutableTargetTest
extends ExecutableBaseTest implements IDeviceTest

java.lang.객체
com.android.tradefed.testtype.binary.ExecutableBaseTest
com.android.tradefed.testtype.binary.ExecutableTargetTest


대상에서 실행되는 실행 파일에 대한 테스트 러너입니다. 실행기는 장치에서 실행되는 바이너리 이후 IDeviceTest 구현합니다.

요약

공개 생성자

ExecutableTargetTest ()

공개 방법

String findBinary (String binary)

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

ITestDevice getDevice ()

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

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

실제로 주어진 경로에서 바이너리를 실행하십시오.

void setDevice ( ITestDevice device)

테스트 중인 장치를 주입합니다.

보호된 메서드

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

테스트 명령의 결과를 확인하십시오.

공개 생성자

ExecutableTargetTest

public ExecutableTargetTest ()

공개 방법

바이너리 찾기

public String findBinary (String binary)

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

매개변수
binary String : 바이너리의 경로 또는 단순히 바이너리 이름.

보고
String 바이너리에 대한 경로 또는 찾을 수 없는 경우 null입니다.

던지기
DeviceNotAvailableException

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

보호된 메서드

checkCommandResult

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

테스트 명령의 결과를 확인하십시오.

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

listener ITestInvocationListener : ITestInvocationListener

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