[wtr-general] Re: How to not overwrite current html report?

2017-10-18 Thread Jason Phebus
you can use embedded ruby in the cucumber.yml file to generate a (hopefully) unique file name: default: --no-source --color --format pretty --format html --out results_<%= DateTime.now.strftime('%y%m%d%H%M%S%L') %>_<%= rand(1-9) %>.html On Wednesday, October 18, 2017 at 11:27:57 AM UT

[wtr-general] Re: How to not overwrite current html report?

2017-10-18 Thread Chuck van der Linden
On Wednesday, October 18, 2017 at 8:27:57 AM UTC-7, 江南 wrote: > > Hi, > > I am using Watir Ruby and in my cucumber.yml file I have this line of code > to produce the report: > > default: --no-source --color --format pretty --format html --out results.html > > > > But this code overwrites the exist

[wtr-general] Re: Watir Ruby Screenshot show Scenario + Step

2017-10-18 Thread Alan Baird
See this page if you are wanting to do this for Cucumber: https://cucumber.io/docs/reference#report-attachments On Wednesday, October 18, 2017 at 10:46:00 AM UTC-5, 江南 wrote: > > Hi, > > Is it possible to save a screenshot with the step instead the scenario > name? > > @browser.screenshot.save(s

[wtr-general] Watir Ruby Screenshot show Scenario + Step

2017-10-18 Thread 江南
Hi, Is it possible to save a screenshot with the step instead the scenario name? @browser.screenshot.save(scenario.name ".png") Thanks -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.googl

[wtr-general] How to not overwrite current html report?

2017-10-18 Thread 江南
Hi, I am using Watir Ruby and in my cucumber.yml file I have this line of code to produce the report: default: --no-source --color --format pretty --format html --out results.html But this code overwrites the existing report. How do I generate a new report each time? Thanks -- -- Befo