Sure
Here is the runTestSuite.rb contents:
require 'loginto_Portal'
require 'lib_gmms'
# Vehicle CRUD Test Cases
require 'crud_vehicle_test'
# Asset CRUD Test Cases
require 'crud_asset_test'
# Personnel CRUD Test Cases
require 'crud_personnel_test'
---------------
lib_gmms is just a small lib that currently contains only
one def which is to handle popup. and here is the beginning
of my first test case
#require 'logintoCP_onProd'
#require 'lib_gmms'
class TC_crud_vehicle < Test::Unit::TestCase
# Action 1 is the login process
#---------------------------------------
def test_02_goto_vehicles
puts 'Action 2: from the Home page - go to the vehicles
module'
puts ' '
$ie.frame("cpnav").image(:src, /nav_vehicles/).click
sleep(2)
end
...
--- Sean Gallagher <[EMAIL PROTECTED]> wrote:
> Hi Roy.
> Can you include the full contents of runTestSuite.rb and
> maybe a snippet
> from the top of testcase_1.rb?
>
> -sean
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf Of
> Roy Sin
> > Sent: Friday, December 16, 2005 10:52 AM
> > To: [email protected]
> > Subject: Re: [Wtr-general] suggestion on how to run a
> few
> > testcases in a test suite.. interesting observation
> >
> > 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
> >
> _______________________________________________
> 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