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
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
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
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
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