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

robotium_robotium使用基础_robotium api(39)

电脑杂谈  发布时间:2017-03-14 21:02:58  来源:网络整理
public void sleep(int time)
Robotium will sleep for the specified time。Parameters:time - the time in milliseconds that Robotium should sleepfinalize
public void finalize()              throws Throwable
Finalizes the Solo object and removes the ActivityMonitor。Overrides:finalize in class ObjectThrows:ThrowableSee Also:finishOpenedActivities() to close the activities that have been activefinishOpenedActivities
public void finishOpenedActivities()
The Activities that are alive are finished。

Usually used in tearDown()。takeScreenshot

public void takeScreenshot()
Takes a screenshot and saves it in the Solo。Config objects save path (default set to: /sdcard/Robotium-Screenshots/)。 Requires write permission (android。permission。WRITE_EXTERNAL_STORAGE) in AndroidManifest。xml of the application under test。takeScreenshot
public void takeScreenshot(String name)
Takes a screenshot and saves it with the specified name in the Solo。Config objects save path (default set to: /sdcard/Robotium-Screenshots/)。 Requires write permission (android。permission。WRITE_EXTERNAL_STORAGE) in AndroidManifest。

xml of the application under test。Parameters:name - the name to give the screenshottakeScreenshot

public void takeScreenshot(String name,                           int quality)
Takes a screenshot and saves the image with the specified name in the Solo。Config objects save path (default set to: /sdcard/Robotium-Screenshots/)。 Requires write permission (android。permission。WRITE_EXTERNAL_STORAGE) in AndroidManifest。xml of the application under test。Parameters:name - the name to give the screenshotquality - the compression rate。 From 0 (compress for lowest size) to 100 (compress for maximum quality)startScreenshotSequence


本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/ruanjian/article-37529-39.html

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

    • 施岳
      施岳

      包装都啥时候的了

    • 康丁钊
      康丁钊

      故意用一艘老军舰来挑衅中国

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