Module: Bucky::Core::Report::ScreenShotGenerator
- Included in:
- TestEquipment::Evidence::E2eEvidence
- Defined in:
- lib/bucky/core/report/screen_shot_generator.rb
Instance Method Summary collapse
-
#generate_screen_shot(driver, test_case) ⇒ Object
Save screen shot.
Instance Method Details
#generate_screen_shot(driver, test_case) ⇒ Object
Save screen shot
13 14 15 16 17 18 19 20 |
# File 'lib/bucky/core/report/screen_shot_generator.rb', line 13 def generate_screen_shot(driver, test_case) = Time.now.strftime('%Y%m%d_%H%M%S') driver.save_screenshot( Bucky::Utils::Config.instance[:screen_shot_path] + test_case << "_#{}.png" ) rescue StandardError => e Bucky::Core::Exception::BuckyException.handle(e) end |