Class: Google::Apis::TestingV1::IosTestSetup

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ IosTestSetup

Returns a new instance of IosTestSetup.



1464
1465
1466
# File 'lib/google/apis/testing_v1/classes.rb', line 1464

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

Instance Attribute Details

#additional_ipasArray<Google::Apis::TestingV1::FileReference>

iOS apps to install in addition to those being directly tested. Corresponds to the JSON property additionalIpas



1442
1443
1444
# File 'lib/google/apis/testing_v1/classes.rb', line 1442

def additional_ipas
  @additional_ipas
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)


1449
1450
1451
# File 'lib/google/apis/testing_v1/classes.rb', line 1449

def network_profile
  @network_profile
end

#pull_directoriesArray<Google::Apis::TestingV1::IosDeviceFile>

List of directories on the device to upload to Cloud Storage at the end of the test. Directories should either be in a shared directory (such as /private/var/ mobile/Media) or within an accessible directory inside the app's filesystem ( such as /Documents) by specifying the bundle ID. Corresponds to the JSON property pullDirectories



1457
1458
1459
# File 'lib/google/apis/testing_v1/classes.rb', line 1457

def pull_directories
  @pull_directories
end

#push_filesArray<Google::Apis::TestingV1::IosDeviceFile>

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



1462
1463
1464
# File 'lib/google/apis/testing_v1/classes.rb', line 1462

def push_files
  @push_files
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1469
1470
1471
1472
1473
1474
# File 'lib/google/apis/testing_v1/classes.rb', line 1469

def update!(**args)
  @additional_ipas = args[:additional_ipas] if args.key?(:additional_ipas)
  @network_profile = args[:network_profile] if args.key?(:network_profile)
  @pull_directories = args[:pull_directories] if args.key?(:pull_directories)
  @push_files = args[:push_files] if args.key?(:push_files)
end