DeviceTestSuite
public class DeviceTestSuite
extends TestSuite
implements IDeviceTest , IRemoteTest
java.lang.객체 | ||
↳ | junit.framework.TestSuite | |
↳ | com.android.tradefed.testtype.DeviceTestSuite |
IRemoteTest
및 IDeviceTest
서비스를 제공하는 도우미 JUnit 테스트 도구 모음입니다.
요약
공개 생성자 | |
---|---|
DeviceTestSuite (Class<?> testClass) | |
DeviceTestSuite () |
공개 방법 | |
---|---|
void | addTestSuite (Class<T> testClass) 주어진 클래스의 테스트를 제품군에 추가합니다. |
ITestDevice | getDevice () 테스트 중인 장치를 가져옵니다. |
void | run ( TestInformation testInfo, ITestInvocationListener listener) 테스트를 실행하고 결과를 수신기에 보고합니다. |
void | runTest (Test test, TestResult result) 포함된 테스트에 장치를 전달하도록 상위 메서드를 재정의합니다. |
void | setDevice ( ITestDevice device) 테스트 중인 장치를 주입합니다. |
공개 생성자
DeviceTestSuite
public DeviceTestSuite (Class<?> testClass)
매개변수 | |
---|---|
testClass | Class |
DeviceTestSuite
public DeviceTestSuite ()
공개 방법
addTestSuite
public void addTestSuite (Class<T> testClass)
주어진 클래스의 테스트를 제품군에 추가합니다.
매개변수 | |
---|---|
testClass | Class |
달리다
public void run (TestInformation testInfo, ITestInvocationListener listener)
테스트를 실행하고 결과를 수신기에 보고합니다.
매개변수 | |
---|---|
testInfo | TestInformation : 테스트를 실행하는 데 유용한 정보가 포함된 TestInformation 개체입니다. |
listener | ITestInvocationListener : 테스트 결과의 ITestInvocationListener |
던지기 | |
---|---|
DeviceNotAvailableException |
runTest
public void runTest (Test test, TestResult result)
포함된 테스트에 장치를 전달하도록 상위 메서드를 재정의합니다.
매개변수 | |
---|---|
test | Test |
result | TestResult |
setDevice
public void setDevice (ITestDevice device)
테스트 중인 장치를 주입합니다.
매개변수 | |
---|---|
device | ITestDevice : 사용할 ITestDevice |