Class: Google::Apis::ToolresultsV1beta3::AndroidInstrumentationTest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/toolresults_v1beta3/classes.rb,
generated/google/apis/toolresults_v1beta3/representations.rb,
generated/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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ AndroidInstrumentationTest

Returns a new instance of AndroidInstrumentationTest.



93
94
95
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 93

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#test_package_idString

The java package for the test to be executed. Required Corresponds to the JSON property testPackageId

Returns:

  • (String)


71
72
73
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 71

def test_package_id
  @test_package_id
end

#test_runner_classString

The InstrumentationTestRunner class. Required Corresponds to the JSON property testRunnerClass

Returns:

  • (String)


76
77
78
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 76

def test_runner_class
  @test_runner_class
end

#test_targetsArray<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

Returns:

  • (Array<String>)


84
85
86
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 84

def test_targets
  @test_targets
end

#use_orchestratorBoolean 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

Returns:

  • (Boolean)


90
91
92
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 90

def use_orchestrator
  @use_orchestrator
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



98
99
100
101
102
103
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 98

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