Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Screenshot in JSON Formatter #215

Open
anandchavan opened this issue Aug 2, 2017 · 2 comments
Open

Screenshot in JSON Formatter #215

anandchavan opened this issue Aug 2, 2017 · 2 comments

Comments

@anandchavan
Copy link

Hello there,

I am using "https://github.com/jenkinsci/cucumber-reports-plugin" for generating reports, which generates the reports based on the json output of cucumber execution.

However, the screenshots captured by this plugin aren't exported/embedded in json report.

Can you please take a look at this?

Regards,
Anand

@mattheworiordan
Copy link
Owner

Sorry @anandchavan but you will need to look into this if you need this functionality. This is effectively a feature request.

@irmpow
Copy link

irmpow commented Jul 12, 2018

Some sort of making json output useable with screenshot output info from this gem is

def self.output_error_parser output
    arr = output.lines
    if arr.count > 1
      arr.map! {|line| line.gsub(/.*screenshot: /, '') }
      arr[0] = arr[0].gsub(/html.*$/, 'html').chomp
      arr[1] = arr[1].gsub(/png.*$/, 'png').chomp
      return arr
    else
      return output
    end
  end

@anandchavan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants