From: aidy Date: 2008-01-03T19:09:57+09:00 Subject: Re: working with Test::Unit On 2 Jan, 16:41, Brian Adkins wrote: > On Jan 2, 9:55 am,aidy wrote: > > If it's not helpful, maybe you could clarify what you want to do. It > seems from your post that you don't want to be required to execute > Main_Site_Test to execute Similar_Test, but you also want to reuse > test_0002_login which is in Main_Site_Test.- Hide quoted text - > class Common < Test::Unit::TestCase include Watir::Assertions def setup @browser = Project::Browser.new @home = Project::HomeExceptions.new @register = Project::Register.new @login = {:url=> 'baseclass.com'} end def test_login @browser.goto(@login[:url]) @home.log_in_link.click @home.username_edit.set('aidy@aidy.com') @home.password_edit.set('pass123') @register.go_button.click end end class Sub_Class < Common def setup @login = {:url=> 'subclass.com'} end def test_login super end end I am looking to use the methods in the Common class only in the sub class. I do not want the the Common class to run as well. Aidy