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.



1452
1453
1454
# File 'lib/google/apis/testing_v1/classes.rb', line 1452

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



1430
1431
1432
# File 'lib/google/apis/testing_v1/classes.rb', line 1430

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)


1437
1438
1439
# File 'lib/google/apis/testing_v1/classes.rb', line 1437

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



1445
1446
1447
# File 'lib/google/apis/testing_v1/classes.rb', line 1445

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



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

def push_files
  @push_files
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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