Class: Google::Apis::TestingV1::TestSetup
- Inherits:
-
Object
- Object
- Google::Apis::TestingV1::TestSetup
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/testing_v1/classes.rb,
lib/google/apis/testing_v1/representations.rb,
lib/google/apis/testing_v1/representations.rb
Overview
A description of how to set up the Android device prior to running the test.
Instance Attribute Summary collapse
-
#account ⇒ Google::Apis::TestingV1::Account
Identifies an account and how to log into it.
-
#additional_apks ⇒ Array<Google::Apis::TestingV1::Apk>
APKs to install in addition to those being directly tested.
-
#directories_to_pull ⇒ Array<String>
List of directories on the device to upload to GCS at the end of the test; they must be absolute paths under /sdcard, /storage or /data/local/tmp.
-
#dont_autogrant_permissions ⇒ Boolean
(also: #dont_autogrant_permissions?)
Whether to prevent all runtime permissions to be granted at app install Corresponds to the JSON property
dontAutograntPermissions
. -
#environment_variables ⇒ Array<Google::Apis::TestingV1::EnvironmentVariable>
Environment variables to set for the test (only applicable for instrumentation tests).
-
#files_to_push ⇒ Array<Google::Apis::TestingV1::DeviceFile>
List of files to push to the device before starting the test.
-
#network_profile ⇒ String
The network traffic profile used for running the test.
-
#systrace ⇒ Google::Apis::TestingV1::SystraceSetup
Deprecated: Systrace uses Python 2 which has been sunset 2020-01-01.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TestSetup
constructor
A new instance of TestSetup.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TestSetup
Returns a new instance of TestSetup.
2379 2380 2381 |
# File 'lib/google/apis/testing_v1/classes.rb', line 2379 def initialize(**args) update!(**args) end |
Instance Attribute Details
#account ⇒ Google::Apis::TestingV1::Account
Identifies an account and how to log into it.
Corresponds to the JSON property account
2326 2327 2328 |
# File 'lib/google/apis/testing_v1/classes.rb', line 2326 def account @account end |
#additional_apks ⇒ Array<Google::Apis::TestingV1::Apk>
APKs to install in addition to those being directly tested. Currently capped
at 100.
Corresponds to the JSON property additionalApks
2332 2333 2334 |
# File 'lib/google/apis/testing_v1/classes.rb', line 2332 def additional_apks @additional_apks end |
#directories_to_pull ⇒ Array<String>
List of directories on the device to upload to GCS at the end of the test;
they must be absolute paths under /sdcard, /storage 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 not map to external
storage, the system will replace it with the external storage path prefix for
that device.
Corresponds to the JSON property directoriesToPull
2343 2344 2345 |
# File 'lib/google/apis/testing_v1/classes.rb', line 2343 def directories_to_pull @directories_to_pull end |
#dont_autogrant_permissions ⇒ Boolean Also known as: dont_autogrant_permissions?
Whether to prevent all runtime permissions to be granted at app install
Corresponds to the JSON property dontAutograntPermissions
2348 2349 2350 |
# File 'lib/google/apis/testing_v1/classes.rb', line 2348 def @dont_autogrant_permissions end |
#environment_variables ⇒ Array<Google::Apis::TestingV1::EnvironmentVariable>
Environment variables to set for the test (only applicable for instrumentation
tests).
Corresponds to the JSON property environmentVariables
2355 2356 2357 |
# File 'lib/google/apis/testing_v1/classes.rb', line 2355 def environment_variables @environment_variables end |
#files_to_push ⇒ Array<Google::Apis::TestingV1::DeviceFile>
List of files to push to the device before starting the test.
Corresponds to the JSON property filesToPush
2360 2361 2362 |
# File 'lib/google/apis/testing_v1/classes.rb', line 2360 def files_to_push @files_to_push end |
#network_profile ⇒ String
The network traffic profile used for running the test. Available network
profiles can be queried by using the NETWORK_CONFIGURATION environment type
when calling TestEnvironmentDiscoveryService.GetTestEnvironmentCatalog.
Corresponds to the JSON property networkProfile
2367 2368 2369 |
# File 'lib/google/apis/testing_v1/classes.rb', line 2367 def network_profile @network_profile end |
#systrace ⇒ Google::Apis::TestingV1::SystraceSetup
Deprecated: Systrace uses Python 2 which has been sunset 2020-01-01. Support
of Systrace may stop at any time, at which point no Systrace file will be
provided in the results. Systrace configuration for the run. If set a systrace
will be taken, starting on test start and lasting for the configured duration.
The systrace file thus obtained is put in the results bucket together with the
other artifacts from the run.
Corresponds to the JSON property systrace
2377 2378 2379 |
# File 'lib/google/apis/testing_v1/classes.rb', line 2377 def systrace @systrace end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 |
# File 'lib/google/apis/testing_v1/classes.rb', line 2384 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) @dont_autogrant_permissions = args[:dont_autogrant_permissions] if args.key?(:dont_autogrant_permissions) @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) @systrace = args[:systrace] if args.key?(:systrace) end |