If you find you are using the same requires over and over again in multiple 
files you can centralize them:

loader.rb

require 'this'
require 'that'
require 'something else


----

script1.rb

require 'loader.rb'


-andy

----Original Message Follows----
From: Adrian Rutter <[EMAIL PROTECTED]>
Reply-To: [email protected]
To: [email protected]
Subject: [Wtr-general] Too many requires?
Date: Mon, 22 May 2006 17:50:55 +0100


Hi,

I am concerned about there being to many 'requires' in my test script.

Is the below snippet a good way to organise tests?

   require 'browser'
   require 'logon'
   require 'employees'
   require 'window'

   start_browser("http://gbahevm07l15:9081/wps/portal";)
   login("Aidy","1234")
   goto_employee_list
   enter_employees('\\\gbahes75\projects\sales\Datapool\employee_data.csv')
   close_window

Cheers

Aidy



---------------------------------------------------------------------------------------------------------------
This message and any attachment are confidential and may be privileged or 
otherwise protected from disclosure.
If you are not the intended recipient, please telephone or email the sender 
and delete this message and any attachment from your system.
If you are not the intended recipient you must not copy this message or 
attachment or disclose the contents to any other person.
---------------------------------------------------------------------------------------------------------------
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general


_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to