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

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

Specifies a single test to be executed in a single environment.

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) ⇒ TestExecution

Returns a new instance of TestExecution



1560
1561
1562
# File 'generated/google/apis/testing_v1/classes.rb', line 1560

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



1512
1513
1514
# File 'generated/google/apis/testing_v1/classes.rb', line 1512

def environment
  @environment
end

#idString

Unique id set by the backend. Corresponds to the JSON property id

Returns:

  • (String)


1518
1519
1520
# File 'generated/google/apis/testing_v1/classes.rb', line 1518

def id
  @id
end

#matrix_idString

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

Returns:

  • (String)


1524
1525
1526
# File 'generated/google/apis/testing_v1/classes.rb', line 1524

def matrix_id
  @matrix_id
end

#project_idString

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

Returns:

  • (String)


1530
1531
1532
# File 'generated/google/apis/testing_v1/classes.rb', line 1530

def project_id
  @project_id
end

#stateString

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

Returns:

  • (String)


1536
1537
1538
# File 'generated/google/apis/testing_v1/classes.rb', line 1536

def state
  @state
end

#test_detailsGoogle::Apis::TestingV1::TestDetails

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



1541
1542
1543
# File 'generated/google/apis/testing_v1/classes.rb', line 1541

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



1546
1547
1548
# File 'generated/google/apis/testing_v1/classes.rb', line 1546

def test_specification
  @test_specification
end

#timestampString

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

Returns:

  • (String)


1552
1553
1554
# File 'generated/google/apis/testing_v1/classes.rb', line 1552

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



1558
1559
1560
# File 'generated/google/apis/testing_v1/classes.rb', line 1558

def tool_results_step
  @tool_results_step
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
# File 'generated/google/apis/testing_v1/classes.rb', line 1565

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)
  @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