From: Siep Korteling Date: 2008-04-10T22:19:05+09:00 Subject: Re: Problem in exiting from a file and continue with next file Karthi kn wrote: > Hi, > > I am writing automated test scripts using ruby. I have written two > files. > > test_one.rb > test_two.rb > > I have written some methods both the files. When one of the methods of > test_one.rb is running, If a condition fails, the control should exit > from test_one.rb and should continue with test_two.rb. > > I tried with "exit" method. But it exits from the whole(i.e - > test_two.rb is not executed). I want to exit from the test_one.rb and > continue with test_two.rb. > > Any of your suggestion is appreciated. > > Thanks in advance... If you are on windows: system 'system start test_two.rb' exit regards, Siep -- Posted via http://www.ruby-forum.com/.