Dear all,

 

I followed the test suite under directory
"c:\ruby\lib\ruby\gems\1.8\gems\watir-1.5.1.1136\unittests" to write
test cases.

Each case is a separate ruby file, and they are included in a list file.

Now I meet a problem about how to control the test cases run in a
predefined sequence, which means one by one, the later must wait after
the former is finished.

 

I tried to use the following method, but it seems does work, these cases
will run almost concurrently.

------------------------------------------------------------------------
------

TOPDIR = File.join(File.dirname(__FILE__), '..')

$LOAD_PATH.unshift TOPDIR

Dir.chdir TOPDIR

 

$case_list = ["unittests/login_type1_case1_rt.rb",

            "unittests/logout_type1_case1_rt.rb"

               ]

 

$case_list.each {|x| require x}

------------------------------------------------------------------------
------

 

Could somebody give some idea to handle this situation, thanks very much

 

Regards,

Jason

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to