Hi Jano, On 17 Jul, 14:36, "Jano Svitok" <jan.svi... / gmail.com> wrote: > Maybe if you could post some code how your data and tests looks like > somebody would tell you more... > > Jano This is the test case Test_Suite_1.rb class Test_Suite_1 < Test::Unit::TestCase @@log = Log.new @@test = Test::Data.new def setup #runs before each and every method @browser = AUT::Browser.new @browser.goto(@@test.begin[:url]) login = AUT::Login.new(@@test.begin[:username], @@test.begin[:password]) login.sign_in.click end def teardown #runs after each and every method yahoo = AUT::Yahoo.new yahoo.log_out.click @browser.close end def test_case_1 #got to have a prefix of test @@log.detail_test_case(@@test.case_1[:test_name], @@test.case_1[:test_description]) #pages in sequence main_page = AUT::Main_Page.new common = AUT::Common.new main_page.check_mail_button.click @@log.test_results(common.verify_text(@@test.case_1[:text_to_verify]), 'wrong message appeared') #if test fails rescue => e @@log.test_results(FALSE, e.message) ensure #this has to be on the last test @@log.write_xml_to_file() end end The test data is here test_data.rb module Test class Data attr_accessor :begin, :case_1 @@j = 0 def initialize set_up=['http://edit.europe.yahoo.com/config/mail?.intl=uk', 'aidy', 'whatever', 'http://edit.europe.yahoo.com/config/mail?.intl=uk', 'aidy1', 'whatever1'] test_case_1=['test_case_1', 'check mail', 'There are no messages in your Inbox.', 'test_case_1', 'check mail', 'Make a fail'] @begin= { :url => set_up[@@j], :username => set_up[@@j+1], :password => set_up[@@j+2] } @case_1={ :test_name => test_case_1[@@j], :test_description => test_case_1[@@j+1], :text_to_verify => test_case_1[@@j+2] } puts @@j @@j+=1 end end end I have been running the Test_Suite_1.rb from a batch file system "test_suite.bat" system "test_suite.bat" But I a unable to keep the value of @@j (in test_data.rb) between the system calls, so as to use the next set off data in the array. Thanks Aidy