Watir newbie help

When the test automatically by Watir, are generally used in these two important classes
Test::Unit::TestCase
Test::Unit::TestSuite
Is the automatic test case framework comes with Watir.
Net routines are generally like this.

*****************TestCase1.rb******************
require 'watir'
require 'test/unit'
class TC_1 <Test::Unit::TestCase

def test_1
...
end

end
***********************************************
*****************TestCase2.rb******************
require 'watir'
require 'test/unit'
class TC_2 <Test::Unit::TestCase

def test_1
...
end

end
**********************************************
*****************TestSuite.rb******************
require 'watir'
require 'test/unit/testsuite'
require 'TestCase1'
require 'TestCase2'

class TS_MyTests <Test::Unit::TestSuite
def self.suite
suite = Test::Unit::TestSuite.new
suite <<TC_1.suite
suite <<TC_2.suite
...
suite <<TC_n.suite
return suite
end
end
**********************************************


As I understand, Suite is a combination of Case and the implementation of the class. When I run the TestSuite.rb script, it will execute case suite in accordance with the order defined.
But the actual situation is in my
require 'TestCase1'
When it comes to perform over the contents of the TestCase1.rb.
require 'TestCase2'
After performing all scripts in TestCase2.rb.
But class TS_MyTests of the content and not be executed.
Test: if the Unit::: TestSuite class how to properly use, what is its role.

Started by Adair at November 14, 2016 - 4:58 AM

Top rookie I to know as

Posted by Keith at November 23, 2016 - 5:18 AM

The reply to 2011-08-02 13:04:40 was a moderator to delete

Posted by Archer at December 01, 2016 - 5:46 AM

The two class I also confused, want to master to answer

Posted by Joan at December 10, 2016 - 6:21 AM