Class: Google::Apis::TestingV1::TestSpecification
- Inherits:
-
Object
- Object
- Google::Apis::TestingV1::TestSpecification
- 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
-
#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.
-
#auto_google_login ⇒ Boolean
(also: #auto_google_login?)
Enables automatic Google account login.
-
#disable_performance_metrics ⇒ Boolean
(also: #disable_performance_metrics?)
Disables performance metrics recording; may reduce test latency.
-
#disable_video_recording ⇒ Boolean
(also: #disable_video_recording?)
Disables video recording; may reduce test latency.
-
#test_setup ⇒ Google::Apis::TestingV1::TestSetup
A description of how to set up the device prior to running the test Corresponds to the JSON property
testSetup. -
#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.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ TestSpecification
Returns a new instance of TestSpecification
1655 1656 1657 |
# File 'generated/google/apis/testing_v1/classes.rb', line 1655 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 http://developer.android.com/tools/testing/testing_android.html for
more information on types of Android tests.
Corresponds to the JSON property androidInstrumentationTest
1602 1603 1604 |
# File 'generated/google/apis/testing_v1/classes.rb', line 1602 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
1608 1609 1610 |
# File 'generated/google/apis/testing_v1/classes.rb', line 1608 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 androidTestLoop
1615 1616 1617 |
# File 'generated/google/apis/testing_v1/classes.rb', line 1615 def android_test_loop @android_test_loop end |
#auto_google_login ⇒ Boolean Also known as: auto_google_login?
Enables automatic Google account login.
If set, the service will automatically generate a Google test account and
add it to the device, before executing the test. Note that test accounts
might be reused.
Many applications show their full set of functionalities when an account is
present on the device. Logging into the device with these generated
accounts allows testing more functionalities.
Default is false.
Optional
Corresponds to the JSON property autoGoogleLogin
1628 1629 1630 |
# File 'generated/google/apis/testing_v1/classes.rb', line 1628 def auto_google_login @auto_google_login 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
1634 1635 1636 |
# File 'generated/google/apis/testing_v1/classes.rb', line 1634 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
1640 1641 1642 |
# File 'generated/google/apis/testing_v1/classes.rb', line 1640 def disable_video_recording @disable_video_recording end |
#test_setup ⇒ Google::Apis::TestingV1::TestSetup
A description of how to set up the device prior to running the test
Corresponds to the JSON property testSetup
1646 1647 1648 |
# File 'generated/google/apis/testing_v1/classes.rb', line 1646 def test_setup @test_setup end |
#test_timeout ⇒ String
Max time a test execution is allowed to run before it is
automatically cancelled.
Optional, default is 5 min.
Corresponds to the JSON property testTimeout
1653 1654 1655 |
# File 'generated/google/apis/testing_v1/classes.rb', line 1653 def test_timeout @test_timeout end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 |
# File 'generated/google/apis/testing_v1/classes.rb', line 1660 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) @auto_google_login = args[:auto_google_login] if args.key?(:auto_google_login) @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) @test_setup = args[:test_setup] if args.key?(:test_setup) @test_timeout = args[:test_timeout] if args.key?(:test_timeout) end |