Review: selenium
First of all I’m going to note that Selenium comes with an utter lack of documentation and what documentation does exist is utterly disorganized. This has proven to be the biggest stumbling block to actually getting started with Selenium.
It seems promising enough: It’s a java based testing tool that you install in your *nix setup alongside apache (definitely root access material here) and then there’s a firefox extension (what originally caught my attention in the first place) to help construct test cases through browser usage.
And certainly the few bits of documentation were all aglow! “Just unpack here, and VROOOM!!!” I mean, come on:
So, cross browser and multiplatform. I like this. Plus,
I mean, I’m just rubbing my hands, here.
But what’s this? Trouble in paradise? If you look through all the selenium documentation, there is nothing that discusses how to install it. Finally, after quite a bit of hunting around, you can find this (note that it is NOT on any of the “official” pages but a separate blog
) –
1. Download Selenium from openqa.org. The latest release of Selenium as of this writing is 0.6.
2. Unzip selenium-0.6.zip and cd into the selenium-0.6 directory.
3. Move or copy the selenium sub-directory somewhere under the DocumentRoot of your Apache server.That’s it — you have a working Selenium installation!
Whoa nelly. Not quite. First, you do have to do some basic mods to httpd.conf for Apache. I added these items:
<Directory "/Web/selenium/">
Options Indexes FollowSymLinks MultiViews ExecCGI
AddHandler cgi-script .cgi .pl .js
Order allow,deny
Allow from <i>myhost.com</i>
</Directory>
Alias /selenium/ "/Web/selenium/"
Then after unpacking the zip archive into the selenium directory, I go over to the new website and get…nothing. The test cases don’t respond to anything. This is on a sun solaris; I’m reasonably sure that Java and JavaScript are running okay. And in fact, I can run their TestRunner demo which is hiding somewhere over the selenium site; I forgot to mark it and haven’t quite got the energy to hunt it down here at home. But I ruled out something not being set up on our end, otherwise it would not have run at either location (mine and theirs).
And then I discovered this little gem that recommended modifying selenium-api.js in the directory. Oh. Dear.
Well, I took a deep breath and made the modifications, commenting all over the place so I’d be able to figure out what I’d done later. Bupkus.
So there it remains at the moment until I get a chance to get back to it. Hasn’t been too much extra time at work lately, though.



pushpa said,
July 11, 2007 @ 10:53 pm
I am not able to access ‘ this little gem ‘ that you have mentioned in your article.
Could you please elaborate what changes did you exactly do in the selenium- api file.
I recorded a test (Images.html) in Selenium IDE and now want to run the test on IE 7
I have downloaded selenium core and extracted the contents in the htdocs of the Apache folder.
I also added the link of my test (Images.html) in the TestSuite.html as follows
Images in Google
And placed the Images.html in \Apache Group\Apache\htdocs\selenium-core-0.8.2\tests folder
When i enter the url http:///selenium-core-0.8.2/core/TestRunner.html
I get the TestRunner page and the list of all the tests with my test included too.
All the default tests get executed successfully except my own test .
The Apache successful installation page gets displayed instead
Could you please tell me what am I missing.
Thank you.
Regards,
Pushpa
pushpa said,
July 11, 2007 @ 10:58 pm
In my earlier comment i used the html tags that got interpreted .
‘ Images in Google’ link was actually the link written in html , hope you will understand and the sever name is also missing in my comment.
I was able to execute the default tests in the TestSuite but not my own which i had recorded on Fire Fox.
I had done a google search on images .