Class: Google::Apis::ToolresultsV1beta3::AndroidInstrumentationTest
- Inherits:
-
Object
- Object
- Google::Apis::ToolresultsV1beta3::AndroidInstrumentationTest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/toolresults_v1beta3/classes.rb,
lib/google/apis/toolresults_v1beta3/representations.rb,
lib/google/apis/toolresults_v1beta3/representations.rb
Overview
A test of an Android application that can control an Android component independently of its normal lifecycle. See for more information on types of Android tests.
Instance Attribute Summary collapse
-
#test_package_id ⇒ String
The java package for the test to be executed.
-
#test_runner_class ⇒ String
The InstrumentationTestRunner class.
-
#test_targets ⇒ Array<String>
Each target must be fully qualified with the package name or class name, in one of these formats: - "package package_name" - "class package_name.
-
#use_orchestrator ⇒ Boolean
(also: #use_orchestrator?)
The flag indicates whether Android Test Orchestrator will be used to run test or not.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AndroidInstrumentationTest
constructor
A new instance of AndroidInstrumentationTest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AndroidInstrumentationTest
Returns a new instance of AndroidInstrumentationTest.
112 113 114 |
# File 'lib/google/apis/toolresults_v1beta3/classes.rb', line 112 def initialize(**args) update!(**args) end |
Instance Attribute Details
#test_package_id ⇒ String
The java package for the test to be executed. Required
Corresponds to the JSON property testPackageId
90 91 92 |
# File 'lib/google/apis/toolresults_v1beta3/classes.rb', line 90 def test_package_id @test_package_id end |
#test_runner_class ⇒ String
The InstrumentationTestRunner class. Required
Corresponds to the JSON property testRunnerClass
95 96 97 |
# File 'lib/google/apis/toolresults_v1beta3/classes.rb', line 95 def test_runner_class @test_runner_class end |
#test_targets ⇒ Array<String>
Each target must be fully qualified with the package name or class name, in
one of these formats: - "package package_name" - "class package_name.
class_name" - "class package_name.class_name#method_name" If empty, all
targets in the module will be run.
Corresponds to the JSON property testTargets
103 104 105 |
# File 'lib/google/apis/toolresults_v1beta3/classes.rb', line 103 def test_targets @test_targets end |
#use_orchestrator ⇒ Boolean Also known as: use_orchestrator?
The flag indicates whether Android Test Orchestrator will be used to run test
or not.
Corresponds to the JSON property useOrchestrator
109 110 111 |
# File 'lib/google/apis/toolresults_v1beta3/classes.rb', line 109 def use_orchestrator @use_orchestrator end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
117 118 119 120 121 122 |
# File 'lib/google/apis/toolresults_v1beta3/classes.rb', line 117 def update!(**args) @test_package_id = args[:test_package_id] if args.key?(:test_package_id) @test_runner_class = args[:test_runner_class] if args.key?(:test_runner_class) @test_targets = args[:test_targets] if args.key?(:test_targets) @use_orchestrator = args[:use_orchestrator] if args.key?(:use_orchestrator) end |