Class: Google::Apis::TestingV1::AndroidRoboTest
- Inherits:
-
Object
- Object
- Google::Apis::TestingV1::AndroidRoboTest
- 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
-
#app_apk ⇒ Google::Apis::TestingV1::FileReference
A reference to a file, used for user inputs.
-
#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.
-
#max_depth ⇒ Fixnum
The max depth of the traversal stack Robo can explore.
-
#max_steps ⇒ Fixnum
The max number of steps Robo can execute.
-
#robo_directives ⇒ Array<Google::Apis::TestingV1::RoboDirective>
A set of directives Robo should apply during the crawl.
-
#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.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ AndroidRoboTest
Returns a new instance of AndroidRoboTest
440 441 442 |
# File 'generated/google/apis/testing_v1/classes.rb', line 440 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
395 396 397 |
# File 'generated/google/apis/testing_v1/classes.rb', line 395 def app_apk @app_apk end |
#app_initial_activity ⇒ String
The initial activity that should be used to start the app.
Optional
Corresponds to the JSON property appInitialActivity
401 402 403 |
# File 'generated/google/apis/testing_v1/classes.rb', line 401 def app_initial_activity @app_initial_activity end |
#app_package_id ⇒ String
The java package for the application under test.
Optional, default is determined by examining the application's manifest.
Corresponds to the JSON property appPackageId
407 408 409 |
# File 'generated/google/apis/testing_v1/classes.rb', line 407 def app_package_id @app_package_id end |
#max_depth ⇒ Fixnum
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.
Optional
Corresponds to the JSON property maxDepth
415 416 417 |
# File 'generated/google/apis/testing_v1/classes.rb', line 415 def max_depth @max_depth end |
#max_steps ⇒ Fixnum
The max number of steps Robo can execute.
Default is no limit.
Optional
Corresponds to the JSON property maxSteps
422 423 424 |
# File 'generated/google/apis/testing_v1/classes.rb', line 422 def max_steps @max_steps 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.
Optional
Corresponds to the JSON property roboDirectives
430 431 432 |
# File 'generated/google/apis/testing_v1/classes.rb', line 430 def robo_directives @robo_directives 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
438 439 440 |
# File 'generated/google/apis/testing_v1/classes.rb', line 438 def starting_intents @starting_intents end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
445 446 447 448 449 450 451 452 453 |
# File 'generated/google/apis/testing_v1/classes.rb', line 445 def update!(**args) @app_apk = args[:app_apk] if args.key?(:app_apk) @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) @starting_intents = args[:starting_intents] if args.key?(:starting_intents) end |