非根安全測試用例
public class NonRootSecurityTestCase
extends SecurityTestCase
java.lang.Object | ||||||
↳ | com.android.tradefed.testtype.junit4.BaseHostJUnit4Test | |||||
↳ | com.android.compatibility.common.tradefed.testtype.BusinessLogicHostTestBase | |||||
↳ | com.android.compatibility.common.tradefed.testtype.ExtraBusinessLogicHostTestBase | |||||
↳ | com.android.sts.common.tradefed.testtype.StsExtraBusinessLogicHostTestBase | |||||
↳ | com.android.sts.common.tradefed.testtype.SecurityTestCase | |||||
↳ | com.android.sts.common.tradefed.testtype.NonRootSecurityTestCase |
在沒有也不應該有 adb root 的設備上運行的測試類。
為了優化性能,所有非根測試都應該分組到同一個模塊中。
概括
公共構造函數 | |
---|---|
NonRootSecurityTestCase () |
公共方法 | |
---|---|
void | setUpUnroot () 確保在 SecurityTestCase 設置後未在設備上啟用 adb root。 |
公共構造函數
非根安全測試用例
public NonRootSecurityTestCase ()
公共方法
setUpUnroot
public void setUpUnroot ()
確保在 SecurityTestCase 設置後未在設備上啟用 adb root。
投擲 | |
---|---|
DeviceNotAvailableException |