Try changing the name of the test method from
'newprojectso' to 'test_01_newprojectso'. Test::Unit
looks for methods that start with 'test_'.

John


--- sarita <[EMAIL PROTECTED]> wrote:

> I got this error while running a test thru
> testsuite:
> 
> Loaded suite C:/TESTSU~1.RB
> Started
> FE
> Finished in 15.124 seconds.
> 
>   1) Failure:
> default_test(TC_newprojectso)
>     [c:/ruby/lib/ruby/1.8/Test/Unit.rb:278
>      C:/TESTSU~1.RB:44]:
> No tests were specified.
> 
>   2) Error:
> default_test(TC_newprojectso):
> NameError: undefined local variable or method `ie'
> for #<TC_newprojectso:0x34be648>
>     C:/TESTSU~1.RB:40:in `teardown'
> 
> 1 tests, 1 assertions, 1 failures, 1 errors
> 
> My code was like this: 
> 
> require 'Test/Unit' 
> require 'watir/WindowHelper'
> require 'watir'
> 
> class MyTests
> include Watir
> 
> def self.suite 
> suite = Test::Unit::TestSuite.new 
> suite << TC_newprojectso.suite
> return suite 
> end
> end
> 
> class TC_newprojectso <  Test::Unit::TestCase
> def setup
> ---
> ----
> end
> 
> def teardown
> ----
> ---
> end
> 
> def newprojectso
> ----
> ----
> end
> end
> 
> How to avoid this error
>
---------------------------------------------------------------------
> Posted via Jive Forums
>
http://forums.openqa.org/thread.jspa?threadID=6256&messageID=17585#17585
> _______________________________________________
> Wtr-general mailing list
> Wtr-general@rubyforge.org
> http://rubyforge.org/mailman/listinfo/wtr-general
> 



 
____________________________________________________________________________________
Sucker-punch spam with award-winning protection. 
Try the free Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/features_spam.html
_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to