假測試
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) 注入被測設備。 |
公共構造函數
假測試
public FakeTest ()
公共方法
跑步
public void run (TestInformation testInfo, ITestInvocationListener listener)
運行測試,並將結果報告給偵聽器。
參數 | |
---|---|
testInfo | TestInformation :包含運行測試的有用信息的TestInformation 對象。 |
listener | ITestInvocationListener : 測試結果的ITestInvocationListener |
投擲 | |
---|---|
DeviceNotAvailableException |