google_api_testing v0.18.0 GoogleApi.Testing.V1.Model.RegularFile View Source

A file or directory to install on the device before the test starts.

Attributes

  • content (type: GoogleApi.Testing.V1.Model.FileReference.t, default: nil) - Required. The source file.

  • devicePath (type: String.t, default: nil) - Required. Where to put the content on the device. Must be an absolute, allowlisted path. If the file exists, it will be replaced. The following device-side directories and any of their subdirectories are allowlisted: <p>${EXTERNAL_STORAGE}, /sdcard, or /storage</p> <p>${ANDROID_DATA}/local/tmp, or /data/local/tmp</p> <p>Specifying a path outside of these directory trees is invalid.

    <p> The paths /sdcard and /data will be made available and treated as implicit path substitutions. E.g. if /sdcard on a particular device does not map to external storage, the system will replace it with the external storage path prefix for that device and copy the file there. <p> It is strongly advised to use the <a href= "http://developer.android.com/reference/android/os/Environment.html"> Environment API</a> in app and test code to access files on the device in a portable way.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Specs

t() :: %GoogleApi.Testing.V1.Model.RegularFile{
  content: GoogleApi.Testing.V1.Model.FileReference.t(),
  devicePath: String.t()
}

Link to this section Functions

Specs

decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.