HI ALL,

I am new to Watir. Can anybody teach me how to create a framework to 
automate a web application in Watir Ruby.

It would be very helpful for me.

Thanks
mitu

On Sunday, April 12, 2009 3:21:23 AM UTC+5:30, Jarmo Pertman wrote:
>
> 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

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

[email protected]
http://groups.google.com/group/watir-general
[email protected]

Reply via email to