For a quick fix, try adding this to the top of your
c:/runner/data/suites/project/test.rb file (before any require statements):
$LOAD_PATH.unshift c:/runner/data/suites/ if $0 == __FILE__
That way when test.rb is executed, the suites dir will be added to $LOAD_PATH,
and require 'library'
...
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bill Agee
Sent: Friday, March 30, 2007 4:31 PM
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general] watir execution from webserver
For a quick fix, try adding this to the top of your
c:/runner/data/suites
PROTECTED] On Behalf Of Paul Rogers
Sent: Wednesday, March 28, 2007 4:36 PM
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general] watir execution from webserver
I wasnt really following the thread, but have you prevented people from
running the tests simultaeously?
- Original Message
PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bill Agee
Sent: Tuesday, March 27, 2007 11:40 PM
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general] watir execution from webserver
Importance: High
I posted my zipped rails app as an attachment on the Watir contributions
page:
http
areed,
I have noticed that paths in ruby are relative to file that is being executed (
i think ). This has caused a couple of head scratching moments on my part while
i wonder they files will no longer load using relative paths.
I'm not sure this is related to your problem, hope it helps.
Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of John Lolis
Sent: Wednesday, March 28, 2007 2:29 PM
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general] watir execution from webserver
areed,
I have noticed that paths in ruby are relative to file that is being
I had the same issue where the script would execute but couldn't find
any of the other 'required' files in the directory. To solve this
problem, I had to add some code to the
runner\app\controllers\runner_controller.rb specifying the test suite
directory that the test should execute in. Now it
Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Brown, David
Sent: Wednesday, March 28, 2007 3:39 PM
To: wtr-general@rubyforge.org
Subject: Re: [Wtr-general] watir execution from webserver
I had the same issue where the script would execute but couldn't find
any
The way I solved this back when I was using the rails app was:
- I put all my library files into a common dir
- I added a line of code to each test script that allows it to find and add the
lib dir to $LOAD_PATH
For this I use the same idiom from some of the Watir unit test files (in this
I wasnt really following the thread, but have you prevented people from running
the tests simultaeously?
- Original Message -
From: Adam Reed [EMAIL PROTECTED]
Date: Wednesday, March 28, 2007 3:06 pm
Subject: Re: [Wtr-general] watir execution from webserver
Thanks David, those
The version of the runner app I posted doesn't check to see if a script is
already running before it executes a new one. But that would definitely be
necessary if more than one person is likely to try to run a Watir script at the
same time.
Some solutions I considered were to use a lock
I am so glad that you followed what I was trying to say. I was having a bit of
difficulting attempting to explain my situation and was afraid I wouldn't
receive much help due to misunderstanding of the question.
I actually thought about the gserver route, but now that you mention the idea
of
eisdrache wrote:
I actually thought about the gserver route, but now that you mention the idea
of using rails my attention has been perked. I have done a tiny bit of work
with rails, but my overall knowledge of the framework is limited. I am highly
interested in learning and am actually in
interesting idea...i definitely didnt think of that one. i will give it a shot
and see what happens. thank you for you help.
___
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
THAT WORKED PERFECTLY
thank you so very much!
the rails solution still interests me, so bill, if you are reading this i would
still like to see that code that you mentioned.
THANKS AGAIN!!!
___
Wtr-general mailing list
I posted my zipped rails app as an attachment on the Watir contributions page:
http://wiki.openqa.org/display/WTR/Rails+test+runner+example+app
In my haste to reply I lost track of the fact that you already had something
similar working, except for the issue with the goto method not working
i am attempting to create a testing page on a webserver. this testing page will
display the results of various tests performed by watir against different
websites.
for example, lets say a user wants to run a test on www.example.com. they will
navigate to the watir testing page, select the site
alright, well i realized that when the watir script is executed it does create
an instance of iexplore.exe but the script dies when it attempts to execute
ie.goto(site).
___
Wtr-general mailing list
Wtr-general@rubyforge.org
One bare-bones solution for this problem is to use the Ruby gserver library to
start your tests - see the code snippets in this post:
http://www.mail-archive.com/wtr-general@rubyforge.org/msg07247.html
The idea is to leave a little Ruby script listening on the test client, and
when someone
-general@rubyforge.org
Subject: Re: [Wtr-general] watir execution from webserver
One bare-bones solution for this problem is to use the Ruby gserver
library to start your tests - see the code snippets in this post:
http://www.mail-archive.com/wtr-general@rubyforge.org/msg07247.html
The idea
In all it only took 5 rails controllers (less than 100 lines total) and 5 or
6 separate views. (And I'm sure it could be compacted even more.) I came
out of the experience pretty impressed with rails. If there's interest I can
try to clean up the code and post it.
I'm interested as
21 matches
Mail list logo