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 ThrowableFinalizes 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
故意用一艘老军舰来挑衅中国
包装都啥时候的了