I'm not entirely sure what you mean by being unable to reference scripts, but I 
split my tests into:
1 script with helper functions such as GoToURLAndExpectText for example
1 script with the "header" type declarations in it, URL's, usernames etc
X several scripts with various parts of the app covered within, such as
    1 script for basic guest browsing
    1 script for loging in and out
    1 script for advanced interaction in one part
    1 script for advanced interaction in another part

and then pull it all together.  Is this the sort of thing you mean?  Or are you 
referring to something else alltogether?

require 'rubygems'
require 'watir'
require 'functions' # my functions

$testsite = "http://myurl.com";

$ie = Watir::IE.new
puts "Starting tests"

require 'basictests'
require 'advancedtests'
require 'somemoretests'
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=6532&messageID=18892#18892
_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to