I think you have to do that:
$:.unshift File.join(File.dirname(__FILE__))
require 'test01'

In some editor, such as Netbeans, if you require file name directly, it
always find in the Lib folder.

Thanks.
Wesley Chen.


On Sat, Jun 13, 2009 at 7:23 AM, Chuck van der Linden <sqa...@gmail.com>wrote:

>
> require is a pretty fundimental part of Ruby.  it's not a Watir
> function.
>
> I doubt it has changed, so you should be looking elsewhere (path
> settings perhaps?) for the cause of your error.
>
> Providing actual errors you are getting instead of just saying 'not at
> all working' would be highly useful in getting to the bottom of what's
> causing the problem.
>
> On Jun 12, 5:06 am, Chethan <chethan2...@gmail.com> wrote:
> > Hi Every one.
> >
> > I just started with new Watir(new version). Earlier I had framework
> > which use to call all related test cases in one file one after other
> > by 'require' function
> >
> > some thing like this
> >
> > Folder contains
> > Main file & all other test cases
> >
> > In main fail I used to call the testcases by require function one by
> > one
> > some thing like this
> >
> > require 'testcase_01'
> > require 'testcase_02'
> > .....
> >
> > Earlier i used to get good results.
> > But now I am really surprised when I am using same technique now its
> > not at all working. I feel earlier one was wrong.
> >
> > Can any body pls let me know any changes has happen in the new version
> > for calling a file.
> >
> > Thanks,
> > Chethan
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to