Sha256: 3ab9d73d0dae1bd92e7dcc0edba448cbe9181113cc827d64ee3ef295adc6d01b
Contents?: true
Size: 646 Bytes
Versions: 1
Compression:
Stored size: 646 Bytes
Contents
module Speedos class Performance def self.test(name="") Log.info("#{name} Test begins") page = Page.new page.new_har yield page if block_given? Log.info("#{name} Test Complete") success = true rescue Exception => e Log.error("#{e}") Log.error("#{e.backtrace}") success = false ensure finialise_record(JSON.load(page.get_har.to_json)['log'], success) page.server_proxy.close page.server.stop end def finialise_record(log, success) record = Record.create(log: log, success: success) record.refresh_information if success end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
speedos-0.0.13 | lib/speedos/performance.rb |