Class: Google::Apis::TestingV1::AndroidRoboTest
- Inherits:
-
Object
- Object
- Google::Apis::TestingV1::AndroidRoboTest
- 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 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
-
#app_apk ⇒ Google::Apis::TestingV1::FileReference
A reference to a file, used for user inputs.
-
#app_bundle ⇒ Google::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.
-
#app_initial_activity ⇒ String
The initial activity that should be used to start the app.
-
#app_package_id ⇒ String
The java package for the application under test.
-
#robo_directives ⇒ Array<Google::Apis::TestingV1::RoboDirective>
A set of directives Robo should apply during the crawl.
-
#robo_mode ⇒ String
The mode in which Robo should run.
-
#robo_script ⇒ Google::Apis::TestingV1::FileReference
A reference to a file, used for user inputs.
-
#starting_intents ⇒ Array<Google::Apis::TestingV1::RoboStartingIntent>
The intents used to launch the app for the crawl.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AndroidRoboTest
constructor
A new instance of AndroidRoboTest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AndroidRoboTest
Returns a new instance of AndroidRoboTest.
438 439 440 |
# File 'lib/google/apis/testing_v1/classes.rb', line 438 def initialize(**args) update!(**args) end |
Instance Attribute Details
#app_apk ⇒ Google::Apis::TestingV1::FileReference
A reference to a file, used for user inputs.
Corresponds to the JSON property appApk
392 393 394 |
# File 'lib/google/apis/testing_v1/classes.rb', line 392 def app_apk @app_apk end |
#app_bundle ⇒ Google::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
400 401 402 |
# File 'lib/google/apis/testing_v1/classes.rb', line 400 def app_bundle @app_bundle end |
#app_initial_activity ⇒ String
The initial activity that should be used to start the app.
Corresponds to the JSON property appInitialActivity
405 406 407 |
# File 'lib/google/apis/testing_v1/classes.rb', line 405 def app_initial_activity @app_initial_activity end |
#app_package_id ⇒ String
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
411 412 413 |
# File 'lib/google/apis/testing_v1/classes.rb', line 411 def app_package_id @app_package_id end |
#robo_directives ⇒ Array<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
418 419 420 |
# File 'lib/google/apis/testing_v1/classes.rb', line 418 def robo_directives @robo_directives end |
#robo_mode ⇒ String
The mode in which Robo should run. Most clients should allow the server to
populate this field automatically.
Corresponds to the JSON property roboMode
424 425 426 |
# File 'lib/google/apis/testing_v1/classes.rb', line 424 def robo_mode @robo_mode end |
#robo_script ⇒ Google::Apis::TestingV1::FileReference
A reference to a file, used for user inputs.
Corresponds to the JSON property roboScript
429 430 431 |
# File 'lib/google/apis/testing_v1/classes.rb', line 429 def robo_script @robo_script end |
#starting_intents ⇒ Array<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
436 437 438 |
# File 'lib/google/apis/testing_v1/classes.rb', line 436 def starting_intents @starting_intents end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
443 444 445 446 447 448 449 450 451 452 |
# File 'lib/google/apis/testing_v1/classes.rb', line 443 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) @robo_directives = args[:robo_directives] if args.key?(:robo_directives) @robo_mode = args[:robo_mode] if args.key?(:robo_mode) @robo_script = args[:robo_script] if args.key?(:robo_script) @starting_intents = args[:starting_intents] if args.key?(:starting_intents) end |