NativePocCrashAsserter
public class NativePocCrashAsserter
extends Object
implements NativePocAsserter
java.lang.Object | |
↳ | com.android.sts.common.NativePocCrashAsserter |
概括
公共方法 | |
---|---|
static NativePocAsserter | assertNoCrash () 返回一個 NativePocAsserter,確保 Poc 沒有安全崩潰。 |
static NativePocAsserter | assertNoCrash ( TombstoneUtils.Config config) 返回一個 NativePocAsserter,確保沒有根據給定的 TombstoneUtils.Config 檢測到安全崩潰 |
static NativePocAsserter | assertNoCrashIn (String... patterns) 返回一個 NativePocAsserter,它檢查列出的進程是否存在任何安全崩潰。 |
AutoCloseable | withAutoCloseable ( NativePoc nativePoc, ITestDevice device) 在 PoC 運行之前調用,返回一個在 PoC 完成後關閉的 AutoCloseable |
公共方法
斷言沒有崩潰
public static NativePocAsserter assertNoCrash ()
返回一個 NativePocAsserter,確保 Poc 沒有安全崩潰。
退貨 | |
---|---|
NativePocAsserter |
斷言沒有崩潰
public static NativePocAsserter assertNoCrash (TombstoneUtils.Config config)
返回一個 NativePocAsserter,確保沒有根據給定的 TombstoneUtils.Config 檢測到安全崩潰
參數 | |
---|---|
config | TombstoneUtils.Config |
退貨 | |
---|---|
NativePocAsserter |
斷言沒有崩潰
public static NativePocAsserter assertNoCrashIn (String... patterns)
返回一個 NativePocAsserter,它檢查列出的進程是否存在任何安全崩潰。
參數 | |
---|---|
patterns | String |
退貨 | |
---|---|
NativePocAsserter |
可自動關閉
public AutoCloseable withAutoCloseable (NativePoc nativePoc, ITestDevice device)
在 PoC 運行之前調用,返回一個在 PoC 完成後關閉的 AutoCloseable
參數 | |
---|---|
nativePoc | NativePoc |
device | ITestDevice |
退貨 | |
---|---|
AutoCloseable |
投擲 | |
---|---|
DeviceNotAvailableException |