Class: Google::Apis::TestingV1::TestMatrix
- Inherits:
-
Object
- Object
- Google::Apis::TestingV1::TestMatrix
- 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
TestMatrix captures all details about a test. It contains the environment configuration, test specification, test executions and overall state and outcome.
Instance Attribute Summary collapse
-
#client_info ⇒ Google::Apis::TestingV1::ClientInfo
Information about the client which invoked the test.
-
#environment_matrix ⇒ Google::Apis::TestingV1::EnvironmentMatrix
The matrix of environments in which the test is to be executed.
-
#flaky_test_attempts ⇒ Fixnum
The number of times a TestExecution should be re-attempted if one or more of its test cases fail for any reason.
-
#invalid_matrix_details ⇒ String
Output only.
-
#outcome_summary ⇒ String
Output Only.
-
#project_id ⇒ String
The cloud project that owns the test matrix.
-
#result_storage ⇒ Google::Apis::TestingV1::ResultStorage
Locations where the results of running the test are stored.
-
#state ⇒ String
Output only.
-
#test_executions ⇒ Array<Google::Apis::TestingV1::TestExecution>
Output only.
-
#test_matrix_id ⇒ String
Output only.
-
#test_specification ⇒ Google::Apis::TestingV1::TestSpecification
A description of how to run the test.
-
#timestamp ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TestMatrix
constructor
A new instance of TestMatrix.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ TestMatrix
Returns a new instance of TestMatrix
2119 2120 2121 |
# File 'generated/google/apis/testing_v1/classes.rb', line 2119 def initialize(**args) update!(**args) end |
Instance Attribute Details
#client_info ⇒ Google::Apis::TestingV1::ClientInfo
Information about the client which invoked the test.
Corresponds to the JSON property clientInfo
2056 2057 2058 |
# File 'generated/google/apis/testing_v1/classes.rb', line 2056 def client_info @client_info end |
#environment_matrix ⇒ Google::Apis::TestingV1::EnvironmentMatrix
The matrix of environments in which the test is to be executed.
Corresponds to the JSON property environmentMatrix
2061 2062 2063 |
# File 'generated/google/apis/testing_v1/classes.rb', line 2061 def environment_matrix @environment_matrix end |
#flaky_test_attempts ⇒ Fixnum
The number of times a TestExecution should be re-attempted if one or more
of its test cases fail for any reason.
The maximum number of reruns allowed is 10.
Default is 0, which implies no reruns.
Corresponds to the JSON property flakyTestAttempts
2069 2070 2071 |
# File 'generated/google/apis/testing_v1/classes.rb', line 2069 def flaky_test_attempts @flaky_test_attempts end |
#invalid_matrix_details ⇒ String
Output only. Describes why the matrix is considered invalid.
Only useful for matrices in the INVALID state.
Corresponds to the JSON property invalidMatrixDetails
2075 2076 2077 |
# File 'generated/google/apis/testing_v1/classes.rb', line 2075 def invalid_matrix_details @invalid_matrix_details end |
#outcome_summary ⇒ String
Output Only. The overall outcome of the test.
Only set when the test matrix state is FINISHED.
Corresponds to the JSON property outcomeSummary
2081 2082 2083 |
# File 'generated/google/apis/testing_v1/classes.rb', line 2081 def outcome_summary @outcome_summary end |
#project_id ⇒ String
The cloud project that owns the test matrix.
Corresponds to the JSON property projectId
2086 2087 2088 |
# File 'generated/google/apis/testing_v1/classes.rb', line 2086 def project_id @project_id end |
#result_storage ⇒ Google::Apis::TestingV1::ResultStorage
Locations where the results of running the test are stored.
Corresponds to the JSON property resultStorage
2091 2092 2093 |
# File 'generated/google/apis/testing_v1/classes.rb', line 2091 def result_storage @result_storage end |
#state ⇒ String
Output only. Indicates the current progress of the test matrix.
Corresponds to the JSON property state
2096 2097 2098 |
# File 'generated/google/apis/testing_v1/classes.rb', line 2096 def state @state end |
#test_executions ⇒ Array<Google::Apis::TestingV1::TestExecution>
Output only. The list of test executions that the service creates for
this matrix.
Corresponds to the JSON property testExecutions
2102 2103 2104 |
# File 'generated/google/apis/testing_v1/classes.rb', line 2102 def test_executions @test_executions end |
#test_matrix_id ⇒ String
Output only. Unique id set by the service.
Corresponds to the JSON property testMatrixId
2107 2108 2109 |
# File 'generated/google/apis/testing_v1/classes.rb', line 2107 def test_matrix_id @test_matrix_id end |
#test_specification ⇒ Google::Apis::TestingV1::TestSpecification
A description of how to run the test.
Corresponds to the JSON property testSpecification
2112 2113 2114 |
# File 'generated/google/apis/testing_v1/classes.rb', line 2112 def test_specification @test_specification end |
#timestamp ⇒ String
Output only. The time this test matrix was initially created.
Corresponds to the JSON property timestamp
2117 2118 2119 |
# File 'generated/google/apis/testing_v1/classes.rb', line 2117 def @timestamp end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 |
# File 'generated/google/apis/testing_v1/classes.rb', line 2124 def update!(**args) @client_info = args[:client_info] if args.key?(:client_info) @environment_matrix = args[:environment_matrix] if args.key?(:environment_matrix) @flaky_test_attempts = args[:flaky_test_attempts] if args.key?(:flaky_test_attempts) @invalid_matrix_details = args[:invalid_matrix_details] if args.key?(:invalid_matrix_details) @outcome_summary = args[:outcome_summary] if args.key?(:outcome_summary) @project_id = args[:project_id] if args.key?(:project_id) @result_storage = args[:result_storage] if args.key?(:result_storage) @state = args[:state] if args.key?(:state) @test_executions = args[:test_executions] if args.key?(:test_executions) @test_matrix_id = args[:test_matrix_id] if args.key?(:test_matrix_id) @test_specification = args[:test_specification] if args.key?(:test_specification) @timestamp = args[:timestamp] if args.key?(:timestamp) end |