HostGTest
public class HostGTest
extends GTestBase
implements IBuildReceiver
java.lang.객체 | ||
↳ | com.android.tradefed.testtype.GTestBase | |
↳ | com.android.tradefed.testtype.HostGTest |
기본 테스트 패키지를 실행하는 테스트입니다.
요약
공개 생성자 | |
---|---|
HostGTest () |
공개 방법 | |
---|---|
CommandResult | executeHostCommand (String cmd, long timeoutMs) |
CommandResult | executeHostCommand (String cmd) |
String | loadFilter (String binaryOnHost) 필터 가져오기 방법을 정의합니다. |
void | run ( TestInformation testInfo, ITestInvocationListener listener) |
void | setBuild ( IBuildInfo buildInfo) |
공개 생성자
HostGTest
public HostGTest ()
공개 방법
실행 호스트 명령
public CommandResult executeHostCommand (String cmd, long timeoutMs)
매개변수 | |
---|---|
cmd | String : 호스트에서 실행하고자 하는 명령어 |
timeoutMs | long : 명령에 대한 시간 제한(밀리초) |
보고 | |
---|---|
CommandResult | 명령의 CommandResult |
실행 호스트 명령
public CommandResult executeHostCommand (String cmd)
매개변수 | |
---|---|
cmd | String : 호스트에서 실행하고자 하는 명령어 |
보고 | |
---|---|
CommandResult | 명령의 CommandResult |
로드 필터
public String loadFilter (String binaryOnHost)
필터 가져오기 방법을 정의합니다.
하위 클래스는 자체 필터를 가져오는 방법을 구현해야 합니다.
매개변수 | |
---|---|
binaryOnHost | String : 필터 파일의 전체 경로. |
보고 | |
---|---|
String | 필터 문자열. |
달리다
public void run (TestInformation testInfo, ITestInvocationListener listener)
매개변수 | |
---|---|
testInfo | TestInformation |
listener | ITestInvocationListener |
던지기 | |
---|---|
DeviceNotAvailableException |