ok I got this to work in creating how I want the file to looks, but the 
html file was empty

how do I get the data to out put into the file. 

This is what I added to the file

t= Time.now 
File.open("c:\\filename"+t.strftime("%m%d%Y_%H%M%")+".xls","w")  

This was my command line

cucumber --format 'Timestamped::HtmlFormatter'


On Tuesday, October 9, 2012 9:22:00 AM UTC-7, Ry wrote:
>
> Thanks Champ!
>
> I am newer to logging. 
>
> I understand that what you've given me will go in the upper part of the 
> file. 
>
> my command line currently has been 'cucumber --format 
> 'Timestamped::HtmlFormatter' --out cucumber.html'
>
> would you be able to provide me an example to using your suggestion? 
>
> Thanks,
>
> Ryan
>
> On Tuesday, October 9, 2012 8:47:31 AM UTC-7, Champ wrote:
>>
>> filename = filename + Time.now
>>
>> On Tuesday, October 9, 2012 11:35:27 AM UTC-4, Ry wrote:
>>>
>>> Is anyone familiar with time stamping the file name or 
>>>
>>> having something append to file name on output each time a cucumber/ruby 
>>> script is ran?
>>>
>>> Currently it overwrites what is there and I want to save all my output 
>>> reports.
>>>
>>> I use Cucumber and Ruby 
>>>
>>> Thanks!
>>>
>>

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

[email protected]
http://groups.google.com/group/watir-general
[email protected]

Reply via email to