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>
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.
-
#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.
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
1574 1575 1576 |
# File 'generated/google/apis/testing_v1/classes.rb', line 1574 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
1542 1543 1544 |
# File 'generated/google/apis/testing_v1/classes.rb', line 1542 def account @account 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 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.
Optional
Corresponds to the JSON property directoriesToPull
1554 1555 1556 |
# File 'generated/google/apis/testing_v1/classes.rb', line 1554 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
1560 1561 1562 |
# File 'generated/google/apis/testing_v1/classes.rb', line 1560 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.
Optional
Corresponds to the JSON property filesToPush
1566 1567 1568 |
# File 'generated/google/apis/testing_v1/classes.rb', line 1566 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
1572 1573 1574 |
# File 'generated/google/apis/testing_v1/classes.rb', line 1572 def network_profile @network_profile end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1579 1580 1581 1582 1583 1584 1585 |
# File 'generated/google/apis/testing_v1/classes.rb', line 1579 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 |