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

robotium_robotium使用基础_robotium api(40)

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

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

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