Class: Bucky::TestEquipment::Evidence::E2eEvidence
- Inherits:
-
EvidenceGenerator
- Object
- EvidenceGenerator
- Bucky::TestEquipment::Evidence::E2eEvidence
- 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
-
#initialize(**evid_args) ⇒ E2eEvidence
constructor
A new instance of E2eEvidence.
- #save_evidence(err) ⇒ Object
Methods included from Core::Report::ScreenShotGenerator
Methods inherited from EvidenceGenerator
Methods included from Utils::BuckyLogger
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 |