Class: Google::Apis::TestingV1::TestMatrix

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

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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ TestMatrix

Returns a new instance of TestMatrix



1969
1970
1971
# File 'generated/google/apis/testing_v1/classes.rb', line 1969

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

Instance Attribute Details

#client_infoGoogle::Apis::TestingV1::ClientInfo

Information about the client which invoked the test. Corresponds to the JSON property clientInfo



1906
1907
1908
# File 'generated/google/apis/testing_v1/classes.rb', line 1906

def client_info
  @client_info
end

#environment_matrixGoogle::Apis::TestingV1::EnvironmentMatrix

The matrix of environments in which the test is to be executed. Corresponds to the JSON property environmentMatrix



1911
1912
1913
# File 'generated/google/apis/testing_v1/classes.rb', line 1911

def environment_matrix
  @environment_matrix
end

#flaky_test_attemptsFixnum

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

Returns:

  • (Fixnum)


1919
1920
1921
# File 'generated/google/apis/testing_v1/classes.rb', line 1919

def flaky_test_attempts
  @flaky_test_attempts
end

#invalid_matrix_detailsString

Output only. Describes why the matrix is considered invalid. Only useful for matrices in the INVALID state. Corresponds to the JSON property invalidMatrixDetails

Returns:

  • (String)


1925
1926
1927
# File 'generated/google/apis/testing_v1/classes.rb', line 1925

def invalid_matrix_details
  @invalid_matrix_details
end

#outcome_summaryString

Output Only. The overall outcome of the test. Only set when the test matrix state is FINISHED. Corresponds to the JSON property outcomeSummary

Returns:

  • (String)


1931
1932
1933
# File 'generated/google/apis/testing_v1/classes.rb', line 1931

def outcome_summary
  @outcome_summary
end

#project_idString

The cloud project that owns the test matrix. Corresponds to the JSON property projectId

Returns:

  • (String)


1936
1937
1938
# File 'generated/google/apis/testing_v1/classes.rb', line 1936

def project_id
  @project_id
end

#result_storageGoogle::Apis::TestingV1::ResultStorage

Locations where the results of running the test are stored. Corresponds to the JSON property resultStorage



1941
1942
1943
# File 'generated/google/apis/testing_v1/classes.rb', line 1941

def result_storage
  @result_storage
end

#stateString

Output only. Indicates the current progress of the test matrix. Corresponds to the JSON property state

Returns:

  • (String)


1946
1947
1948
# File 'generated/google/apis/testing_v1/classes.rb', line 1946

def state
  @state
end

#test_executionsArray<Google::Apis::TestingV1::TestExecution>

Output only. The list of test executions that the service creates for this matrix. Corresponds to the JSON property testExecutions



1952
1953
1954
# File 'generated/google/apis/testing_v1/classes.rb', line 1952

def test_executions
  @test_executions
end

#test_matrix_idString

Output only. Unique id set by the service. Corresponds to the JSON property testMatrixId

Returns:

  • (String)


1957
1958
1959
# File 'generated/google/apis/testing_v1/classes.rb', line 1957

def test_matrix_id
  @test_matrix_id
end

#test_specificationGoogle::Apis::TestingV1::TestSpecification

A description of how to run the test. Corresponds to the JSON property testSpecification



1962
1963
1964
# File 'generated/google/apis/testing_v1/classes.rb', line 1962

def test_specification
  @test_specification
end

#timestampString

Output only. The time this test matrix was initially created. Corresponds to the JSON property timestamp

Returns:

  • (String)


1967
1968
1969
# File 'generated/google/apis/testing_v1/classes.rb', line 1967

def timestamp
  @timestamp
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
# File 'generated/google/apis/testing_v1/classes.rb', line 1974

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