存根測試
public class StubTest
extends Object
implements IShardableTest , IConfigurationReceiver , IAbiReceiver
java.lang.Object | |
↳ | com.android.tradefed.testtype.StubTest |
無操作空測試實作。
概括
領域 | |
---|---|
public static final String | DNAE_MESSAGE
|
公共構造函數 | |
---|---|
StubTest () |
公共方法 | |
---|---|
IAbi | getAbi () |
IConfiguration | getConfiguration () |
boolean | getRunTest () |
void | run ( TestInformation testInfo, ITestInvocationListener listener) 運行測試,並將結果報告給偵聽器。 |
void | setAbi ( IAbi abi) |
void | setConfiguration ( IConfiguration configuration) 注入正在使用的 |
split () 將測試分成單獨可運行的區塊。 | |
String | toString () |
領域
DNAE_MESSAGE
public static final String DNAE_MESSAGE
公共構造函數
存根測試
public StubTest ()
公共方法
取得運行測試
public boolean getRunTest ()
退貨 | |
---|---|
boolean |
跑步
public void run (TestInformation testInfo, ITestInvocationListener listener)
運行測試,並將結果報告給偵聽器。
參數 | |
---|---|
testInfo | TestInformation : TestInformation 物件包含執行測試的有用資訊。 |
listener | ITestInvocationListener :測試結果的ITestInvocationListener |
投擲 | |
---|---|
DeviceNotAvailableException |
設定配置
public void setConfiguration (IConfiguration configuration)
注入正在使用的IConfiguration
。
參數 | |
---|---|
configuration | IConfiguration |
分裂
publicsplit ()
將測試分成單獨可運行的區塊。
這必須是確定性的,並且對於相同的輸入始終返回相同的IRemoteTest
清單。
這將在測試執行之前調用,因此註入的依賴項(例如IDeviceTest
的ITestDevice
)可能為 null。
退貨 | |
---|---|
要單獨執行的子測試集合,如果測試目前不可分片,則為null |
到字串
public String toString ()
退貨 | |
---|---|
String |