I suggest asking a new question, and providing relevant code, rather than 
necro'ing a 7 year old thread.


On Thursday, February 4, 2016 at 2:23:02 PM UTC-8, Ajay Sithagari wrote:
>
> Hi,
> How to display the "DATE AND TIME"  inside the report.
>
> Thanks,
>
> On Thursday, June 26, 2008 at 12:39:06 AM UTC-5, @90kts wrote:
>>
>> @Aidy I am using Rspec runner. Also, if using TextMate, you may find 
>> the Rspec bundle quite handy ... 
>>
>> On Jun 26, 1:39 am, "aidy lewis" <aidy.le...@googlemail.com> wrote: 
>> > Hi, 
>> > 
>> > Is any like myself using the Rspec story/runner or are you all using 
>> > the Test::Unit wrapper? 
>> > 
>> > Aidy 
>> > 
>> > On 25/06/2008, Charley Baker <charley.ba...@gmail.com> wrote: 
>> > 
>> > > Looks like a pseudo setup/teardown. It makes more sense to put those 
>> into 
>> > > before and after, rspec's equivalent.. 
>> > 
>> > > On Wed, Jun 25, 2008 at 9:16 AM, Alan Baird <
>> alan.ba...@riskmetrics.com> 
>> > > wrote: 
>> > 
>> > > > Tim - 
>> > 
>> > > > Thanks for the example.  Does the 'should open browser' and the 
>> 'should be 
>> > > able to logout' examples test anything?  I notice that they don't 
>> have 
>> > > assertions. 
>> > 
>> > > > Alan 
>> > 
>> > > > -----Original Message----- 
>> > > > From: watir-...@googlegroups.com 
>> > > [mailto:watir-...@googlegroups.com] On Behalf Of 90kts 
>> > 
>> > > > Sent: Wednesday, June 25, 2008 6:41 AM 
>> > > > To: Watir General 
>> > > > Subject: [wtr-general] Re: Html Reports in Watir 
>> > 
>> > > > To use rspec a test case might look like (I'm using FireWaitr in 
>> this 
>> > > > example) ... 
>> > 
>> > > > require 'rubygems' 
>> > > > require 'firewatir' 
>> > > > require 'spec' 
>> > 
>> > > > include FireWatir 
>> > 
>> > > > describe 'being able to access the substruct website' do 
>> > 
>> > > >  it 'should open browser' do 
>> > > >      @b=Firefox.new 
>> > > >      @b.maximize 
>> > > >  end 
>> > 
>> > > >  it 'should navigate to admin page' do 
>> > > >    @b.goto("http://localhost:3000/admin";) 
>> > > >    @b.title.should == 'Login to access the admin area' 
>> > > >  end 
>> > 
>> > > >  it 'should be able to login' do 
>> > > >    @b.text_field(:id, 'user_login').set('admin') 
>> > > >    @b.text_field(:id, 'user_password').set('admin') 
>> > > >    @b.button(:name, 'login').click 
>> > > >    @b.title.should == 'Order List : Substruct ADMIN' 
>> > > >  end 
>> > 
>> > > >  it 'should be able to logout' do 
>> > > >    @b.link(:text, 'Log Out').click 
>> > > >  end 
>> > 
>> > > > end 
>> > 
>> > > > ... then just execute with 
>> > > > spec my_test.rb --format html 
>> > 
>> > > > and you'll get results something like this in pretty html ... 
>> > > > RSpec Results 
>> > > > 4 examples, 0 failures 
>> > > > Finished in 5.365781 seconds 
>> > > > being able to access the substruct website 
>> > > > PROFILE: 
>> > > > should open browser 
>> > > > should navigate to admin page 
>> > > > should be able to login 
>> > > > should be able to logout 
>> > 
>> > > > On Jun 25, 12:57 am, "Alan Baird" <alan.ba...@riskmetrics.com> 
>> wrote: 
>> > > > > Tim - 
>> > 
>> > > > > An example would be nice.  Also, do you know how keep rspec from 
>> > > suppressing the full stacktrace on error? 
>> > 
>> > > > > Alan 
>> > 
>> > > > > -----Original Message----- 
>> > > > > From: watir-...@googlegroups.com 
>> > > [mailto:watir-...@googlegroups.com] On Behalf Of 90kts 
>> > > > > Sent: Monday, June 23, 2008 5:28 PM 
>> > > > > To: Watir General 
>> > > > > Subject: [wtr-general] Re: Html Reports in Watir 
>> > 
>> > > > > I like using rspec to run my test cases at present. You can use 
>> the -- 
>> > > > > format html parameter to give u nicely formatted results. Let me 
>> know 
>> > > > > if you'd like an example and I'll send you one. 
>> > 
>> > > > > Cheers 
>> > > > > Tim Koopmans 
>> > 
>> > > > > On Jun 20, 9:22 pm, Sajid <sajid.greatdec...@gmail.com> wrote: 
>> > > > > > I want some help as to  how to run the tests so that it outputs 
>> some 
>> > > > > > type of HTML output for the report results.Ultimately, what is 
>> > > > > > required is to  take  these scripts and plugging them into a 
>> > > > > > Continuous Integration process so that they run on a regular 
>> basis and 
>> > > > > > email out the results of the tests. 
>> > 
>> > > > > > Thanks for all the help . 
>> > 
>> > > > > > I really appreciate. 
>> > 
>> > > -- 
>> > > Charley Baker 
>> > > blog:http://charleybakersblog.blogspot.com/ 
>> > > Project Manager, Watir,http://wtr.rubyforge.org 
>> > > QA Architect, Gap Inc Direct
>
>

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

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com

--- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to