Hi-

 

I tried changing the code as suggested:

 

<quote>

Test::Unit::TestCase must have at least one method which name starts with "test_".

 

Change

 

def centralvision

    load 'centralvision.rb'

end

 

to

 

def test_centralvision

    load 'centralvision.rb'

end

 

and you should be fine.

 

</quote>

 

However, I now get this output-

 

 

>ruby harness.rb

 

Loaded suite TestSuite

Started

./test_centralvision.rb:17: warning: parenthesize argument(s) for future version

 

EE

Finished in 0.078 seconds.

 

  1) Error:

test_centralvision(TestSuite):

SyntaxError: ./test_centralvision.rb:17: syntax error

    harness.rb:10:in `load'

    harness.rb:10:in `test_centralvision'

 

  2) Error:

test_centralvision(TestSuite):

Watir::Exception::NoMatchingWindowFoundException: Unable to locate a window with

 title of Central Vision

    c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1208:in `attach_browser_window'

    c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1111:in `attach_init'

    c:/ruby/lib/ruby/site_ruby/1.8/watir.rb:1104:in `attach'

    harness.rb:14:in `teardown'

 

1 tests, 0 assertions, 0 failures, 2 errors

 

 

I really don’t see why it should be getting a Syntax Error? I still have the same simple test loading up but have changed the def as suggested.

 

thanks

 

 

Max Russell

test Analyst.

InPS

 

Tel: 01382 223900

Fax: 01382 204488

 

Visit our Web site at www.inps.co.uk

 

The information in this internet email is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is not authorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of In Practice Systems Limited or any of its affiliates. If you are not the intended recipient please contact [EMAIL PROTECTED]

 

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to