public final class Spoon extends Object
| Modifier and Type | Method and Description |
|---|---|
static File |
save(android.content.Context context,
File file)
Save a file from this test run.
|
static File |
save(android.content.Context context,
String path)
Alternative to
save(Context, File) |
static File |
screenshot(android.app.Activity activity,
String tag)
Take a screenshot with the specified tag.
|
static File |
screenshot(android.app.Activity activity,
String tag,
String testClassName,
String testMethodName)
Take a screenshot with the specified tag.
|
public static File screenshot(android.app.Activity activity, String tag)
activity - Activity with which to capture a screenshot.tag - Unique tag to further identify the screenshot. Must match [a-zA-Z0-9_-]+.public static File screenshot(android.app.Activity activity, String tag, String testClassName, String testMethodName)
activity - Activity with which to capture a screenshot.tag - Unique tag to further identify the screenshot. Must match [a-zA-Z0-9_-]+.public static File save(android.content.Context context, String path)
save(Context, File)context - Context used to access files.path - Path to the file you want to save.public static File save(android.content.Context context, File file)
context - Context used to access files.file - The file to save.Copyright © 2012-2016 Square, Inc.. All Rights Reserved.