Class: Google::Apis::TestingV1::TestSpecification
- Inherits:
-
Object
- Object
- Google::Apis::TestingV1::TestSpecification
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/testing_v1/classes.rb,
lib/google/apis/testing_v1/representations.rb,
lib/google/apis/testing_v1/representations.rb
Overview
A description of how to run the test.
Instance Attribute Summary collapse
-
#android_instrumentation_test ⇒ Google::Apis::TestingV1::AndroidInstrumentationTest
A test of an Android application that can control an Android component independently of its normal lifecycle.
-
#android_robo_test ⇒ Google::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.
-
#android_test_loop ⇒ Google::Apis::TestingV1::AndroidTestLoop
A test of an Android Application with a Test Loop.
-
#disable_performance_metrics ⇒ Boolean
(also: #disable_performance_metrics?)
Disables performance metrics recording.
-
#disable_video_recording ⇒ Boolean
(also: #disable_video_recording?)
Disables video recording.
-
#ios_robo_test ⇒ Google::Apis::TestingV1::IosRoboTest
A test that explores an iOS application on an iOS device.
-
#ios_test_loop ⇒ Google::Apis::TestingV1::IosTestLoop
A test of an iOS application that implements one or more game loop scenarios.
-
#ios_test_setup ⇒ Google::Apis::TestingV1::IosTestSetup
A description of how to set up an iOS device prior to running the test.
-
#ios_xc_test ⇒ Google::Apis::TestingV1::IosXcTest
A test of an iOS application that uses the XCTest framework.
-
#test_setup ⇒ Google::Apis::TestingV1::TestSetup
A description of how to set up the Android device prior to running the test.
-
#test_timeout ⇒ String
Max time a test execution is allowed to run before it is automatically cancelled.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TestSpecification
constructor
A new instance of TestSpecification.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TestSpecification
Returns a new instance of TestSpecification.
2670 2671 2672 |
# File 'lib/google/apis/testing_v1/classes.rb', line 2670 def initialize(**args) update!(**args) end |
Instance Attribute Details
#android_instrumentation_test ⇒ 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.
Corresponds to the JSON property androidInstrumentationTest
2606 2607 2608 |
# File 'lib/google/apis/testing_v1/classes.rb', line 2606 def android_instrumentation_test @android_instrumentation_test end |
#android_robo_test ⇒ Google::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
2612 2613 2614 |
# File 'lib/google/apis/testing_v1/classes.rb', line 2612 def android_robo_test @android_robo_test end |
#android_test_loop ⇒ Google::Apis::TestingV1::AndroidTestLoop
A test of an Android Application with a Test Loop. The intent \ will be
implicitly added, since Games is the only user of this api, for the time being.
Corresponds to the JSON property androidTestLoop
2618 2619 2620 |
# File 'lib/google/apis/testing_v1/classes.rb', line 2618 def android_test_loop @android_test_loop end |
#disable_performance_metrics ⇒ Boolean Also known as: disable_performance_metrics?
Disables performance metrics recording. May reduce test latency.
Corresponds to the JSON property disablePerformanceMetrics
2623 2624 2625 |
# File 'lib/google/apis/testing_v1/classes.rb', line 2623 def disable_performance_metrics @disable_performance_metrics end |
#disable_video_recording ⇒ Boolean Also known as: disable_video_recording?
Disables video recording. May reduce test latency.
Corresponds to the JSON property disableVideoRecording
2629 2630 2631 |
# File 'lib/google/apis/testing_v1/classes.rb', line 2629 def disable_video_recording @disable_video_recording end |
#ios_robo_test ⇒ Google::Apis::TestingV1::IosRoboTest
A test that explores an iOS application on an iOS device.
Corresponds to the JSON property iosRoboTest
2635 2636 2637 |
# File 'lib/google/apis/testing_v1/classes.rb', line 2635 def ios_robo_test @ios_robo_test end |
#ios_test_loop ⇒ Google::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
2642 2643 2644 |
# File 'lib/google/apis/testing_v1/classes.rb', line 2642 def ios_test_loop @ios_test_loop end |
#ios_test_setup ⇒ Google::Apis::TestingV1::IosTestSetup
A description of how to set up an iOS device prior to running the test.
Corresponds to the JSON property iosTestSetup
2647 2648 2649 |
# File 'lib/google/apis/testing_v1/classes.rb', line 2647 def ios_test_setup @ios_test_setup end |
#ios_xc_test ⇒ Google::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
2657 2658 2659 |
# File 'lib/google/apis/testing_v1/classes.rb', line 2657 def ios_xc_test @ios_xc_test end |
#test_setup ⇒ Google::Apis::TestingV1::TestSetup
A description of how to set up the Android device prior to running the test.
Corresponds to the JSON property testSetup
2662 2663 2664 |
# File 'lib/google/apis/testing_v1/classes.rb', line 2662 def test_setup @test_setup end |
#test_timeout ⇒ String
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
2668 2669 2670 |
# File 'lib/google/apis/testing_v1/classes.rb', line 2668 def test_timeout @test_timeout end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 |
# File 'lib/google/apis/testing_v1/classes.rb', line 2675 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_robo_test = args[:ios_robo_test] if args.key?(:ios_robo_test) @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 |