Just use some test framework (RSpec or Test::Unit for example), which
support running all tests in directory, for example. Or create some
entry-point rubyscript into your C:/Watir Testware/Scripts/ directory
like this:
$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__))
require 'cm_CreateCollectionAsCPXUser.rb'
require 'dm_AddDocumentWith1Field.rb'
require ....
OR instead of requiring each file separately you could load all
specific test files (thus usually you should name your tests like
_spec.rb for RSpec or _test.rb for Test::Unit):
Dir.glob("*_spec.rb").each {|test_file| require test_file}
Jarmo
On Apr 1, 4:01 am, "[email protected]" <[email protected]>
wrote:
> I'm running a test set of 2 scripts as
>
> system( "ruby 'c:/Watir Testware/Scripts/
> cm_CreateCollectionAsCPXUser.rb'" )
> system( "ruby 'c:/Watir Testware/Scripts/
> dm_AddDocumentWith1Field.rb'" )
>
> What environment variable do I need to set up with the script
> directory in order not typing the script path?
>
> PATH variable does not work.
>
> Thanks,
> Vladimir Belorusets
> SQA Manager, Xerox
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Watir General" group.
To post to this group, send email to [email protected]
Before posting, please read the following guidelines:
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---