NativeStressTest
public
class
NativeStressTest
extends Object
implements
IDeviceTest,
IRemoteTest
java.lang.Object | |
↳ | com.android.tradefed.testtype.NativeStressTest |
在指定裝置上執行原生壓力測試可執行檔的測試。
它會使用 NativeStressTestParser
剖析已完成的疊代次數,並將這些結果回報給 ITestInvocationListener
。
摘要
公用建構函式 | |
---|---|
NativeStressTest()
|
公用方法 | |
---|---|
ITestDevice
|
getDevice()
取得測試中的裝置。 |
String
|
getModuleName()
取得要執行的 Android 原生測試模組。 |
void
|
run(TestInformation testInfo, ITestInvocationListener listener)
執行測試,並將結果回報給監聽器。 |
void
|
setDevice(ITestDevice device)
插入測試中的裝置。 |
void
|
setModuleName(String moduleName)
設定要執行的 Android 原生壓力測試模組。 |
公用建構函式
NativeStressTest
public NativeStressTest ()
公用方法
getModuleName
public String getModuleName ()
取得要執行的 Android 原生測試模組。
傳回 | |
---|---|
String |
要執行的原生測試模組名稱,如果未設定,則為空值 |
得分
public void run (TestInformation testInfo, ITestInvocationListener listener)
執行測試,並將結果回報給監聽器。
參數 | |
---|---|
testInfo |
TestInformation :包含執行測試所需實用資訊的 TestInformation 物件。 |
listener |
ITestInvocationListener :測試結果的 ITestInvocationListener |
擲回 | |
---|---|
DeviceNotAvailableException |
setDevice
public void setDevice (ITestDevice device)
插入測試中的裝置。
參數 | |
---|---|
device |
ITestDevice :要使用的 ITestDevice |
setModuleName
public void setModuleName (String moduleName)
設定要執行的 Android 原生壓力測試模組。
參數 | |
---|---|
moduleName |
String :要執行的原生測試模組名稱 |