Class: Google::Apis::TestingV1::TestSetup

Inherits:
Object
  • Object
show all
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 Android device prior to running the test.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TestSetup

Returns a new instance of TestSetup.



2301
2302
2303
# File 'generated/google/apis/testing_v1/classes.rb', line 2301

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#accountGoogle::Apis::TestingV1::Account

Identifies an account and how to log into it. Corresponds to the JSON property account



2250
2251
2252
# File 'generated/google/apis/testing_v1/classes.rb', line 2250

def 
  @account
end

#additional_apksArray<Google::Apis::TestingV1::Apk>

APKs to install in addition to those being directly tested. Currently capped at 100. Corresponds to the JSON property additionalApks

Returns:



2256
2257
2258
# File 'generated/google/apis/testing_v1/classes.rb', line 2256

def additional_apks
  @additional_apks
end

#directories_to_pullArray<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

Returns:

  • (Array<String>)


2267
2268
2269
# File 'generated/google/apis/testing_v1/classes.rb', line 2267

def directories_to_pull
  @directories_to_pull
end

#dont_autogrant_permissionsBoolean Also known as: dont_autogrant_permissions?

Whether to prevent all runtime permissions to be granted at app install Corresponds to the JSON property dontAutograntPermissions

Returns:

  • (Boolean)


2272
2273
2274
# File 'generated/google/apis/testing_v1/classes.rb', line 2272

def dont_autogrant_permissions
  @dont_autogrant_permissions
end

#environment_variablesArray<Google::Apis::TestingV1::EnvironmentVariable>

Environment variables to set for the test (only applicable for instrumentation tests). Corresponds to the JSON property environmentVariables



2279
2280
2281
# File 'generated/google/apis/testing_v1/classes.rb', line 2279

def environment_variables
  @environment_variables
end

#files_to_pushArray<Google::Apis::TestingV1::DeviceFile>

List of files to push to the device before starting the test. Corresponds to the JSON property filesToPush



2284
2285
2286
# File 'generated/google/apis/testing_v1/classes.rb', line 2284

def files_to_push
  @files_to_push
end

#network_profileString

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

Returns:

  • (String)


2291
2292
2293
# File 'generated/google/apis/testing_v1/classes.rb', line 2291

def network_profile
  @network_profile
end

#systraceGoogle::Apis::TestingV1::SystraceSetup

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



2299
2300
2301
# File 'generated/google/apis/testing_v1/classes.rb', line 2299

def systrace
  @systrace
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
# File 'generated/google/apis/testing_v1/classes.rb', line 2306

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