Thanks Mark Yeah I realized that the def(s) are not executed from top to bottom but in ascending order based on the def name. Yeah prefix by a number works which I'm going to use for now but if anyone has a better idea - pls share :-)
- Roy --- "Cain, Mark" <[EMAIL PROTECTED]> wrote: > Annoying isn't it? 8-P > > What I had to do was number my test so: > > def test01_login > puts "Action 1: ..." > #. .. > end > def test02_goto_moduleA > puts "Action 2: ..." > #.. > end > def test03_add_item_toModuleA > puts "Action 3: ..." > #.. > end > > There may be a better way of doing it but it worked so > why argue with > success! > > Hope this helps, > > --Mark > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Roy Sin > Sent: Wednesday, October 12, 2005 1:55 PM > To: [email protected] > Subject: Re: [Wtr-general] order of action/step in the > console > > I have a test suite class something like: > class TS_crud_testsuite < Test::Unit::TestCase > def test_login > puts "Action 1: ..." > #. .. > end > def test_goto_moduleA > puts "Action 2: ..." > #.. > end > def test_add_item_toModuleA > puts "Action 3: ..." > #.. > end > . > . > end > > but when the script get executed. In the console it > prints Action 3 > first. > Is there a way to reverse the order it get display in the > console? > > > > > > __________________________________ > Yahoo! Mail - PC Magazine Editors' Choice 2005 > http://mail.yahoo.com > _______________________________________________ > Wtr-general mailing list > [email protected] > http://rubyforge.org/mailman/listinfo/wtr-general > > _______________________________________________ > Wtr-general mailing list > [email protected] > http://rubyforge.org/mailman/listinfo/wtr-general > __________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com _______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
