Class: Google::Apis::TestingV1::AndroidTestLoop

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 test of an Android Application with a Test Loop. The intent will be implicitly added, since Games is the only user of this api, for the time being.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ AndroidTestLoop

Returns a new instance of AndroidTestLoop



533
534
535
# File 'generated/google/apis/testing_v1/classes.rb', line 533

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

Instance Attribute Details

#app_apkGoogle::Apis::TestingV1::FileReference

A reference to a file, used for user inputs. Corresponds to the JSON property appApk



507
508
509
# File 'generated/google/apis/testing_v1/classes.rb', line 507

def app_apk
  @app_apk
end

#app_package_idString

The java package for the application under test. Optional, default is determined by examining the application's manifest. Corresponds to the JSON property appPackageId

Returns:

  • (String)


513
514
515
# File 'generated/google/apis/testing_v1/classes.rb', line 513

def app_package_id
  @app_package_id
end

#scenario_labelsArray<String>

The list of scenario labels that should be run during the test. The scenario labels should map to labels defined in the application's manifest. For example, player_experience and com.google.test.loops.player_experience add all of the loops labeled in the manifest with the com.google.test.loops.player_experience name to the execution. Optional. Scenarios can also be specified in the scenarios field. Corresponds to the JSON property scenarioLabels

Returns:

  • (Array<String>)


524
525
526
# File 'generated/google/apis/testing_v1/classes.rb', line 524

def scenario_labels
  @scenario_labels
end

#scenariosArray<Fixnum>

The list of scenarios that should be run during the test. Optional, default is all test loops, derived from the application's manifest. Corresponds to the JSON property scenarios

Returns:

  • (Array<Fixnum>)


531
532
533
# File 'generated/google/apis/testing_v1/classes.rb', line 531

def scenarios
  @scenarios
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



538
539
540
541
542
543
# File 'generated/google/apis/testing_v1/classes.rb', line 538

def update!(**args)
  @app_apk = args[:app_apk] if args.key?(:app_apk)
  @app_package_id = args[:app_package_id] if args.key?(:app_package_id)
  @scenario_labels = args[:scenario_labels] if args.key?(:scenario_labels)
  @scenarios = args[:scenarios] if args.key?(:scenarios)
end