public void assertCurrentActivity(String message, String name, boolean isNewInstance)Asserts that the Activity matching the specified name is active, with the possibility to verify that the expected Activity is a new instance of the Activity。Parameters:message - the message to display if the assert failsname - the name of the Activity that is expected to be active。 Example is: "MyActivity"isNewInstance - true if the expected Activity is a new instance of the ActivityassertCurrentActivity
public void assertCurrentActivity(String message, Class activityClass, boolean isNewInstance)Asserts that the Activity matching the specified class is active, with the possibility to verify that the expected Activity is a new instance of the Activity。
Parameters:message - the message to display if the assert failsactivityClass - the class of the Activity that is expected to be active。 Example is: MyActivity。classisNewInstance - true if the expected Activity is a new instance of the ActivityassertMemoryNotLow
public void assertMemoryNotLow()Asserts that the available memory is not considered low by the system。waitForDialogToOpen
public boolean waitForDialogToOpen()Waits for a Dialog to open。 Default timeout is 20 seconds。Returns:true if the Dialog is opened before the timeout and false if it is not openedwaitForDialogToClose
public boolean waitForDialogToClose()Waits for a Dialog to close。
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/ruanjian/article-37529-13.html
那么
无可厚非