From: "framefritti@..." Date: 2008-04-10T22:45:09+09:00 Subject: Re: Problem in exiting from a file and continue with next file Karthi kn ha scritto: > 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... I'm in a rush, so I am not able to check my suggestion. Using "try/ catch"? (see at the end of http://www.ruby-doc.org/docs/ProgrammingRuby/html/tut_exceptions.html)