class Google::Apis::TestingV1::AndroidInstrumentationTest
A test of an Android application that can control an Android component independently of its normal lifecycle. Android instrumentation tests run an application APK and test APK inside the same process on a virtual or physical AndroidDevice
. They also specify a test runner class, such as com.google. GoogleTestRunner, which can vary on the specific instrumentation framework chosen. See for more information on types of Android tests.
Attributes
A reference to a file, used for user inputs. Corresponds to the JSON property `appApk` @return [Google::Apis::TestingV1::FileReference]
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` @return [Google::Apis::TestingV1::AppBundle]
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` @return [String]
The option of whether running each test within its own invocation of instrumentation with Android Test Orchestrator or not. ** Orchestrator is only compatible with AndroidJUnitRunner version 1.0 or higher! ** Orchestrator offers the following benefits: - No shared state - Crashes are isolated - Logs are scoped per test See for more information about Android Test Orchestrator. If not set, the test will be run without the orchestrator. Corresponds to the JSON property `orchestratorOption` @return [String]
Options for enabling sharding. Corresponds to the JSON property `shardingOption` @return [Google::Apis::TestingV1::ShardingOption]
A reference to a file, used for user inputs. Corresponds to the JSON property `testApk` @return [Google::Apis::TestingV1::FileReference]
The java package for the test to be executed. The default value is determined by examining the application's manifest. Corresponds to the JSON property `testPackageId` @return [String]
The InstrumentationTestRunner class. The default value is determined by examining the application's manifest. Corresponds to the JSON property `testRunnerClass` @return [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` @return [Array<String>]
Public Class Methods
# File lib/google/apis/testing_v1/classes.rb, line 208 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/testing_v1/classes.rb, line 213 def update!(**args) @app_apk = args[:app_apk] if args.key?(:app_apk) @app_bundle = args[:app_bundle] if args.key?(:app_bundle) @app_package_id = args[:app_package_id] if args.key?(:app_package_id) @orchestrator_option = args[:orchestrator_option] if args.key?(:orchestrator_option) @sharding_option = args[:sharding_option] if args.key?(:sharding_option) @test_apk = args[:test_apk] if args.key?(:test_apk) @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) end