Class: Bucky::TestEquipment::Evidence::E2eEvidence

Inherits:
EvidenceGenerator show all
Includes:
Core::Report::ScreenShotGenerator
Defined in:
lib/bucky/test_equipment/evidence/evidence_generator.rb

Overview

Create evidence for each test category

Constant Summary

Constants included from Utils::BuckyLogger

Utils::BuckyLogger::LogFileDir

Instance Method Summary collapse

Methods included from Core::Report::ScreenShotGenerator

#generate_screen_shot

Methods inherited from EvidenceGenerator

#report

Methods included from Utils::BuckyLogger

write

Constructor Details

#initialize(**evid_args) ⇒ E2eEvidence

Returns a new instance of E2eEvidence.



24
25
26
27
# File 'lib/bucky/test_equipment/evidence/evidence_generator.rb', line 24

def initialize(**evid_args)
  @driver = evid_args[:driver]
  @tc = evid_args[:test_case]
end

Instance Method Details

#save_evidence(err) ⇒ Object



29
30
31
32
# File 'lib/bucky/test_equipment/evidence/evidence_generator.rb', line 29

def save_evidence(err)
  generate_screen_shot(@driver, @tc)
  report("#{@tc}_error", err)
end