public void startScreenshotSequence(String name)Takes a screenshot sequence and saves the images with the specified name prefix in the Solo。
Config objects save path (default set to: /sdcard/Robotium-Screenshots/)。 The name prefix is appended with "_" sequence_number for each image in the sequence, where numbering starts at 0。 Requires write permission (android。permission。WRITE_EXTERNAL_STORAGE) in AndroidManifest。xml of the application under test。 At present multiple simultaneous screenshot sequences are not supported。 This method will throw an exception if stopScreenshotSequence() has not been called to finish any prior sequences。
Calling this method is equivalend to calling startScreenshotSequence(name, 80, 400, 100);Parameters:name - the name prefix to give the screenshotstartScreenshotSequence
public void startScreenshotSequence(String name, int quality, int frameDelay, int maxFrames)Takes a screenshot sequence and saves the images with the specified name prefix in the Solo。Config objects save path (default set to: /sdcard/Robotium-Screenshots/)。 The name prefix is appended with "_" sequence_number for each image in the sequence, where numbering starts at 0。 Requires write permission (android。permission。
WRITE_EXTERNAL_STORAGE) in the AndroidManifest。xml of the application under test。 Taking a screenshot will take on the order of 40-100 milliseconds of time on the main UI thread。 Therefore it is possible to mess up the timing of tests if the frameDelay value is set too small。 At present multiple simultaneous screenshot sequences are not supported。 This method will throw an exception if stopScreenshotSequence() has not been called to finish any prior sequences。Parameters:name - the name prefix to give the screenshotquality - the compression rate。
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/ruanjian/article-37529-40.html
Nice
欧盟绝对不会放过这个机会正式转正
俄打格鲁吉亚的时候