Class: Google::Apis::TestingV1::TestSpecification

Inherits:
Object
  • Object
show all
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 description of how to run the test.

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) ⇒ TestSpecification

Returns a new instance of TestSpecification.



2310
2311
2312
# File 'generated/google/apis/testing_v1/classes.rb', line 2310

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

Instance Attribute Details

#android_instrumentation_testGoogle::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 http://developer.android.com/tools/testing/testing_android.html for more information on types of Android tests. Corresponds to the JSON property androidInstrumentationTest



2249
2250
2251
# File 'generated/google/apis/testing_v1/classes.rb', line 2249

def android_instrumentation_test
  @android_instrumentation_test
end

#android_robo_testGoogle::Apis::TestingV1::AndroidRoboTest

A test of an android application that explores the application on a virtual or physical Android Device, finding culprits and crashes as it goes. Corresponds to the JSON property androidRoboTest



2255
2256
2257
# File 'generated/google/apis/testing_v1/classes.rb', line 2255

def android_robo_test
  @android_robo_test
end

#android_test_loopGoogle::Apis::TestingV1::AndroidTestLoop

A test of an Android Application with a Test Loop. The intent <intent-name> will be implicitly added, since Games is the only user of this api, for the time being. Corresponds to the JSON property androidTestLoop



2262
2263
2264
# File 'generated/google/apis/testing_v1/classes.rb', line 2262

def android_test_loop
  @android_test_loop
end

#disable_performance_metricsBoolean Also known as: disable_performance_metrics?

Disables performance metrics recording. May reduce test latency. Corresponds to the JSON property disablePerformanceMetrics

Returns:

  • (Boolean)


2267
2268
2269
# File 'generated/google/apis/testing_v1/classes.rb', line 2267

def disable_performance_metrics
  @disable_performance_metrics
end

#disable_video_recordingBoolean Also known as: disable_video_recording?

Disables video recording. May reduce test latency. Corresponds to the JSON property disableVideoRecording

Returns:

  • (Boolean)


2273
2274
2275
# File 'generated/google/apis/testing_v1/classes.rb', line 2273

def disable_video_recording
  @disable_video_recording
end

#ios_test_loopGoogle::Apis::TestingV1::IosTestLoop

A test of an iOS application that implements one or more game loop scenarios. This test type accepts an archived application (.ipa file) and a list of integer scenarios that will be executed on the app sequentially. Corresponds to the JSON property iosTestLoop



2281
2282
2283
# File 'generated/google/apis/testing_v1/classes.rb', line 2281

def ios_test_loop
  @ios_test_loop
end

#ios_test_setupGoogle::Apis::TestingV1::IosTestSetup

A description of how to set up an iOS device prior to running the test. Corresponds to the JSON property iosTestSetup



2286
2287
2288
# File 'generated/google/apis/testing_v1/classes.rb', line 2286

def ios_test_setup
  @ios_test_setup
end

#ios_xc_testGoogle::Apis::TestingV1::IosXcTest

A test of an iOS application that uses the XCTest framework. Xcode supports the option to "build for testing", which generates an .xctestrun file that contains a test specification (arguments, test methods, etc). This test type accepts a zip file containing the .xctestrun file and the corresponding contents of the Build/Products directory that contains all the binaries needed to run the tests. Corresponds to the JSON property iosXcTest



2296
2297
2298
# File 'generated/google/apis/testing_v1/classes.rb', line 2296

def ios_xc_test
  @ios_xc_test
end

#test_setupGoogle::Apis::TestingV1::TestSetup

A description of how to set up the Android device prior to running the test. Corresponds to the JSON property testSetup



2301
2302
2303
# File 'generated/google/apis/testing_v1/classes.rb', line 2301

def test_setup
  @test_setup
end

#test_timeoutString

Max time a test execution is allowed to run before it is automatically cancelled. The default value is 5 min. Corresponds to the JSON property testTimeout

Returns:

  • (String)


2308
2309
2310
# File 'generated/google/apis/testing_v1/classes.rb', line 2308

def test_timeout
  @test_timeout
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
# File 'generated/google/apis/testing_v1/classes.rb', line 2315

def update!(**args)
  @android_instrumentation_test = args[:android_instrumentation_test] if args.key?(:android_instrumentation_test)
  @android_robo_test = args[:android_robo_test] if args.key?(:android_robo_test)
  @android_test_loop = args[:android_test_loop] if args.key?(:android_test_loop)
  @disable_performance_metrics = args[:disable_performance_metrics] if args.key?(:disable_performance_metrics)
  @disable_video_recording = args[:disable_video_recording] if args.key?(:disable_video_recording)
  @ios_test_loop = args[:ios_test_loop] if args.key?(:ios_test_loop)
  @ios_test_setup = args[:ios_test_setup] if args.key?(:ios_test_setup)
  @ios_xc_test = args[:ios_xc_test] if args.key?(:ios_xc_test)
  @test_setup = args[:test_setup] if args.key?(:test_setup)
  @test_timeout = args[:test_timeout] if args.key?(:test_timeout)
end