ExecutableTargetTest
public class ExecutableTargetTest
extends ExecutableBaseTest
implements IDeviceTest
java.lang.Object | ||
↳ | 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 ()
공개 메소드
findBinary
public String findBinary (String binary)
실행할 수 있는 바이너리를 검색하세요.
매개변수 | |
---|---|
binary | String : 바이너리의 경로 또는 단순히 바이너리 이름입니다. |
보고 | |
---|---|
String | 바이너리의 경로이거나, 찾을 수 없으면 null입니다. |
던지기 | |
---|---|
DeviceNotAvailableException |
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 : 테스트가 진행 중입니다. |