List Info

Thread: Reloadable and Selenium on Rails




Reloadable and Selenium on Rails
user name
2006-10-31 00:42:20
Hello all,

I have recently started using selenium on rails, love it
BTW, to test a very large AJAXy site.  In order to do this I
started to develop my own set of functionality that
automatically did things like wait for div's to appear as
asynchronous requests are made and in general just a small
DSL for testing this application.  To do this I created a
module with all of my functions, which all eventually rolled
down to selenium calls, and dynamically mixed it in to all
of my tests by including a line like: class << self;
include MyTestingCode; end;, at the top of all of my rsel
files.  This worked fine.  

The problem that I ran into is that I would really like the
classes that the MyTestingCode module uses to be Reloadable
so that I can stop bouncing mongrel after every change. 
Doing this produced unusual side effects.  What I was seeing
was that every second test that was run would get a
const_missing exception from dependencies.rb.  I tried a
variety of ways to get around this but have been unable to
find any solution.  I believe that the problem has something
to do with the way that selenium on rails bootstraps itself.
 Any insight into what may be causing this problem?  Any
ideas on how I may be able to fix it?

Thanks for any help you might be able to provide.  Keep up
the good work!
------------------------------------------------------------
---------
Posted via Jive Forums
http://forums.openqa.org/thread.jspa
?threadID=5027&messageID=13987#13987

------------------------------------------------------------
---------
To unsubscribe, e-mail:
selenium-on-rails-users-unsubscribeopenqa.org
For additional commands, e-mail:
selenium-on-rails-users-helpopenqa.org

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )