Class: Google::Apis::TestingV1::TestExecution

Inherits:
Object
  • Object
show all
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 single test executed in a single environment.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TestExecution

Returns a new instance of TestExecution.



2142
2143
2144
# File 'lib/google/apis/testing_v1/classes.rb', line 2142

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

Instance Attribute Details

#environmentGoogle::Apis::TestingV1::Environment

The environment in which the test is run. Corresponds to the JSON property environment



2093
2094
2095
# File 'lib/google/apis/testing_v1/classes.rb', line 2093

def environment
  @environment
end

#idString

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

Returns:

  • (String)


2098
2099
2100
# File 'lib/google/apis/testing_v1/classes.rb', line 2098

def id
  @id
end

#matrix_idString

Output only. Id of the containing TestMatrix. Corresponds to the JSON property matrixId

Returns:

  • (String)


2103
2104
2105
# File 'lib/google/apis/testing_v1/classes.rb', line 2103

def matrix_id
  @matrix_id
end

#project_idString

Output only. The cloud project that owns the test execution. Corresponds to the JSON property projectId

Returns:

  • (String)


2108
2109
2110
# File 'lib/google/apis/testing_v1/classes.rb', line 2108

def project_id
  @project_id
end

#shardGoogle::Apis::TestingV1::Shard

Output only. Details about the shard. Corresponds to the JSON property shard



2113
2114
2115
# File 'lib/google/apis/testing_v1/classes.rb', line 2113

def shard
  @shard
end

#stateString

Output only. Indicates the current progress of the test execution (e.g., FINISHED). Corresponds to the JSON property state

Returns:

  • (String)


2119
2120
2121
# File 'lib/google/apis/testing_v1/classes.rb', line 2119

def state
  @state
end

#test_detailsGoogle::Apis::TestingV1::TestDetails

Additional details about the progress of the running test. Corresponds to the JSON property testDetails



2124
2125
2126
# File 'lib/google/apis/testing_v1/classes.rb', line 2124

def test_details
  @test_details
end

#test_specificationGoogle::Apis::TestingV1::TestSpecification

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



2129
2130
2131
# File 'lib/google/apis/testing_v1/classes.rb', line 2129

def test_specification
  @test_specification
end

#timestampString

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

Returns:

  • (String)


2134
2135
2136
# File 'lib/google/apis/testing_v1/classes.rb', line 2134

def timestamp
  @timestamp
end

#tool_results_stepGoogle::Apis::TestingV1::ToolResultsStep

Represents a tool results step resource. This has the results of a TestExecution. Corresponds to the JSON property toolResultsStep



2140
2141
2142
# File 'lib/google/apis/testing_v1/classes.rb', line 2140

def tool_results_step
  @tool_results_step
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
# File 'lib/google/apis/testing_v1/classes.rb', line 2147

def update!(**args)
  @environment = args[:environment] if args.key?(:environment)
  @id = args[:id] if args.key?(:id)
  @matrix_id = args[:matrix_id] if args.key?(:matrix_id)
  @project_id = args[:project_id] if args.key?(:project_id)
  @shard = args[:shard] if args.key?(:shard)
  @state = args[:state] if args.key?(:state)
  @test_details = args[:test_details] if args.key?(:test_details)
  @test_specification = args[:test_specification] if args.key?(:test_specification)
  @timestamp = args[:timestamp] if args.key?(:timestamp)
  @tool_results_step = args[:tool_results_step] if args.key?(:tool_results_step)
end