on 2005-12-07 03:55
on 2005-12-07 04:11
Hi ! 2005/12/6, Mel R. <email@example.com>: > Sorry for the newbie question but I'm really having some difficulty here - > I want to add Selenium tests to my Rails application and I just can't find a > way to do it. I found the SeleniumIntegration page on the Rails wiki - If you put something under public/, Rails should serve it from there. It depends on how you serve your application. Are you under WEBrick, Apache or Lighttpd ? If you use Apache or Lighttpd, you'll have to change your rewrite rules so that the files under the Selenium folder are served directly. Hope that helps !
on 2005-12-07 07:34
Doh! I forgot to include the vital piece of information, eh? Yeah - I'm using WEBrick right now. Not sure to which webserver I'll deploy.
on 2005-12-08 18:31
Mel R. wrote: > never did find anything. > > Please help. /Any/ assistance would be greatly appreciated. Please ask > questions - I'm sure I did something wrong - I just don't know what. > Steps to follow, documents to read, api to study - any help would be > very nice. > > Here's some of my environment information: > WinXP Pro [snip] > P.S. I'd like to use the latest version of Selenium if possible. I am aiming to use Selenium with Rails - thanks for pointing out the Wiki page (which in turn points to a Trac ticket with proposed patches etc.). I need a little time to get up to date on what already exists, and to try it for myself, but I'll be happy to share experience and ideas. There was another post on the list about this very recently http://article.gmane.org/gmane.comp.lang.ruby.rails/31523 but it was posted anonymously via RForum :-( (I also noticed that Bret P., http://www.io.com/~wazmo/blog/ made a recent change on the Wiki page.) Whereas that anonymous post, and Jon Tirsen's posts back in April, when he created the Wiki page, http://article.gmane.org/gmane.comp.lang.ruby.rails/8401 suggest that Selenium integration should be included in Rails itself, my guess is that plugin + generator would be the way to go. Given that you are using Windows, and to let you make progress on Selenium tests independently of getting integration with Rails sorted out, have you tried the HTA approach? regards Justin
on 2005-12-23 13:00
Mel R. wrote: > never did find anything. There's a new article covering the use of Selenium with Rails at IBM DeveloperWorks: http://www-128.ibm.com/developerworks/java/library... It covers Fit-style, rather than driven, test execution. There's a downloadable zip file containing an example Rails/Ajax application plus the Selenium framework and the tests - and it Just Works. Thanks to Sean H. for flagging this in another thread. regards Justin