generated/google/apis/testing_v1/classes.rb in google-api-client-0.19.8 vs generated/google/apis/testing_v1/classes.rb in google-api-client-0.20.0
- old
+ new
@@ -361,10 +361,18 @@
# Examples: "default", "preview", "deprecated"
# Corresponds to the JSON property `tags`
# @return [Array<String>]
attr_accessor :tags
+ # True if and only if tests with this model DO NOT have video output.
+ # See also TestSpecification.disable_video_recording
+ # @OutputOnly
+ # Corresponds to the JSON property `videoRecordingNotSupported`
+ # @return [Boolean]
+ attr_accessor :video_recording_not_supported
+ alias_method :video_recording_not_supported?, :video_recording_not_supported
+
def initialize(**args)
update!(**args)
end
# Update properties of this object
@@ -379,10 +387,11 @@
@screen_x = args[:screen_x] if args.key?(:screen_x)
@screen_y = args[:screen_y] if args.key?(:screen_y)
@supported_abis = args[:supported_abis] if args.key?(:supported_abis)
@supported_version_ids = args[:supported_version_ids] if args.key?(:supported_version_ids)
@tags = args[:tags] if args.key?(:tags)
+ @video_recording_not_supported = args[:video_recording_not_supported] if args.key?(:video_recording_not_supported)
end
end
# A test of an android application that explores the application on a virtual
# or physical Android Device, finding culprits and crashes as it goes.
@@ -427,10 +436,15 @@
# Optional
# Corresponds to the JSON property `roboDirectives`
# @return [Array<Google::Apis::TestingV1::RoboDirective>]
attr_accessor :robo_directives
+ # A reference to a file, used for user inputs.
+ # Corresponds to the JSON property `roboScript`
+ # @return [Google::Apis::TestingV1::FileReference]
+ attr_accessor :robo_script
+
# The intents used to launch the app for the crawl.
# If none are provided, then the main launcher activity is launched.
# If some are provided, then only those provided are launched (the main
# launcher activity must be provided explicitly).
# Corresponds to the JSON property `startingIntents`
@@ -447,10 +461,11 @@
@app_initial_activity = args[:app_initial_activity] if args.key?(:app_initial_activity)
@app_package_id = args[:app_package_id] if args.key?(:app_package_id)
@max_depth = args[:max_depth] if args.key?(:max_depth)
@max_steps = args[:max_steps] if args.key?(:max_steps)
@robo_directives = args[:robo_directives] if args.key?(:robo_directives)
+ @robo_script = args[:robo_script] if args.key?(:robo_script)
@starting_intents = args[:starting_intents] if args.key?(:starting_intents)
end
end
# Configuration that can be selected at the time a test is run.
@@ -597,10 +612,36 @@
@tags = args[:tags] if args.key?(:tags)
@version_string = args[:version_string] if args.key?(:version_string)
end
end
+ # An Android package file to install.
+ class Apk
+ include Google::Apis::Core::Hashable
+
+ # A reference to a file, used for user inputs.
+ # Corresponds to the JSON property `location`
+ # @return [Google::Apis::TestingV1::FileReference]
+ attr_accessor :location
+
+ # The java package for the APK to be installed.
+ # Optional, value is determined by examining the application's manifest.
+ # Corresponds to the JSON property `packageName`
+ # @return [String]
+ attr_accessor :package_name
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @location = args[:location] if args.key?(:location)
+ @package_name = args[:package_name] if args.key?(:package_name)
+ end
+ end
+
# Android application details based on application manifest and apk archive
# contents
class ApkDetail
include Google::Apis::Core::Hashable
@@ -786,17 +827,23 @@
# An opaque binary blob file to install on the device before the test starts
# Corresponds to the JSON property `obbFile`
# @return [Google::Apis::TestingV1::ObbFile]
attr_accessor :obb_file
+ # A file or directory to install on the device before the test starts
+ # Corresponds to the JSON property `regularFile`
+ # @return [Google::Apis::TestingV1::RegularFile]
+ attr_accessor :regular_file
+
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@obb_file = args[:obb_file] if args.key?(:obb_file)
+ @regular_file = args[:regular_file] if args.key?(:regular_file)
end
end
# Data about the relative number of devices running a
# given configuration of the Android platform.
@@ -1187,10 +1234,50 @@
@name = args[:name] if args.key?(:name)
@tags = args[:tags] if args.key?(:tags)
end
end
+ # A file or directory to install on the device before the test starts
+ class RegularFile
+ include Google::Apis::Core::Hashable
+
+ # A reference to a file, used for user inputs.
+ # Corresponds to the JSON property `content`
+ # @return [Google::Apis::TestingV1::FileReference]
+ attr_accessor :content
+
+ # Where to put the content on the device. Must be an absolute, whitelisted
+ # path. If the file exists, it will be replaced.
+ # The following device-side directories and any of their subdirectories are
+ # whitelisted:
+ # <p>$`EXTERNAL_STORAGE`, or /sdcard</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.
+ # Required
+ # Corresponds to the JSON property `devicePath`
+ # @return [String]
+ attr_accessor :device_path
+
+ def initialize(**args)
+ update!(**args)
+ end
+
+ # Update properties of this object
+ def update!(**args)
+ @content = args[:content] if args.key?(:content)
+ @device_path = args[:device_path] if args.key?(:device_path)
+ end
+ end
+
# Locations where the results of running the test are stored.
class ResultStorage
include Google::Apis::Core::Hashable
# A storage location within Google cloud storage (GCS).
@@ -1340,18 +1427,28 @@
# @OutputOnly
# Corresponds to the JSON property `progressMessages`
# @return [Array<String>]
attr_accessor :progress_messages
+ # Indicates that video will not be recorded for this execution either because
+ # the user chose to disable it or the device does not support it.
+ # See AndroidModel.video_recording_not_supported
+ # @OutputOnly
+ # Corresponds to the JSON property `videoRecordingDisabled`
+ # @return [Boolean]
+ attr_accessor :video_recording_disabled
+ alias_method :video_recording_disabled?, :video_recording_disabled
+
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@error_message = args[:error_message] if args.key?(:error_message)
@progress_messages = args[:progress_messages] if args.key?(:progress_messages)
+ @video_recording_disabled = args[:video_recording_disabled] if args.key?(:video_recording_disabled)
end
end
# A description of a test environment.
class TestEnvironmentCatalog
@@ -1530,19 +1627,26 @@
@test_specification = args[:test_specification] if args.key?(:test_specification)
@timestamp = args[:timestamp] if args.key?(:timestamp)
end
end
- # A description of how to set up the device prior to running the test
+ # A description of how to set up the Android device prior to running the test.
class TestSetup
include Google::Apis::Core::Hashable
# Identifies an account and how to log into it
# Corresponds to the JSON property `account`
# @return [Google::Apis::TestingV1::Account]
attr_accessor :account
+ # APKs to install in addition to those being directly tested.
+ # Currently capped at 100.
+ # Optional
+ # Corresponds to the JSON property `additionalApks`
+ # @return [Array<Google::Apis::TestingV1::Apk>]
+ attr_accessor :additional_apks
+
# List of directories on the device to upload to GCS at the end of the test;
# they must be absolute paths under /sdcard or /data/local/tmp.
# Path names are restricted to characters a-z A-Z 0-9 _ - . + and /
# Note: The paths /sdcard and /data will be made available and treated as
# implicit path substitutions. E.g. if /sdcard on a particular device does
@@ -1576,10 +1680,11 @@
end
# Update properties of this object
def update!(**args)
@account = args[:account] if args.key?(:account)
+ @additional_apks = args[:additional_apks] if args.key?(:additional_apks)
@directories_to_pull = args[:directories_to_pull] if args.key?(:directories_to_pull)
@environment_variables = args[:environment_variables] if args.key?(:environment_variables)
@files_to_push = args[:files_to_push] if args.key?(:files_to_push)
@network_profile = args[:network_profile] if args.key?(:network_profile)
end
@@ -1638,10 +1743,10 @@
# Corresponds to the JSON property `disableVideoRecording`
# @return [Boolean]
attr_accessor :disable_video_recording
alias_method :disable_video_recording?, :disable_video_recording
- # A description of how to set up the device prior to running the test
+ # A description of how to set up the Android device prior to running the test.
# Corresponds to the JSON property `testSetup`
# @return [Google::Apis::TestingV1::TestSetup]
attr_accessor :test_setup
# Max time a test execution is allowed to run before it is