0.0
No commit activity in last 3 years
No release in over 3 years
Glyptic Strips - A gem which assists in the screenshot creation and html formatting for cucumber projects
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Runtime

>= 2.0.0, ~> 2.0
 Project Readme

#Glyptic Strips - Cucumber Screenshot Creation and Formatting

Description

Glyptic Strips is meant to be used in conjunction with cucumber to help generate formatted screenshots of test runs which can be embeded into reports

Curretly watir-webdriver and appium are the only supported drivers. :appium :watir

Backgrounds and scenario outlines are not fully supported

Creating Strips

In your cucumber hooks file add the following

  Before do
    if($glyptic_strips == nil)
      $glyptic_strips = GlypticStrips.new
    end
  end

  AfterStep do |scenario|
    $glyptic_strips.take_strip_frame($driver, :watir, Dir.pwd+"/test_reports/screenshots")
  end

  After do |scenario|
    timestamp = Time.now.to_s.gsub(/:/, '-')
    png_location = Dir.pwd+"/test_reports/screenshots"
    puts $glyptic_strips.create_strip(scenario, png_location, $driver, :watir, 6)
  end

Warranty

This software is provided "as is" and without any express or implied warranties, including, without limitation, the implied warranties of merchantability and fitness for a particular purpose.