Class: Google::Apis::TestingV1::AndroidRoboTest

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 that explores the application on a virtual or physical Android Device, finding culprits and crashes as it goes.

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) ⇒ AndroidRoboTest

Returns a new instance of AndroidRoboTest.



456
457
458
# File 'generated/google/apis/testing_v1/classes.rb', line 456

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



402
403
404
# File 'generated/google/apis/testing_v1/classes.rb', line 402

def app_apk
  @app_apk
end

#app_bundleGoogle::Apis::TestingV1::AppBundle

An Android App Bundle file format, containing a BundleConfig.pb file, a base module directory, zero or more dynamic feature module directories.

See https://developer.android.com/guide/app-bundle/build for guidance on building App Bundles. Corresponds to the JSON property appBundle



410
411
412
# File 'generated/google/apis/testing_v1/classes.rb', line 410

def app_bundle
  @app_bundle
end

#app_initial_activityString

The initial activity that should be used to start the app. Corresponds to the JSON property appInitialActivity

Returns:

  • (String)


415
416
417
# File 'generated/google/apis/testing_v1/classes.rb', line 415

def app_initial_activity
  @app_initial_activity
end

#app_package_idString

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

Returns:

  • (String)


421
422
423
# File 'generated/google/apis/testing_v1/classes.rb', line 421

def app_package_id
  @app_package_id
end

#max_depthFixnum

The max depth of the traversal stack Robo can explore. Needs to be at least 2 to make Robo explore the app beyond the first activity. Default is 50. Corresponds to the JSON property maxDepth

Returns:

  • (Fixnum)


428
429
430
# File 'generated/google/apis/testing_v1/classes.rb', line 428

def max_depth
  @max_depth
end

#max_stepsFixnum

The max number of steps Robo can execute. Default is no limit. Corresponds to the JSON property maxSteps

Returns:

  • (Fixnum)


434
435
436
# File 'generated/google/apis/testing_v1/classes.rb', line 434

def max_steps
  @max_steps
end

#robo_directivesArray<Google::Apis::TestingV1::RoboDirective>

A set of directives Robo should apply during the crawl. This allows users to customize the crawl. For example, the username and password for a test account can be provided. Corresponds to the JSON property roboDirectives



441
442
443
# File 'generated/google/apis/testing_v1/classes.rb', line 441

def robo_directives
  @robo_directives
end

#robo_scriptGoogle::Apis::TestingV1::FileReference

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



446
447
448
# File 'generated/google/apis/testing_v1/classes.rb', line 446

def robo_script
  @robo_script
end

#starting_intentsArray<Google::Apis::TestingV1::RoboStartingIntent>

The intents used to launch the app for the crawl. If none are provided, then the main launcher activity is launched. If some are provided, then only those provided are launched (the main launcher activity must be provided explicitly). Corresponds to the JSON property startingIntents



454
455
456
# File 'generated/google/apis/testing_v1/classes.rb', line 454

def starting_intents
  @starting_intents
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



461
462
463
464
465
466
467
468
469
470
471
# File 'generated/google/apis/testing_v1/classes.rb', line 461

def update!(**args)
  @app_apk = args[:app_apk] if args.key?(:app_apk)
  @app_bundle = args[:app_bundle] if args.key?(:app_bundle)
  @app_initial_activity = args[:app_initial_activity] if args.key?(:app_initial_activity)
  @app_package_id = args[:app_package_id] if args.key?(:app_package_id)
  @max_depth = args[:max_depth] if args.key?(:max_depth)
  @max_steps = args[:max_steps] if args.key?(:max_steps)
  @robo_directives = args[:robo_directives] if args.key?(:robo_directives)
  @robo_script = args[:robo_script] if args.key?(:robo_script)
  @starting_intents = args[:starting_intents] if args.key?(:starting_intents)
end