ExecutableTargetTest
public
class
ExecutableTargetTest
extends ExecutableBaseTest
implements
IDeviceTest
| java.lang.Object | ||
| ↳ | com.android.tradefed.testtype.binary.ExecutableBaseTest | |
| ↳ | com.android.tradefed.testtype.binary.ExecutableTargetTest | |
타겟에서 실행되는 실행 파일의 테스트 실행기입니다. 바이너리가 기기에서 실행되므로 런너는 IDeviceTest를 구현합니다.
요약
필드 | |
|---|---|
public
static
final
String |
DEVICE_LOST_ERROR
|
public
static
final
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
ROOT_LOST_ERROR
public static final String ROOT_LOST_ERROR
공개 생성자
ExecutableTargetTest
public ExecutableTargetTest ()
공개 메서드
findBinary
public String findBinary (String binary)
바이너리를 검색하여 실행합니다.
| 매개변수 | |
|---|---|
binary |
String: 바이너리의 경로 또는 바이너리 이름입니다. |
| 반환 값 | |
|---|---|
String |
바이너리의 경로 또는 찾을 수 없는 경우 null입니다. |
| 생성 값 | |
|---|---|
DeviceNotAvailableException |
|
getCollectTestsOnly
public boolean getCollectTestsOnly ()
| 반환 값 | |
|---|---|
boolean |
|
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 |
|