b2科目四模拟试题多少题驾考考爆了怎么补救
b2科目四模拟试题多少题 驾考考爆了怎么补救

robotium_robotium使用基础_robotium api(13)

电脑杂谈  发布时间:2017-03-14 21:02:58  来源:网络整理
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

相关阅读
    发表评论  请自觉遵守互联网相关的政策法规,严禁发布、暴力、反动的言论

    热点图片
    拼命载入中...