StubTest
public
class
StubTest
extends Object
implements
IAbiReceiver,
IConfigurationReceiver,
IShardableTest
| 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
公用建構函式
StubTest
public StubTest ()
公用方法
getRunTest
public boolean getRunTest ()
| 傳回 | |
|---|---|
boolean |
|
得分
public void run (TestInformation testInfo, ITestInvocationListener listener)
執行測試,並將結果回報給監聽器。
| 參數 | |
|---|---|
testInfo |
TestInformation:包含執行測試所需實用資訊的 TestInformation 物件。 |
listener |
ITestInvocationListener:測試結果的 ITestInvocationListener |
| 擲回 | |
|---|---|
DeviceNotAvailableException |
|
setConfiguration
public void setConfiguration (IConfiguration configuration)
插入正在使用的 IConfiguration。
| 參數 | |
|---|---|
configuration |
IConfiguration |
拆分
publicsplit ()
將測試分割成可個別執行的區塊。
這必須具有確定性,並且一律會針對相同的輸入內容傳回相同的 IRemoteTest 清單。
這個方法會在測試執行前呼叫,因此注入的依附元件 (例如 IDeviceTest 的 ITestDevice) 可能為空值。
| 傳回 | |
|---|---|
|
要個別執行的子測試集合,或如果測試目前無法分割,則為 null |
toString
public String toString ()
| 傳回 | |
|---|---|
String |
|