Sha256: d552a0f9439e32bfef52fab68939dbec08a344ab9cacb33f075953368e8b0e3b

Contents?: true

Size: 503 Bytes

Versions: 1

Compression:

Stored size: 503 Bytes

Contents

require 'janus/screenshot'

module Janus
  module Command
    class Record
      def initialize(configuration)
        @configuration = configuration
      end

      def execute
        @configuration.tests.each do |test|
          record_screenshot(test)
        end
      end

      def record_screenshot(test)
        screenshot = Janus::Screenshot.capture(test, username: @configuration.username, access_key: @configuration.access_key)
        screenshot.save('output')
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
janus-cli-0.1.0 lib/janus/command/record.rb