Class: Google::Apis::TestingV1::TestSetup
- Inherits:
-
Object
- Object
- Google::Apis::TestingV1::TestSetup
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/testing_v1/classes.rb,
generated/google/apis/testing_v1/representations.rb,
generated/google/apis/testing_v1/representations.rb
Overview
A description of how to set up the device prior to running the test
Instance Attribute Summary collapse
-
#account ⇒ Google::Apis::TestingV1::Account
Identifies an account and how to log into it Corresponds to the JSON property
account
. -
#directories_to_pull ⇒ Array<String>
The directories on the device to upload to GCS at the end of the test; they must be absolute, whitelisted paths.
-
#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>
Optional Corresponds to the JSON property
filesToPush
. -
#network_profile ⇒ String
The network traffic profile used for running the test.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TestSetup
constructor
A new instance of TestSetup.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ TestSetup
Returns a new instance of TestSetup
1370 1371 1372 |
# File 'generated/google/apis/testing_v1/classes.rb', line 1370 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
1343 1344 1345 |
# File 'generated/google/apis/testing_v1/classes.rb', line 1343 def account @account end |
#directories_to_pull ⇒ Array<String>
The directories on the device to upload to GCS at the end of the test;
they must be absolute, whitelisted paths.
Refer to RegularFile for whitelisted paths.
Optional
Corresponds to the JSON property directoriesToPull
1351 1352 1353 |
# File 'generated/google/apis/testing_v1/classes.rb', line 1351 def directories_to_pull @directories_to_pull 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
1357 1358 1359 |
# File 'generated/google/apis/testing_v1/classes.rb', line 1357 def environment_variables @environment_variables end |
#files_to_push ⇒ Array<Google::Apis::TestingV1::DeviceFile>
Optional
Corresponds to the JSON property filesToPush
1362 1363 1364 |
# File 'generated/google/apis/testing_v1/classes.rb', line 1362 def files_to_push @files_to_push end |
#network_profile ⇒ String
The network traffic profile used for running the test.
Optional
Corresponds to the JSON property networkProfile
1368 1369 1370 |
# File 'generated/google/apis/testing_v1/classes.rb', line 1368 def network_profile @network_profile end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1375 1376 1377 1378 1379 1380 1381 |
# File 'generated/google/apis/testing_v1/classes.rb', line 1375 def update!(**args) @account = args[:account] if args.key?(:account) @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 |