I created a 'runTestSuite.rb' and added a series of require
statement like
require 'testcase1_test.rb'
require 'testcase2_test.rb'
...
it works but what i found is that when testcase1_test.rb is
called the script will go through the login process (from
require logintoPortal) and suddenly jump to
testcase2_test.rb, follow by testcase3_test.rb, etc and
finally execute testcase1_test.rb

I even took setup.rb and logintoPortal out from
testcase1_test.rb and call them seperately but somehow the
testcase1_test.rb get executed last!


--- Bret Pettichord <[EMAIL PROTECTED]> wrote:

> create a new file that looks like this:
> 
>   require 'testcase1_test.rb'
>   require 'testcase2_test.rb'
> 
> and so on. Or you can write a script that reads all the
> file names in a
> directly and then automatically requires them.
> 
> Bret
> 
> On 12/15/05, Roy Sin <[EMAIL PROTECTED]> wrote:
> >
> > I have a few test cases each in its own class file as
> in
> > this example: testcase1_test.rb, testcase2_test.rb,
> ...,
> > The first testcase1_test.rb calls 'setup' and
> > '+' which take care of creatng an instance
> of
> > IE and going through the login process to my Portal
> under
> > test.
> > What would be a good way to call the other test cases
> after
> > the first test case has completed? And all the test
> cases
> > are in the same directory.
> >
> > thanks
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam
> protection around
> > 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
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to