FakeTest
public
class
FakeTest
extends Object
implements
IDeviceTest,
IRemoteTest
| java.lang.Object | |
| ↳ | com.android.tradefed.testtype.FakeTest |
偽造的測試,目的是讓您輕鬆產生可重複的測試結果。
摘要
公用建構函式 | |
|---|---|
FakeTest()
|
|
公用方法 | |
|---|---|
ITestDevice
|
getDevice()
取得測試中的裝置。 |
void
|
run(TestInformation testInfo, ITestInvocationListener listener)
執行測試,並將結果回報給監聽器。 |
void
|
setDevice(ITestDevice device)
插入測試中的裝置。 |
公用建構函式
FakeTest
public FakeTest ()
公用方法
得分
public void run (TestInformation testInfo, ITestInvocationListener listener)
執行測試,並將結果回報給監聽器。
| 參數 | |
|---|---|
testInfo |
TestInformation:包含執行測試所需實用資訊的 TestInformation 物件。 |
listener |
ITestInvocationListener:測試結果的 ITestInvocationListener |
| 擲回 | |
|---|---|
DeviceNotAvailableException |
|
setDevice
public void setDevice (ITestDevice device)
插入測試中的裝置。
| 參數 | |
|---|---|
device |
ITestDevice:要使用的 ITestDevice |