Class: Cucumber::Messages::TestStepStarted

Inherits:
Message show all
Defined in:
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.dtos.rb,
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.deserializers.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Message::Utils

included

Methods included from Message::Serialization

#to_h, #to_json

Methods included from Message::Deserialization

included

Constructor Details

#initialize(test_case_started_id: '', test_step_id: '', timestamp: Timestamp.new) ⇒ TestStepStarted

Returns a new instance of TestStepStarted.



1821
1822
1823
1824
1825
1826
1827
1828
1829
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.dtos.rb', line 1821

def initialize(
  test_case_started_id: '',
  test_step_id: '',
  timestamp: Timestamp.new
)
  @test_case_started_id = test_case_started_id
  @test_step_id = test_step_id
  @timestamp = timestamp
end

Instance Attribute Details

#test_case_started_idObject (readonly)

Returns the value of attribute test_case_started_id.



1815
1816
1817
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.dtos.rb', line 1815

def test_case_started_id
  @test_case_started_id
end

#test_step_idObject (readonly)

Returns the value of attribute test_step_id.



1817
1818
1819
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.dtos.rb', line 1817

def test_step_id
  @test_step_id
end

#timestampObject (readonly)

Returns the value of attribute timestamp.



1819
1820
1821
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.dtos.rb', line 1819

def timestamp
  @timestamp
end

Class Method Details

.from_h(hash) ⇒ Object

Returns a new TestStepStarted from the given hash. If the hash keys are camelCased, they are properly assigned to the corresponding snake_cased attributes.

Cucumber::Messages::TestStepStarted.from_h(some_hash) # => #<Cucumber::Messages::TestStepStarted:0x... ...>


1130
1131
1132
1133
1134
1135
1136
1137
1138
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-messages-18.0.0/lib/cucumber/messages.deserializers.rb', line 1130

def self.from_h(hash)
  return nil if hash.nil?

  self.new(
    test_case_started_id: hash[:testCaseStartedId],
    test_step_id: hash[:testStepId],
    timestamp: Timestamp.from_h(hash[:timestamp]),
  )
end